Description Usage Arguments Value
View source: R/cis-promoters.R
Get correlations of all promoters to a specific gene
1 2 3 4 5 6 7 | gene_promoter_cors(
gene,
meth_mat,
expr_mat,
promoter_intervs,
spearman = FALSE
)
|
gene |
name of the gene |
meth_mat |
Matrix with methylation values. Each row is a promoter and each column is a sample. Rownames should contain "chrom", "start" and "end" separated by "_" |
expr_mat |
Matrix with expression values. Each row is a gene and each column is a sample. |
promoter_intervs |
intervals set with additional "name" column. In case of duplicate names or coordinates the first one in the matrix will be used. Only intervals that are within promoter_intervs would be used. |
spearman |
use spearman correlation (if FALSE - use pearson) |
dataframe with the following columns:
genename of the gene
promotername of the promoter
(cor)correlation of the gene
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.