neurorestore / Libra

MIT License
140 stars 23 forks source link

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

Open yesitsjess opened 4 months ago

yesitsjess commented 4 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 1 month 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.