getDistAroundVp: getDistAroundVp

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

getDistAroundVp Add the distance information for a given viewpoint to the fragment data.

Usage

1
getDistAroundVp(vp, vpData, fragData)

Arguments

vp

A single character string with the selected viewpoint.

vpData

DataFrame containing the column data of the FourC object.

fragData

GRanges object containing the row data (fragment data) of the FourC object.

Details

Mid positions of the fragments are defined as start + (end - start)

Value

Updated GRanges object that contains the distance from the viewpoint for the fragments on the viewpoint chromosome.

Examples

1
2
3
data(fc, package="FourCSeq")

fragmentDataWithDistance <- getDistAroundVp("ap", colData(fc), rowRanges(fc))

FourCSeq documentation built on Nov. 8, 2020, 7:08 p.m.