Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

exportTracks

Export GenomeGraph tracks to a annotation file representation.


Description

This function is still a bit experimental. So far only BED export is supported.

Usage

exportTracks(tracks, range, chromosome, file)

Arguments

tracks

A list of annotation track objects to be exported into a single BED file.

range

A numeric vector or length 2. The genomic range to display when opening the file in a browser.

chromosome

The chromosome to display when opening the file in a browser.

file

Character, the path to the file to write into.

Details

FIXME: Need to support WIG exports as well...

Value

The function is called for its side effect of writing to a file.

Author(s)

Florian Hahne

Examples

## export AnnotationTrack to BED file
at <- AnnotationTrack(start=seq(1,10), width=1, chromosome="chr1")
exportTracks(list(at), range=c(1, 10), chromosome="chr1", 
             file=paste0(tempfile(),".bed"))

Gviz

Plotting data and annotation information along genomic coordinates

v1.34.1
Artistic-2.0
Authors
Florian Hahne [aut], Steffen Durinck [aut], Robert Ivanek [aut, cre] (<https://orcid.org/0000-0002-8403-056X>), Arne Mueller [aut], Steve Lianoglou [aut], Ge Tan [aut], Lance Parsons [aut], Shraddha Pai [aut], Thomas McCarthy [ctb], Felix Ernst [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.