View source: R/methods_matrix_lookup.R
rep_mat_lookup | R Documentation |
Analyses like aggregrate peak analysis (APA) and paired-end spatial chromatin analysis (PE-SCAn) require to look up regions of a Hi-C matrix repeatedly. This function acts as a common method for the lookup and summary of such repeated lookups for these analyses.
rep_mat_lookup(
explist,
anchors,
rel_pos,
shift = 0,
outlier_filter = c(0, 1),
raw = FALSE
)
explist |
Either a single GENOVA |
anchors |
A |
rel_pos |
An |
shift |
An |
outlier_filter |
A |
raw |
A |
For each row in the anchors
argument a region of the Hi-C
matrix is looked up corresponding to that anchor. This data is then
summarised by taking the mean of each position relative to the anchor
across all the anchors.
Anchors are subject to a filtering step wherein anchors are discarded when
they are within rel_pos
range of a chromosome start or end. This
ensures the anchors all report data from the same chromosome in the x- or
y-direction.
For shifted anchors, an attempt is made to shift the anchors in the opposite direction before they are discarded.
When a region corresponding to a non-shifted anchor is looked up and is found to have no contacts within that region, it is discarded. Shifted regions are only discarded when the corresponding non-shifted anchor is discarded.
Anchors typically contain a 'type
' attribute which informs
rep_mat_lookup
how the lookup should occur. The APA
,
PESCAn
and ARA
anchors look up regions of dimensions
length(rel_pos)
x length(rel_pos)
. The ARA
anchors
transpose these square regions when given a '-
' direction before
summary occurs. The ATA
anchors look up anchors[, 2] -
anchors[, 1]
sized square regions and resizes these to a
max(rel_pos)
square region through bilinear interpolation before
summary.
A list
of the same length as explist
wherein list
elements contain the results of the repeated lookup per experiment.
10kb-40kb
Other aggregate repeated matrix lookup analyses:
APA()
,
ARA()
,
ATA()
,
CSCAn()
,
PESCAn()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.