theislab / diffxpy

Differential expression analysis for single-cell RNA-seq data.
https://diffxpy.rtfd.io
BSD 3-Clause "New" or "Revised" License
193 stars 23 forks source link

Using t-test for data with more than two groups. #216

Open yiyang2002 opened 2 years ago

yiyang2002 commented 2 years ago

Hi I try to use t-test on two specific group of genes stored in adata.obs.I labeled the two groups with symbol 1 and 2,and 0 for the rest of the genes. So there are three group of genes in total now in obs. However, t test can only performed on data that has exactly 2 groups. Than i get an error when try to use this method. So I wonder is there a way to work this out?image

yiyang2002 commented 2 years ago

This works in scanpy since rank gene groups method has a reference parameter so it does not has a limit on the number of groups in data. image