cis_em_promoters: Get candidates for promoters that are regulated by...

Description Usage Arguments Value

View source: R/cis-promoters.R

Description

Get candidates for promoters that are regulated by methylation in cis

Usage

1
2
3
4
5
6
7
8
cis_em_promoters(
  meth_mat,
  expr_mat,
  promoter_intervs,
  k_locus_rank = 2,
  min_samples = 100,
  spearman = FALSE
)

Arguments

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.

k_locus_rank

rank of the correlation to extract for each promoter. For example, if k_locus_rank = 2 the second best correlation would be extracted for every promoter in the field kth

min_samples

minimal number of samples per gene (both expression and methylation). Default is 100.

spearman

use spearman correlation (if FALSE - use pearson)

Value

dataframe with the following columns:


tanaylab/methylayer documentation built on Dec. 23, 2021, 7:45 a.m.