View source: R/compartment_score.R
sign_compartmentscore | R Documentation |
Takes pre-computed eigenvectors per chromosome arm and adjust the sign based on metrics of active chromatin.
sign_compartmentscore(
CS_discovery,
bed = NULL,
bedgraph = NULL,
verbose = FALSE,
ref = 1
)
CS_discovery |
A |
bed |
A |
bedgraph |
A |
verbose |
A |
ref |
An |
Signing compartment scores is necessary to have the compartment scores correspond to A and B compartments.
Some decent 'bed
'/'bedgraph
' arguments to use are ChIP-seq
peaks of H3K4me1, gene density, (inverted) Lamina DamID signal, GC content
or early replication timing metrics.
A CS_discovery
object with signed
attribute set to
TRUE
compartment_score
for computing the
eigenvectors.
## Not run:
# Doing the eigenvector decomposition only yields unsigned scores
cs <- compartment_score(list(WT_100kb, KO_100kb))
# Signing the scores
cs <- sign_compartmentscore(cs, bed = H3K4me1_peaks)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.