as.sequences {msaR} | R Documentation |
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
.
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.
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)