Learn R Programming

FourCSeq (version 1.6.2)

getDistAroundVp: getDistAroundVp

Description

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

Usage

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.

Value

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

Details

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

Examples

Run this code
data(fc, package="FourCSeq")

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

Run the code above in your browser using DataLab