seurat icon indicating copy to clipboard operation
seurat copied to clipboard

Question about findmarkers() argument latent.vars

Open Flu09 opened this issue 6 months ago • 2 comments

I have 3 questions, I am hoping you can help me. 1)In case I want to remove some latent variables such as Sex, but it is not available for all of my samples. The Sex for some samples is NA in the df in the metadata of my seurat object.

Do I still include the variable Sex in latent.vars or do I need remove the samples with the unknown variable Sex?

Do you suggest adding values for them as "unknown" instead of leaving them empty (NA) ? then proceed with including Sex as a variable or remove those samples?

2)in case I use something such as sample or donor does findmarkers() actually find the difference between the 2 idents only i specified disease vs control and cancel the effect of anything else such as sex or age or would it cancel everything?

3)I also want to ask about nCount and nGene as latent.vars() does it make sense to include them?

Flu09 avatar Aug 17 '24 20:08 Flu09