to rank only 100 genes? What if I want to extract more genes from one cluster?

I’m using to rank genes from one cluster, but I realized that it can show a maximum of 200 genes, I need to pull out more genes than that, what should I do? Should I set up the gene numbers? Or I should use totally different code to get what I want.

Thank you in advance!

So you’re saying the n_genes parameter can only be set to a max of 200?

You can use the keyword argument n_genes.

If you call:

sc.pp.rank_genes_groups(adata, group, n_genes=-1)

You’ll get results for all genes.

1 Like