Description Usage Arguments Value Examples
View source: R/enhancerToGene.R
Link enhancers to target genes
1 2 3 4 5 6 7 8 9 | enhancerToGene(
VM_RNA_mat,
VM_ATAC_mat,
searchSpace,
method,
minOverlap = 0.4,
nCores = 1,
nTrees = 1000
)
|
VM_RNA_mat |
Matrix containing regions as rows, virtual cells as columns and cisTopic's region accessibility probabilities as values (recommended, see getVirtualFeatureMatrix()) |
searchSpace |
Search space GenomicRanges object as obtained from getSearchSpace() |
method |
Whether to use pearson correlation between region accessibility and gene expression ('Correlation') or a random forest ('RF') model to infer enhancer-to-gene links. |
nCores |
How many cores to use if method='RF'. Default: 1 |
nTrees |
How many trees to use per RF model if method='RF'. Default: 1000 |
minoverlap |
Minimum overlap between the candidate regulatory regions and the search space. Default: 0.4. |
A list containing a data frame for each gene, in which the RF importance (if method='RF') or the correlation values (if method='Correlation') are given.
1 2 | RF_links <- enhancerToGene(VM_DGEM, VM_PRTM, searchSpace, method='RF')
Cor_links <- enhancerToGene(VM_DGEM, VM_PRTM, searchSpace, method='Correlation')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.