LieberInstitute/Visium_SPG_AD

Percent of reads assigned to targeted genes vs others

Closed this issue · 0 comments

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