neurorestore / Libra

MIT License
153 stars 25 forks source link

How to correct for age, sex, etc.? #52

Open yesitsjess opened 7 months ago

yesitsjess commented 7 months ago

Is it possible to control for gender using run_de in Libra (e.g. similar to how you can in DESeq)? Or in single cell analysis should this be done by regressing out variables at the scaling step? Any advice is appreciated

skinnider commented 4 months ago

We don't have this implemented at the moment, but you can use to_pseudobulk to get a pseudobulk gene expression matrix and then manipulate this in DESeq2 directly.