addPeak2GeneLinks.Rd
This function will add peak-to-gene links to a given ArchRProject
addPeak2GeneLinks(
ArchRProj = NULL,
reducedDims = "IterativeLSI",
useMatrix = "GeneIntegrationMatrix",
dimsToUse = 1:30,
scaleDims = NULL,
corCutOff = 0.75,
cellsToUse = NULL,
k = 100,
knnIteration = 500,
overlapCutoff = 0.8,
maxDist = 250000,
scaleTo = 10^4,
log2Norm = TRUE,
predictionCutoff = 0.4,
addEmpiricalPval = FALSE,
seed = 1,
threads = max(floor(getArchRThreads()/2), 1),
verbose = TRUE,
logFile = createLogFile("addPeak2GeneLinks")
)
An ArchRProject
object.
The name of the reducedDims
object (i.e. "IterativeLSI") to retrieve from the designated ArchRProject
.
A vector containing the dimensions from the reducedDims
object to use in clustering.
A boolean value that indicates whether to z-score the reduced dimensions for each cell. This is useful for minimizing
the contribution of strong biases (dominating early PCs) and lowly abundant populations. However, this may lead to stronger sample-specific
biases since it is over-weighting latent PCs. If set to NULL
this will scale the dimensions based on the value of scaleDims
when the
reducedDims
were originally created during dimensionality reduction. This idea was introduced by Timothy Stuart.
A numeric cutoff for the correlation of each dimension to the sequencing depth. If the dimension has a
correlation to sequencing depth that is greater than the corCutOff
, it will be excluded from analysis.
A character vector of cellNames to compute coAccessibility on if desired to run on a subset of the total cells.
The number of k-nearest neighbors to use for creating single-cell groups for correlation analyses.
The number of k-nearest neighbor groupings to test for passing the supplied overlapCutoff
.
The maximum allowable overlap between the current group and all previous groups to permit the current group be added to the group list during k-nearest neighbor calculations.
The maximum allowable distance in basepairs between two peaks to consider for co-accessibility.
The total insertion counts from the designated group of single cells is summed across all relevant peak regions
from the peakSet
of the ArchRProject
and normalized to the total depth provided by scaleTo
.
A boolean value indicating whether to log2 transform the single-cell groups prior to computing co-accessibility correlations.
A numeric describing the cutoff for RNA integration to use when picking cells for groupings.
Add empirical p-values based on randomly correlating peaks and genes not on the same seqname.
A number to be used as the seed for random number generation required in knn determination. It is recommended to keep track of the seed used so that you can reproduce results downstream.
The number of threads to be used for parallel computing.
A boolean value that determines whether standard output should be printed.
The path to a file to be used for logging ArchR output.