ProteinSequenceTrack: ProteinSequenceTrack

Description Usage Arguments Author(s) See Also Examples

View source: R/AllClasses.R

Description

A track to display peptides and protein sequences.

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)
}

RGLab/Pviz documentation built on May 9, 2017, 11:01 p.m.