getDistAroundVp {FourCSeq} | R Documentation

## 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.

### 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

    data(fc, package="FourCSeq")

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

[Package FourCSeq version 1.21.0 Index]