gene_promoter_cors.Rd
Get correlations of all promoters to a specific gene
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