question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runtime warning by rank_genes_groups

See original GitHub issue

Dear all, I am receiving the following runtime warning when I search for markers within my clusters using

sc.tl.rank_genes_groups

RuntimeWarning: invalid value encountered in log2 rankings_gene_logfoldchanges.append(np.log2(foldchanges[global_indices]))

The warning only happened after I subset my initial clustering and keep few clusters and then again run PCA and HVG analysis on them and do the clustering. It still though run the command and I get the results. Does anyone know why is it happening right after I want to analyze my subset? and is it something that I should worry about ?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
LuckyMDcommented, May 21, 2019

Maybe rescale yourself then… just add the min expression value per gene to each gene… then you’ll get at least a rebasing of expression values. Relative expression within genes will still be okay.

1reaction
LuckyMDcommented, May 22, 2019

After imputation you don’t have your initial variability in your data. Ideally you have only the biologically relevant variability, but that’s another question. Also, imputation methods take different data as input. Our DCA method takes count data, but MAGIC takes pre-processed data I think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Runtime warning by rank_genes_groups · Issue #653 - GitHub
Dear all, I am receiving the following runtime warning when I search for markers within my clusters using sc.tl.rank_genes_groups ...
Read more >
scanpy.tl.filter_rank_genes_groups - Read the Docs
Filters out genes based on log fold change and fraction of genes expressing the gene within and outside the groupby categories. See rank_genes_groups()...
Read more >
DE using t-test overest var producing many non DE genes
Hello, I'm getting a lot of non-DE genes after I do “t-test overest var” between clusters. Same happens with wilcoxon.
Read more >
5 -Differential expression in Single cell RNA-seq - Kaggle
WARNING: Running pip as the 'root' user can result in broken permissions and ... /tools/_rank_genes_groups.py:417: RuntimeWarning: overflow encountered in ...
Read more >
Analysis of single-cell RNA-seq data - Python - kallisto | bustools
sc.settings.verbosity = 3 # verbosity: errors (0), warnings (1), info (2), ... ranking genes finished: added to `.uns['rank_genes_groups']` 'names', ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found