calcDistNearestTSS: Calculate distance from region to nearest TSS

View source: R/GetNearbyGenes.R

calcDistNearestTSSR Documentation

Calculate distance from region to nearest TSS

Description

Idea For a given region R linked to X genes G merge R with nearest TSS for G (multiple) this will increse nb of lines i.e R1 - G1 - TSS1 - DIST1 R1 - G1 - TSS2 - DIST2 To vectorize the code: make a granges from left and onde from right and find distance collapse the results keeping min distance for equals values

Usage

calcDistNearestTSS(links, TRange, tssAnnot)

Arguments

links

Links to calculate the distance

TRange

Genomic coordinates for Tartget region

tssAnnot

TSS annotation

Value

dataframe of genomic distance from TSS

Author(s)

Tiago C. Silva


gevaertlab/EpiMix documentation built on July 20, 2023, 9:28 a.m.