ProteinSequenceTrack {Pviz}R Documentation

ProteinSequenceTrack

Description

A track to display peptides and protein sequences.

Usage

ProteinSequenceTrack(sequence = NULL, name = "Sequence", ...)

Arguments

sequence

A character or AAString of length one. The sequence to display.

name

A character. The name of the track used in the title panel when plotting

...

Additional items which will all be interpreted as display parameters.

Author(s)

Renan Sauteraud

See Also

SequenceTrack, DisplayPars

Examples

if(require(pepDat)){
  data(pep_hxb2)
  hxb2_seq <- metadata(pep_hxb2)$sequence
  st<-ProteinSequenceTrack(sequence=hxb2_seq, name="env")

  # Plotting amino acids
  plotTracks(st, to = 20)

  # When the range becomes wider, only coloured squares are displayed
  plotTracks(st, to = 100)

  # When overplotting, a single line will mark the ProteinSequenceTrack
  plotTracks(st)
}

[Package Pviz version 1.28.0 Index]