Description Usage Arguments Details The Amino Acid alphabet Constructor-like functions and generics Accessor methods Author(s) See Also Examples
An AAString object allows efficient storage and manipulation of a long amino acid sequence.
1 2 3 4 5 6 | AAString(x="", start=1, nchar=NA)
## Predefined constants:
AA_ALPHABET # full Amino Acid alphabet
AA_STANDARD # first 20 letters only
AA_PROTEINOGENIC # first 22 letters only
|
x |
A single string. |
start, nchar |
Where to start reading from in |
The AAString class is a direct XString subclass (with no additional slot). Therefore all functions and methods described in the XString man page also work with an AAString object (inheritance).
Unlike the BString container that allows storage of any single string (based on a single-byte character set) the AAString container can only store a string based on the Amino Acid alphabet (see below).
This alphabet contains all letters from the
Single-Letter Amino Acid Code (see ?AMINO_ACID_CODE
)
plus "*"
(the stop letter), "-"
(the gap
letter), "+"
(the hard masking letter), and "."
(the not a letter or not available letter).
It is stored in the AA_ALPHABET
predefined constant (character
vector).
The alphabet()
function returns AA_ALPHABET
when
applied to an AAString object.
In the code snippet below,
x
can be a single string (character vector of length 1)
or a BString object.
AAString(x="", start=1, nchar=NA)
:
Tries to convert x
into an AAString object by reading
nchar
letters starting at position start
in x
.
In the code snippet below, x
is an AAString object.
alphabet(x)
:
If x
is an AAString object, then return the Amino Acid
alphabet (see above).
See the corresponding man pages when x
is a
BString, DNAString or RNAString object.
H. Pag<c3><a8>s
AMINO_ACID_CODE
,
letter
,
XString-class,
alphabetFrequency
1 2 3 4 | AA_ALPHABET
a <- AAString("MARKSLEMSIR*")
length(a)
alphabet(a)
|
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Loading required package: IRanges
Loading required package: XVector
Attaching package: 'Biostrings'
The following object is masked from 'package:base':
strsplit
[1] "A" "R" "N" "D" "C" "Q" "E" "G" "H" "I" "L" "K" "M" "F" "P" "S" "T" "W" "Y"
[20] "V" "U" "O" "B" "J" "Z" "X" "*" "-" "+" "."
[1] 12
[1] "A" "R" "N" "D" "C" "Q" "E" "G" "H" "I" "L" "K" "M" "F" "P" "S" "T" "W" "Y"
[20] "V" "U" "O" "B" "J" "Z" "X" "*" "-" "+" "."
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.