plotTrack-methods {R3CPET} | R Documentation

## Plot interaction on a genomic track

### Description

This helper method can be used to display a genomic track for a certain location that contains the chromosome and the related interactions if any.

### Usage

    ## S4 method for signature 'ChiapetExperimentData,GRanges'
    plotTrack(object, range)

### Arguments

`object` | a `ChiapetExperimentData` object which contains the raw data.
`range` | The genomic coordinates of the location to display

### Value

a `ggbio::track` object

### Author(s)

Mohamed Nadhir Djekidel (nde12@mails.tsinghua.edu.cn)

### See Also

`ChiapetExperimentData`

### Examples

        petFile <- file.path(system.file("example",package="R3CPET"),"HepG2_interactions.txt")
        tfbsFile <- file.path(system.file("example",package="R3CPET"),"HepG2_TF.txt.gz")

        ## Not run:
        x <- ChiapetExperimentData(pet = petFile, tfbs=  tfbsFile, IsBed = FALSE, ppiType="HPRD", filter= TRUE)
        gr <- GRanges("chr1",IRanges(start=100000,end=300000))
        plotTrack(x,gr)

    ## End(Not run)

[Package R3CPET version 1.12.0 Index]