Learn R Programming

Pviz (version 1.6.2)

ProteinSequenceTrack: 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.

See Also

SequenceTrack, DisplayPars

Examples

Run this code
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)
}

Run the code above in your browser using DataLab