NathanSkene / EWCE

Expression Weighted Celltype Enrichment. See the package website for up-to-date instructions on usage.
https://nathanskene.github.io/EWCE/index.html
53 stars 25 forks source link

Calculating cell type specificity scores #10

Closed tkamath1 closed 4 years ago

tkamath1 commented 4 years ago

Hi! Thanks for the great package.

I'm interested in running the cell type specificity score calculation for some 10x snRNA-seq datasets. Is there a clear reason to use either mean or median for zero-inflated datasets?

Also, curious for the rationale of dividing the median scores by colSums of the mean per cell type/subtype as opposed to the colSums of the median ("generate.celltype.data.R", lines 89/91)?

NathanSkene commented 4 years ago

Hi Tushar,

I recommend mean over median. Median tends to be uninformative as most genes have a median of zero. 10x data is not actually zero inflated, it is just negative binomial distributed (unlike Smart-Seq data does appear to be zero inflated). The mean of a sample from a negative binomial distribution is an estimate if the real population mean (unlike the median).

Hope that helps

On 24/10/2019 15:15, Tushar Kamath wrote:

Hi! Thanks for the great package.

I'm interested in running the cell type specificity score calculation for some 10x snRNA-seq datasets. Is there a clear reason to use either mean or median for zero-inflated datasets?

Also, curious for the rationale of dividing the median scores by colSums of the mean per cell type/subtype as opposed to the colSums of the median ("generate.celltype.data.R", lines 89/91)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/NathanSkene/EWCE/issues/10?email_source=notifications&email_token=AH5ZPE227HVW356XPUT2ZL3QQGUWJA5CNFSM4JEUVPA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUEDNAA, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5ZPE2L4L2ZQ7EPZRFI7PTQQGUWJANCNFSM4JEUVPAQ.

tkamath1 commented 4 years ago

Thanks!