Change rownames of matrix from coordinates to promoter names

coord_to_promoter_names(mat, promoter_intervs)

Arguments

mat

matrix with coordinate rownames (chrom_start_end).

promoter_intervs

intervals set with additional "name" column. In case of duplicate names or coordinates the first one in the matrix will be used.

Value

mat with rownames changed to promoter name taken from promtoer_intervs