Learn R Programming

seqinr (version 1.0-4)

getFrag: Generic Function to obtain a fragment of a sequence

Description

Methods for the classes of sequences: SeqFastadna, SeqFastaAA, SeqAcnucWeb, SeqFrag.

Usage

getFrag(object, begin, end)

Arguments

object
an object of the class SeqFastadna, SeqFastaAA, SeqAcnucWeb or SeqFrag
begin
First base
end
Last base

Value

  • An object of class SeqFrag, which is a vector of chars with many attributes:
  • seqMotherthe name of the sequence from which the sequence comes
  • beginthe position of the first base of the fragment on the mother sequence
  • endthe position of the last base of the fragment on the mother sequence
  • classthe class of the new sequence i.e. SeqFrag

References

citation("seqinr")

See Also

getSequence

Examples

Run this code
methods(getFrag)

Run the code above in your browser using DataLab