scanpy icon indicating copy to clipboard operation
scanpy copied to clipboard

split.by-like function for the umap to compare gene expression between conditions

Open revolvefire opened this issue 3 years ago • 0 comments

  • [ ] Additional function parameters / changed functionality / changed defaults?
  • [ ] New analysis tool: A simple analysis tool you have been using and are missing in sc.tools?
  • [x] New plotting function: A kind of plot you would like to seein sc.pl?
  • [ ] External tools: Do you know an existing package that should go into sc.external.*?
  • [ ] Other?

...

Currently, to compare gene expressions on the umap between different samples or conditions I use the for loop and do something like this

for i in ['embryonic day1', 'postnatal day2']: print(i) sc.pl.umap( adata[adata.obs["bulk.ident"] == i], size=20, color=["gene"], frameon=False, )

but i would love to have a function for this that creates multiple umaps in parallel in one row with maybe 'ncol' fxn to decide how many in one row.

could we please add split.by-like function function in the scanpy?

+addendum Also, simply subplotting multiple umaps per condition could be somewhat missleading as scale for particular gene expression would very per samples. We would need a comprehensive fxn that provides uniform scale of expression for multiple samples..

#1879

revolvefire avatar Sep 19 '22 15:09 revolvefire