composite-track: Composite Track

Description Usage Arguments Value See Also Examples

Description

Two or more arbitrary tracks can be used to create a composite track, by which different features can be shown in the same track.

Usage

1
2
3
4
5
## S4 method for signature 'TnTTrack,TnTTrack'
merge(x, y, ...)

## S4 method for signature 'TnTTrack,missing'
merge(x, y, ...)

Arguments

x, y, ...

Track constructed with track-constructors or composite track.

Value

Returns a "CompositeTrack" object.

See Also

http://tnt.marlin.pub/articles/examples/track-CompositeTrack.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gr <- GRanges("chr1", IRanges(c(11000, 20000, 60000), width = 2000))
gpos <- GRanges("chr1", IRanges(c(12000, 21000, 61000), width = 1), value = c(1, 2, 3))
btrack <- BlockTrack(gr, label = "Block Track", tooltip = as.data.frame(gr), color = "lightblue4")
ptrack <- PinTrack(gpos, label = "Pin Track", tooltip = as.data.frame(gpos), background = "beige")

ctrack <- merge(btrack, ptrack)
## Not run: 
TnTBoard(ctrack)

## End(Not run)

TnT documentation built on Nov. 8, 2020, 8:11 p.m.