Pin Track

A Pin track can be created from a width-one GRanges that represents the genomic position and a numeric vector representing height of each "pin".


Basic Example

Construct the data.

ir <- IRanges(start = c(10, 100, 1000), width = 1)
gpos <- GRanges("chr12", ir)
gpos$score <- c(0.1, 0.5, 1)

To construct the track and create the visualization.

ptrack <- TnT::PinTrack(gpos, value = gpos$score, domain = c(0, 1), color = c("yellow", "blue", "red"))
TnTBoard(ptrack, GRanges("chr12", IRanges(1, 1200)))

Session Info


Try the TnT package in your browser

Any scripts or data that you put into this service are public.

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