After clustering cells with a restricted gene set, I would like to see the contribution of "specified genes" in subgrouping the cells.
sc.tl.rank_genes_groups uses all the genes in the background for the statistical calculations. I want to test it for all the Louvain groups against the rest of the data (so, groups='all', reference='rest').
Is there a way, we can specify the gene list? (I tried using the use_raw of sc.tl.rank_genes_groups to subset). I don't find any other options to restrict gene lists here.
subset_genes = ldata[:, ['Gabrg1', 'Ntrk1', 'Htr1a', 'Plaur', 'Il31ra', 'Gabrg3', 'P2rx3', 'Oprk1', 'P2ry1', 'Cnih3']]
sc.tl.rank_genes_groups(ldata, 'louvain', method='wilcoxon', use_raw= 'subset_genes', n_genes = 100)
sc.pl.rank_genes_groups(ldata, n_genes=15, sharey=False)
After clustering cells with a restricted gene set, I would like to see the contribution of "specified genes" in subgrouping the cells.
sc.tl.rank_genes_groupsuses all the genes in the background for the statistical calculations. I want to test it for all the Louvain groups against the rest of the data (so,groups='all', reference='rest').Is there a way, we can specify the gene list? (I tried using the
use_rawofsc.tl.rank_genes_groupsto subset). I don't find any other options to restrict gene lists here.