chromatinHMMRoadMap: Creates a ChromHMM track from a file of RoadMap

Description Usage Arguments Value Author(s) References Examples

Description

Creates a ChromHMM track from a file of RoadMap using the Gviz bioconductor package. A complete list of features and their associated colours can be found in the user guide.

Usage

1
chromatinHMMRoadMap(gen, chr, start, end, featureDisplay)

Arguments

gen

The name of the genome. Currently only handles human data from either the previous version, GRCh37 (also known as hg19) or the current version, GRCh38 (also known as hg38).

chr

The chromosome of interest

start

The starting position in the region of interest (the smallest value)

end

The end position in the region of interest (the largest value)

featureDisplay

A vector of regulatory features to be displayed, such as Egr1. Spelling and capitalisation of features must be identical to those in the user guide. There are three possibilities. First, the visualisation of only one feature (e.g. featureDisplay <- "CTCF"), only the name of the specific feature is required. Second, visualisation of a set of features, for this a vector of features is required (e.g. featureDisplay <- c("Egr1","CTCF")). Finally, visualison all features in the genomic region, achived by using the word "all" (e.g. featureDisplay <- "all"), "all" is set by default. You can find the complete list of features and their associated colours in the user guide.

Value

An AnnotationTrack object of Gviz

Author(s)

Tiphaine Martin

Tom Hardiman

References

http://bioconductor.org/packages/release/bioc/html/Gviz.html

Got to RoadMap Epigenome

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library("Gviz")
gen <- "hg19"
chr <- "chr1"
start <- 10000
end <- 50000
featureDisplay <- "all"

extdata <- system.file("extdata", package="coMET",mustWork=TRUE)
bedFilePath <- file.path(extdata, "roadMap.bed")
  
if(interactive()){
  roadmapTrack <- chromatinHMMRoadMap(chr,start, end, bedFilePath, featureDisplay = featureDisplay )
  plotTracks(roadmapTrack, from = start, to = end) 
} else {
  data(roadmapTrack)
  plotTracks(roadmapTrack, from = start, to = end)
}

TiphaineCMartin/coMET_original documentation built on May 9, 2019, 4:49 p.m.