| saddle | R Documentation |
Produces a compartment score quantile versus quantile analysis in which observed over expected contacts are compared between the different quantiles of the compartment scores.
saddle(explist, CS_discovery, bins = 10L, dist_thres = c(-Inf, Inf))
explist |
Either a single GENOVA ' |
CS_discovery |
A signed ' |
bins |
An |
dist_thres |
A |
Per chromosome arm, compartment scores are divided in quantile bins. Subsequently, the average observed over expected score is calculated for every pairwise combination of bins. The observed over expected score is calculated as the contacts divided by the average of contacts for the same distance from the diagonal.
Choosing a 'bins' of 5 will produce results similar to
Flyamer et al. (2007), while setting 'bins' to 100
will produce results similar to Bonev et al. (2017)
A saddle_discovery object with 1 element:
saddle, a data.table with the following columns:
expA character with the sample names from the
'explist' argument.
chrA character with the chromosome names and arms (p or q).
q1An integer giving the first comparment score quantile bin.
Lower values indicate smaller compartment scores than higher values.
q2An integer giving the second quantile bin.
meanA numeric with the average observed over expected values
at the indicated quantile bins.
The resolution of the
'CS_discovery' object. Either print the object to see the resolution
or use attr(CS_discovery, "resolution") for programmatic access.
## Not run:
exps <- list(WT_100kb, KO_100kb)
# Computing signed compartment scores
cs <- comparment_score(exps, bed = H3K4me1_peaks)
# Saddle analysis
sadl <- saddle(exps, cs)
# Visualising results
visualise(sadl)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.