getCompartments | R Documentation |
Computes eigen vectors for each chromosome using cis contacts and extract chromosome compartments.
getCompartments(
x,
resolution = NULL,
genome = NULL,
chromosomes = NULL,
neigens = 3,
sort_eigens = FALSE,
BPPARAM = BiocParallel::bpparam()
)
x |
A |
resolution |
Which resolution to use to compute eigen vectors |
genome |
a BSgenome of DNAStringSet object associated with the Hi-C contact matrix. |
chromosomes |
character or integer vector indicating which |
neigens |
Numver of eigen vectors to extract |
sort_eigens |
Can be FALSE or one of c('Spearman', 'Pearson') |
BPPARAM |
BiocParallel parallelization settings |
A HiCExperiment
object with additional eigens
metadata containing the
normalized eigenvectors and a new "compartments" topologicalFeatures
storing A and B compartments as a GRanges object.
library(HiContacts)
full_contacts_yeast <- contacts_yeast(full = TRUE)
comps <- getCompartments(full_contacts_yeast)
metadata(comps)$eigens
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.