MatrixSeq-class | R Documentation |
This is a very simple flexible class to store DNA and aminoacid aligned sequences together with their physicochemical properties. That is, a place where each aminoacid or codon from the sequence is represented by numerical value from a physicochemical index.
MatrixSeq(seqs, matrix, names, aaindex, phychem, accession)
## S4 method for signature 'MatrixSeq'
show(object)
seqs , matrix , names , aaindex , phychem , accession |
See detail section |
object |
An object from 'MatrixSeq' class |
A string character vector of DNA or aminoacid sequences.
A numerical matrix or a numerical vector (in the constructor) carrying the specified aminoacid physicochemical indices for aminoacid in the DNA or aminoacid sequence(s).
Alias/names/IDs DNA or aminoacid sequences.
Aminoacid index database where the physicochemical index can be found.
Description of the physicochemical index applied to represent the DNA or aminoacid sequences.
Accession number or ID of the applied physicochemical index in the database.
Given the slot values, it defines a MatrixSeq-class.
A MatrixSeq-class object
Print/show of a MatrixSeq-class object.
Robersy Sanchez https://genomaths.com
aln <- c(S1 = "ATGCGGATTAGA", S2 = "ATGACGATCACA", S3 = "ATGAGATCACAG")
cd <- DNAMultipleAlignment(aln)
r1 <- peptide_phychem_index(unmasked(cd), acc = "EISD840101")
r1
## Extract the second aminoacid sequence
r1[2]
## Using the sequence given name
r1$S1
## Extract the second aminoacid value from the first sequence
r1[1,2]
## Change the name the second sequence
names(r1) <- c('S1', 'Seq1', 'S1')
r1
## Extract the amino acid sequences
slot(r1, 'seqs')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.