Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SeqFrag

Class for sub-sequences


Description

as.SeqFrag is called by all methods of getFrag, but not directly by the users. It creates an object sequence of class SeqFrag.

Usage

as.SeqFrag(object, begin, end, name)
 is.SeqFrag(object)

Arguments

object

an object sequence of class seqFastadna, seqFastaAA, seqAcnucWeb or seqFrag

begin

the first base of the fragment to get

end

the last base of the fragment to get

name

the name of the sequence

Value

as.SeqFrag returns a biological sequence with the following attributes:

seqMother

the name of the sequence from which the sequence comes

begin

the position of the first base of the fragment on the mother sequence

end

the position of the last base of the fragment on the mother sequence

class

SeqFrag which is the classfor sub-sequence

is.SeqFrag returns TRUE if the object is of class Seqfrag.

Author(s)

D. Charif, J.R. Lobry

References

citation("seqinr")

See Also

Examples

s <- read.fasta(file = system.file("sequences/malM.fasta", package = "seqinr"))
 getFrag(s[[1]], 1, 10)

seqinr

Biological Sequences Retrieval and Analysis

v4.2-16
GPL (>= 2)
Authors
Delphine Charif [aut], Olivier Clerc [ctb], Carolin Frank [ctb], Jean R. Lobry [aut, cph], Anamaria Necşulea [ctb], Leonor Palmeira [ctb], Simon Penel [cre], Guy Perrière [ctb]
Initial release
2022-05-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.