regulatoryFeaturesBiomart_ENSEMBL: Creates a regulatory feature track from ENSEMBL

regulatoryFeaturesBiomart_ENSEMBLR Documentation

Creates a regulatory feature track from ENSEMBL

Description

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

Usage

regulatoryFeaturesBiomart_ENSEMBL(gen, chr, start, end, featureDisplay = "all",
datasetEnsembl = "hsapiens_regulatory_feature",
title="Regulatory Features ENSEMBL")

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 Promoter. 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 <- "Promoter"), 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("TF binding site","Promoter")). 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.

datasetEnsembl

Allows the user to manually set which data set is used if required.Default=hsapiens_regulatory_feature

title

The name of the annotation track

Value

An AnnotationTrack object of Gviz

Author(s)

Tiphaine Martin

Tom Hardiman

References

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

Got to ENSEMBLregulation binding motif biomart

Examples

library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 500000
featureDisplay <- "Enhancer"

if(interactive()){
 regulatoryFeaturesBiomartTrackSingle<-regulatoryFeaturesBiomart_ENSEMBL(gen,
 chr,start,end,featureDisplay)
  plotTracks(regulatoryFeaturesBiomartTrackSingle, from = start, to = end,
                                   fontfamily="sans",fontfamily.title="sans")
} else {
  data(regulatoryFeaturesBiomartTrackSingle)
  plotTracks(regulatoryFeaturesBiomartTrackSingle, from = start, to = end,
                                   fontfamily="sans",fontfamily.title="sans")
}

#####

library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 100000
featureDisplay <- c("CTCF Binding Site","Enhancer")

if(interactive()){
 regulatoryFeaturesBiomartTrackMultiple<-regulatoryFeaturesBiomart_ENSEMBL(gen,
 chr,start,end,featureDisplay)
  plotTracks(regulatoryFeaturesBiomartTrackMultiple, from = start, to = end,
                                   fontfamily="sans",fontfamily.title="sans")
} else {
  data(regulatoryFeaturesBiomartTrackMultiple)
  plotTracks(regulatoryFeaturesBiomartTrackMultiple, from = start, to = end,
                                   fontfamily="sans",fontfamily.title="sans")
}

#####

library("Gviz")
gen <- "hg38"
chr <- "chr1"
start <- 10000
end <- 50000
featureDisplay <- "all"
if(interactive()){
 regulatoryFeaturesBiomartTrackAll<-regulatoryFeaturesBiomart_ENSEMBL(gen,
 chr,start,end,featureDisplay)
  plotTracks(regulatoryFeaturesBiomartTrackAll, from = start, to = end,
                                   fontfamily="sans",fontfamily.title="sans")
} else {
  data(regulatoryFeaturesBiomartTrackAll)
  plotTracks(regulatoryFeaturesBiomartTrackAll, from = start, to = end,
                                   fontfamily="sans",fontfamily.title="sans")

}

TiphaineCMartin/coMET documentation built on April 27, 2022, 6:45 a.m.