Description Usage Arguments Value Examples
functionality to convert sequence objects into R lists that can be serialized to
JS as JSON. Currently, this can handle character objects which are interpreted
as filenames or several of the popular means of storing sequence data: DNAbin
,
DNAStringSet
, AAStringSet
,
RNAStringSet
, BStringSet
,
DNAMultipleAlignment
, RNAMultipleAlignment
,
or AAMultipleAlignment
.
1 | as.sequences(seqs)
|
seqs |
(Required.) the sequence/alignment to be displayed. A character vector, |
A list of named lists where each sublist has name, id, and seq members.
1 2 3 4 5 6 7 8 9 10 11 | seqfile <- system.file("sequences","AHBA.aln",package="msaR")
as.sequences(seqfile)
help("as.sequences")
## Not run:
if (requireNamespace("Biostrings")) {
seqs <- readDNAStringSet(seqfile)
as.sequences(seqs)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.