Access Track Tooltips
tooltip(x) tooltip(x) <- value # S4 method for TrackData tooltip(x) # S4 method for TnTTrack tooltip(x) # S4 method for TrackData,data.frame tooltip(x) <- value # S4 method for TnTTrack,data.frame tooltip(x) <- value
x | A TnTTrack object. |
---|---|
value | A data frame to replace, its row number should equal to length of data. |
tooltip
returns a data frame.
gr <- GRanges("chr12", IRanges(c(6, 69), c(42, 135)), Name = c("my range 1", "my range 2")) track <- BlockTrack(gr) tooltip(track)#> Name #> 1 my range 1 #> 2 my range 2tooltip(track)$Width <- width(gr) tooltip(track)#> Name Width #> 1 my range 1 37 #> 2 my range 2 67