APA | R Documentation |
Perform multiple matrix lookup in Hi-C matrices for a twodimensional set of locations, for example loops.
APA(
explist,
bedpe,
dist_thres = NULL,
size_bin = NULL,
size_bp = NULL,
outlier_filter = c(0, 0.995),
anchors = NULL,
raw = TRUE
)
explist |
Either a single GENOVA |
bedpe |
A BEDPE-formatted
|
dist_thres |
An |
size_bin , size_bp |
The size of the lookup regions in bins (i.e. a score
of 21 yields an output with 10 Hi-C bins both up- and downstream of the
anchor). When |
outlier_filter |
A |
anchors |
(Optional) A |
raw |
A |
For each row in the 'bedpe
' or 'anchors
' argument, an
size_bin
x size_bin
region centered on that location is
retrieved. This data is then summarised by taking the mean for every
element in these matrices across all locations.
The 'bedpe
' argument is converted internally to an 'anchors
'
object.
An APA_discovery
object containing the following slots:
An array
with the dimensions
size_bin
x size_bin
x length(explist)
containing mean
contact values for bins surrounding the anchors.
A
list
with length(explist)
elements for each contacts object,
wherein an element is an n x size_bin
x size_bin
array with
contact values for each anchor. 'n' is the number of non-empty valid
anchors.
10kb-20kb
The rep_mat_lookup
function that performs the
lookup and summary for the APA
function and others.
The
discovery
class for a general description of
discovery
classes.
The visualise
function
for visualisation of the results.
The quantify
function for quantification of loop strenghts.
The
anchors
documentation for more information about
anchors.
Other aggregate repeated matrix lookup analyses:
ARA()
,
ATA()
,
CSCAn()
,
PESCAn()
,
rep_mat_lookup()
## Not run:
# Typical usage: APA for loops
apa <- APA(list(WT = WT_10kb, KO = KO_10kb), bedpe = WT_loops)
# Alternative usage with pre-calculated anchors
anchors <- anchors_APA(WT_10kb$ABS, resolution(WT_10kb),
bedpe = WT_loops
)
apa <- APA(list(WT = WT_10kb, KO = KO_10kb), anchors = anchors)
# Visualising results
visualise(apa)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.