scverse / scanpy

Single-cell analysis in Python. Scales to >1M cells.
https://scanpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.93k stars 604 forks source link

comparing distribution of cell types per cohort per groups #1804

Open FADHLyemen opened 3 years ago

FADHLyemen commented 3 years ago

... I would like to see how to use scanpy to compare the cell types distribution per cohort per different condition. Imagine you have different disease state who have different drug exposure, so you need to compare different cell types in each cohort per each condition or drug exposure. so it id three dimension: cell types[Bcells and Tcells], disease status[CKD vs DKD] and drug exposure[absent vs non absent]

ivirshup commented 3 years ago

@mbuttner any thoughts on this? Perhaps this would fit better with the scCODA package?

mbuttner commented 3 years ago

@ivirshup changes in cell type composition can be analysed using scCODA, which builds upon scanpy. Please note that in order to analyse changes in composition, you will need at least three different cell types.