trackdata {TnT} | R Documentation |
Access and modify the track data. x$name
and x$name <- value
are
just shortcuts for trackData(x)$name
and trackData(x)$name <- value
,
respectively.
trackData(x) trackData(x) <- value ## S4 method for signature 'TnTTrack' x$name ## S4 replacement method for signature 'TnTTrack' x$name <- value
x |
A TnTTrack object. |
value |
Replaced value. |
name |
Passed to the inner method for track data. |
trackData
on all track types except "CompositeTrack" returns an
object that inherits GRanges class, which means they should behave like a GRanges.
While trackData
on "CompositeTrack" returns a list of tracks.
track <- BlockTrack(GRanges("chr1", IRanges(6, 54))) class(trackData(track)) # track data of block track is an object that inherits GRanges. #trackData(track) ctrack <- merge(track, track) class(trackData(ctrack)) # track data of composite track is a list of tracks #trackData(ctrack)