getPeak2GeneLinks.Rd
This function obtains peak-to-gene links from an ArchRProject.
getPeak2GeneLinks(
ArchRProj = NULL,
corCutOff = 0.45,
FDRCutOff = 1e-04,
varCutOffATAC = 0.25,
varCutOffRNA = 0.25,
resolution = 1,
returnLoops = TRUE
)
An ArchRProject
object.
A numeric describing the minimum numeric peak-to-gene correlation to return. If this value
is positive, then only positive correlations greater than or equal to corCutOff
will be returned. If this value is
negative, then only negative correlations less than or equal to corCutOff
will be returned. If corCutOff = 0
, only
positive correlations will be returned.
A numeric describing the maximum numeric peak-to-gene false discovery rate to return.
A numeric describing the minimum variance quantile of the ATAC peak accessibility when selecting links.
A numeric describing the minimum variance quantile of the RNA gene expression when selecting links.
A numeric describing the bp resolution to return loops as. This helps with overplotting of correlated regions.
A boolean indicating to return the peak-to-gene links as a GRanges
"loops" object designed for use with
the ArchRBrowser()
or as an ArchRBrowserTrack()
.
# Get Test ArchR Project
proj <- getTestProject()
# Add P2G Links
proj <- addPeak2GeneLinks(proj, k = 20)
# Get P2G Links
p2g <- getPeak2GeneLinks(proj)