LieberInstitute / Visium_SPG_AD

Visium SPG AD project (n = 10) using Visium Spatial Proteogenomics (Visium-SPG) on dissections from the inferior temporal cortex (ITC) from Alzheimer's disease cases and controls.
https://research.libd.org/Visium_SPG_AD
3 stars 0 forks source link

Percent of reads assigned to targeted genes vs others #59

Closed lcolladotor closed 1 year ago

lcolladotor commented 2 years ago

Could either be:

Screen Shot 2022-06-02 at 2 57 46 PM

To compute the percent of reads, we could do it like this:

genes <- ## read gene IDs from the TGE panel (1100 or so)
m <- match(genes, rowData(spe)$gene_name) ## or gene_id 

total <- colSums(counts(spe))
total_tge <- colSums(counts(spe[m, ]))
percent <- total_tge / total * 100

I'll be interested to see how this changes for TGE vs whole genome.

Screen Shot 2022-06-02 at 3 00 41 PM