View source: R/batchCorrection.R
findNCGs | R Documentation |
Get negative control genes from each batch of the data
findNCGs(spe, n_assay = 2, batch_name = "SlideName", top_n = 200)
spe |
A Spatial Experiment object. |
n_assay |
Integer to indicate the nth count table in the assay(spe) to be used. |
batch_name |
Column name indicating batches. |
top_n |
Integer indicate how many genes to be included as negative control genes. |
A Spatial Experiment object, conatining negative control genes in the metadata.
data("dkd_spe_subset")
spe <- findNCGs(dkd_spe_subset, top_n = 100)
S4Vectors::metadata(spe)$NCGs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.