
Last chance! 50% off unlimited learning
Sale ends in
Renders a sequence alignment as coloured HTML suitable for viewing with a web browser.
aln2html(aln, file="alignment.html", Entropy=0.5, append=TRUE,
caption.css="color: gray; font-size: 9pt",
caption="Produced by Bio3D",
fontsize="11pt", bgcolor=TRUE, colorscheme="clustal")
an alignment list object with id
and ali
components, similar to that generated by read.fasta
.
name of output html file.
conservation ‘cuttoff’ value below which alignment columns are not coloured.
logical, if TRUE output will be appended to
file
; otherwise, it will overwrite the contents of
file
.
a character string of css options for rendering ‘caption’ text.
a character string of text to act as a caption.
the font size for alignment characters.
background colour.
conservation colouring scheme, currently only “clustal” is supported with alternative arguments resulting in an entropy shaded alignment.
Called for its effect.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
# NOT RUN {
## Read an example alignment
aln <- read.fasta(system.file("examples/hivp_xray.fa",package="bio3d"))
## Produce a HTML file for this alignment
aln2html(aln, append=FALSE, file=file.path("eg.html"))
aln2html(aln, colorscheme="ent", file="eg.html")
## View/open the file in your web browser
#browseURL("eg.html")
# }
Run the code above in your browser using DataLab