Title: | Multiple Sequence Alignment for R Shiny |
---|---|
Description: | Visualises multiple sequence alignments dynamically within the Shiny web application framework. |
Authors: | Benedikt Rauscher [aut, cph], Zachary Charlop-Powers [cre, aut] |
Maintainer: | Zachary Charlop-Powers <[email protected]> |
License: | BSL-1.0 |
Version: | 0.6.0 |
Built: | 2024-11-19 05:56:59 UTC |
Source: | https://github.com/zachcp/msar |
functionality to convert objects to a fasta string. 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.fasta(seqs)
as.fasta(seqs)
seqs |
(Required.) the sequence/alignment to be displayed. A character vector, |
A character string in fasta format.
seqfile <- system.file("sequences","AHBA.aln",package="msaR") as.fasta(seqfile) help("as.fasta") ## Not run: if (requireNamespace("Biostrings")) { seqs <- readDNAStringSet(seqfile) as.fasta(seqs) } ## End(Not run)
seqfile <- system.file("sequences","AHBA.aln",package="msaR") as.fasta(seqfile) help("as.fasta") ## Not run: if (requireNamespace("Biostrings")) { seqs <- readDNAStringSet(seqfile) as.fasta(seqs) } ## End(Not run)
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)
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)
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)
Dynamic Multiple Sequence Alignments in R and Shiny
msaR( msa, menu = TRUE, width = NULL, height = NULL, rowheight = 15, alignmentHeight = 225, overviewbox = TRUE, seqlogo = TRUE, colorscheme = "nucleotide", conservation = FALSE, markers = TRUE, metacell = FALSE, leftheader = TRUE, labels = TRUE, labelname = TRUE, labelid = FALSE, labelNameLength = 100, overviewboxWidth = "auto", overviewboxHeight = "fixed" )
msaR( msa, menu = TRUE, width = NULL, height = NULL, rowheight = 15, alignmentHeight = 225, overviewbox = TRUE, seqlogo = TRUE, colorscheme = "nucleotide", conservation = FALSE, markers = TRUE, metacell = FALSE, leftheader = TRUE, labels = TRUE, labelname = TRUE, labelid = FALSE, labelNameLength = 100, overviewboxWidth = "auto", overviewboxHeight = "fixed" )
msa |
File or BioString Object representing a multiple Sequence Alignment. |
menu |
Optional. Default |
width |
Optional. Default |
height |
Optional. Default |
rowheight |
Optional. Default |
alignmentHeight |
Optional. Default |
overviewbox |
optional. Default |
seqlogo |
optional. Default |
colorscheme |
optional. Default |
conservation |
optional. Default |
markers |
optional. Default |
metacell |
optional. Default |
leftheader |
optional. Default |
labels |
optional. Default |
labelname |
optional. Default |
labelid |
optional. Default |
labelNameLength |
optional. Default |
overviewboxWidth |
optional. Default. |
overviewboxHeight |
optional. Default. |
seqfile <- system.file("sequences","AHBA.aln",package="msaR") msaR(seqfile)
seqfile <- system.file("sequences","AHBA.aln",package="msaR") msaR(seqfile)
Widget output function for use in Shiny
msaROutput(outputId, width = "100%", height = "100%")
msaROutput(outputId, width = "100%", height = "100%")
outputId |
output id |
width |
width |
height |
height |
Widget render function for use in Shiny
renderMsaR(expr, env = parent.frame(), quoted = FALSE)
renderMsaR(expr, env = parent.frame(), quoted = FALSE)
expr |
expr |
env |
env |
quoted |
quoted |