-
Notifications
You must be signed in to change notification settings - Fork 713
Closed
Labels
Description
Why can't I use regress_out function for scRNA-seq data without applying highly_variable_genes. Also I think regress_out function should be before highly_variable_genes, because in this way we can first remove batch effect and then select important genes.
sc.pp.highly_variable_genes(adata, min_mean=0.0125, max_mean=3, min_disp=0.5)
sc.pl.highly_variable_genes(adata)
#adata = adata[:, adata.var['highly_variable']]
print(adata)
Regressing
sc.pp.regress_out(adata, ['n_counts', 'percent_mito'])
Reactions are currently unavailable