cellxgene_VIP icon indicating copy to clipboard operation
cellxgene_VIP copied to clipboard

Aggregate cells by metadata category and plot against another category

Open ShanSabri opened this issue 3 years ago • 2 comments

Is it possible to aggregate cells by a specific metadata category, say Donor, and compare across another metadata category like Treatment status? I find this way to be easier to interpret for data with many (>200k) cells. If I were to do this comparison at the cell level with a gene that is highly dropped out or lowly expressed then the distribution would be heavily weighted towards zero but if I were to aggregate by mean or median then the data looks a bit cleaner and easier to interpret.

ShanSabri avatar May 04 '21 00:05 ShanSabri

Thanks for the suggestion. To make sure I understand it correctly: instead of using each individual cells, you propose to obtain pseudo bulk samples by a category such as Donor? And now each dot is a pseudo bulk rather than a cell in any plots? or a specific plot you are thinking of?

z5ouyang avatar May 04 '21 18:05 z5ouyang

Yep, exactly

ShanSabri avatar May 06 '21 23:05 ShanSabri