| sync_indices | R Documentation |
Particularly when Hi-C data is loaded from different sources, it occurs that the assigned bin indices don't match between datasets. This function re-indexes a list of experiments to a shared set of bin indices.
sync_indices(explist)
explist |
A |
Chromosome naming conventions are expected to be equal among input,
e.g. all contacts objects use "chr1", "chr2" etc. or
all contacts objects use "1", "2" etc.
The first contacts object is used as a template. This should only
matter when the different experiments have slightly different end-positions
at e.g. chromosome ends, in which case the ends of the first
contacts object is used..
A list of GENOVA contacts objects
## Not run:
# Data loaded from Hi-C Pro
exp1 <- load_contacts(signal_path = "exp1_10kb_iced.matrix",
indices_path = "exp1_10kb_abs.bed",
sample_name = "exp1")
# Data loaded from Juicer
exp2 <- load_contacts("exp2_10kb.cooler",
balancing = TRUE,
sample_name = "exp2")
synched <- sync_indices(list(exp1, exp2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.