counts_per_cell has no effect on pp.normalize_per_cell(adata)
See original GitHub issuecounts_per_cell
has no effect on pp.normalize_per_cell(adata)
as it is overwritten here:
Would be great if one could use, e.g. the initial cell size (from before filtering). Note, that this issue only holds when passing AnnData
. With AnnData.X
it works fine.
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (21 by maintainers)
Top Results From Across the Web
counts_per_cell has no effect on pp.normalize_per_cell(adata)
My use case: I have found that, in the context of RNA velocity analysis, normalizing by initial sizes (cell sizes before filtering) can...
Read more >notebook 1 - introduction and data processing - GitHub Pages
This notebook will introduce you to single cell RNA-seq analysis using scanpy. It will walk you through the main steps of an analysis...
Read more >scanpy.pp.normalize_per_cell - Read the Docs
If None , after normalization, each cell has a total count equal to the median of the counts_per_cell before normalization. Precomputed counts per...
Read more >Scanpy normalize per cell. normalize_per_cell(adata ...
Our next goal is to identify genes with the greatest amount of variance (i. counts_per_cell: Optional [ndarray] (default: None) Precomputed counts per cell....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Indeed, scran often works better than CPM normalization. I would recommend to use it via
anndata2ri
orrpy2
as I demonstrate in the case study with the paper. You can find that [here] (https://github.com/theislab/single-cell-tutorial/blob/master/latest_notebook/Case-study_Mouse-intestinal-epithelium_1906.ipynb)I will put it on my long list of potential HiWi topics…