The tracks of a TnTBoard are stored as a list which can be accessed or modified with these functions.
tracklist(tntboard) tracklist(tntboard) <- value
tntboard | A TnTBoard or TnTGenome object |
---|---|
value | A list of tracks |
tracklist
returns a list of tracks.
bt <- BlockTrack(GRanges("chr21", IRanges(100, 1200))) li.tracks <- list(bt, bt) board <- TnTBoard(li.tracks) tracklist(board)#> [[1]] #> A BlockTrack #> | Label: GRanges("chr21", IRanges(100, 1200)) #> | Background: missing, use ‘white’ #> | Height: 30 #> | Data: RangeTrackData object with 1 range and 3 metadata columns: #> | seqnames ranges strand | tooltip color key #> | <Rle> <IRanges> <Rle> | <data.frame> <character> <integer> #> | [1] chr21 [100, 1200] * | blue 1 #> | ------- #> | seqinfo: 1 sequence from an unspecified genome; no seqlengths #> #> [[2]] #> A BlockTrack #> | Label: GRanges("chr21", IRanges(100, 1200)) #> | Background: missing, use ‘white’ #> | Height: 30 #> | Data: RangeTrackData object with 1 range and 3 metadata columns: #> | seqnames ranges strand | tooltip color key #> | <Rle> <IRanges> <Rle> | <data.frame> <character> <integer> #> | [1] chr21 [100, 1200] * | blue 1 #> | ------- #> | seqinfo: 1 sequence from an unspecified genome; no seqlengths #># NOT RUN { show(board) # }tracklist(board) <- list(bt)# NOT RUN { show(board) # }