Open HelloWorldLTY opened 1 year ago
It's hard to know exactly what you mean? Is there an actual bug in Libra for this?
Hi, I am not sure if it is a bug or the problem of my user case.
I intend to identify differential expressed genes for diseases, and I plan to use mixed model. But the result is very strange.
My codes are like:
` expr = GetAssayData(data, slot = 'counts', assay = 'RNA') meta = data@meta.data
meta$cell_type = "Female"
meta[meta$gender == "HC_Female",]$cell_type = "Female" meta[meta$gender == "AD_Female",]$cell_type = "Female" meta[meta$gender == "HC_Male",]$cell_type = "Male" meta[meta$gender == "AD_Male",]$cell_type = "Male"
de = run_de(expr, meta = meta, de_family = 'mixedmodel', de_method = 'negbinom')
head(de) ` Is it correct? Thanks.
I don't understand why you would make cell type gender. Do you not have cell types?
I have cell types but I intend to find gender-specific differental expressed genes for diseases. Is it clear? So I think the cell type here represents my gender labels. Thanks.
This would require a more complex design, but does not sound like a bug in libra.
Emm I think my current idea fits my target well. Besides, I think there is a bug in mixed model like:
cell_type gene avg_logFC p_val p_val_adj de_family de_method de_type
This bug has been fixed.
Hi, I intend to detect differential expressed genes for female people with diseases, so I change cell type into male/female and choose to assign conditions as diseases/health. Is it correct? I found that my current genes are in large divergence comparing with genes from Wilcoxon. Thanks a lot.