Skip to content

Commit

Permalink
Fix deprecated 'normalize_per_cell'
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonHafner committed Oct 25, 2024
1 parent b920daf commit 4f97447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter-book/cellular_structure/annotation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1200,8 +1200,8 @@
"source": [
"adata_celltypist = adata.copy() # make a copy of our adata\n",
"adata_celltypist.X = adata.layers[\"counts\"] # set adata.X to raw counts\n",
"sc.pp.normalize_per_cell(\n",
" adata_celltypist, counts_per_cell_after=10**4\n",
"sc.pp.normalize_total(\n",
" adata_celltypist, target_sum=10**4\n",
") # normalize to 10,000 counts per cell\n",
"sc.pp.log1p(adata_celltypist) # log-transform\n",
"# make .X dense instead of sparse, for compatibility with celltypist:\n",
Expand Down

0 comments on commit 4f97447

Please sign in to comment.