Hi,
I wonder if I will be able to arrange (i.e. descending order) the feature genes based on either ‘logfoldchanges’ or ‘pvals_adj’ instead of ‘pvals’. Could you please give me a piece of advice?
result = adata.uns[‘rank_genes_groups’]
groups = result[‘names’].dtype.names
pd.DataFrame(
{group + ‘_’ + key[:1]: result[key][group]
for group in groups for key in [‘names’, ‘logfoldchanges’, ‘pvals_adj’]}).head(30)
Thank you in advance for your kind help…!