Closed kagningemma closed 3 years ago
What is the actual problem? Can you post the error message please?
If the problem is the fact that LaTeX code is displayed, then you should replace output="asis"
by something else (see ?msaPrettyPrint
).
Thank you for your feedback. I am not familiar with latex, I tried different output options :
msaPrettyPrint(myAlignment, output="dvi", askForOverwrite=FALSE)
Error in texi2dvi(texfile, quiet = !verbose, pdf = identical(output, "pdf"), :
latex is not available
> msaPrettyPrint(myAlignment, output="pdf", askForOverwrite=FALSE)
Error in texi2dvi(texfile, quiet = !verbose, pdf = identical(output, "pdf"), :
pdflatex is not available
However, I could obtain a .tex file as output, when I used output="tex"
.
How do I view the multiple sequence alignment using the .tex file?
I could not find any R package named "pdflatex", "latex" in CRAN.
LaTeX is a typesetting system that is independent of R. If you want to make full use of msaPrettyPrint()
, you need to install LaTeX system separately. For Windows, there is MikTeX. For Mac OS, there is MacTeX. If you use Ubuntu or some other Linux distribution, you can use texlive (sudo apt-get install texlive-full
). If you don't want any of these options, you may want to try the R package tinytex
. It installs a minimal LaTeX system inside R that will hopefully work along msaPrettyPrint()
.
Thank you @UBod. I used tinytex package and it worked.
I ran the demo script supplied together with the msa package
The output is below
sessionInfo()