subString | R Documentation |
This function gets a subsequence from a DNAString
,
RNAString
, AAString
, BString
, DNAStringSet
,
RNAStringSet
, AAStringSet
, BStringSet
object from the Biostrings
package.
subString(x, s, e)
x |
|
s |
start vector [mandatory] |
e |
end vector [mandatory] |
subsequence of an Biostrings
object
Kristian K Ullrich
subseq
## define two cds sequences
cds1 <- Biostrings::DNAString("ATGCAACATTGC")
cds2 <- Biostrings::DNAString("ATG---CATTGC")
cds1.cds2.aln <- c(Biostrings::DNAStringSet(cds1),
Biostrings::DNAStringSet(cds2))
subString(cds1.cds2.aln, c(1,7), c(3,12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.