as.sequences {msaR} | R Documentation |
as.sequences
Description
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
.
Usage
as.sequences(seqs)
Arguments
seqs |
(Required.) the sequence/alignment to be displayed. A character vector, |
Value
A list of named lists where each sublist has name, id, and seq members.
Examples
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)
[Package msaR version 0.6.0 Index]