knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
SPOA is a C++ library for fast alignment and consensus generation of closely related sequences, especially used for long, error-containing reads from third generation sequencers. It allows local, global, and semi-global (overlap) alignment, using linear, affine, or convex gap penalties, and can also weight by quality scores. SPOAR is an R wrapper for SPOA.
Get the latest stable R release from CRAN. Then install spoar using from Bioconductor the following code:
if (!requireNamespace("BiocManager", quietly = TRUE)) { install.packages("BiocManager") } BiocManager::install("spoar")
And the development version from GitHub with:
BiocManager::install("brendanf/spoar")
Here is the first basic example from the SPOR README:
library("spoar") sequences <- c( "CATAAAAGAACGTAGGTCGCCCGTCCGTAACCTGTCGGATCACCGGAAAGGACCCGTAAAGTGATAATGAT", "ATAAAGGCAGTCGCTCTGTAAGCTGTCGATTCACCGGAAAGATGGCGTTACCACGTAAAGTGATAATGATTAT", "ATCAAAGAACGTGTAGCCTGTCCGTAATCTAGCGCATTTCACACGAGACCCGCGTAATGGG", "CGTAAATAGGTAATGATTATCATTACATATCACAACTAGGGCCGTATTAATCATGATATCATCA", "GTCGCTAGAGGCATCGTGAGTCGCTTCCGTACCGCAAGGATGACGAGTCACTTAAAGTGATAAT", "CCGTAACCTTCATCGGATCACCGGAAAGGACCCGTAAATAGACCTGATTATCATCTACAT" ) spoaAlign(sequences) spoaConsensus(sequences)
Below is the citation output from using citation('spoar') in R. Please
run this yourself to check for any updates on how to cite spoar.
print(citation("spoar"), bibtex = TRUE)
Please note that the spoar was only made possible thanks to many other R and bioinformatics software authors, which are cited either in the vignettes and/or the paper(s) describing this package.
Please note that the spoar project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
r BiocStyle::CRANpkg('usethis'), r BiocStyle::CRANpkg('remotes'), and r BiocStyle::CRANpkg('rcmdcheck') customized to use Bioconductor's docker containers and r BiocStyle::Biocpkg('BiocCheck').r BiocStyle::CRANpkg('covr').r BiocStyle::CRANpkg('pkgdown').r BiocStyle::CRANpkg('styler').r BiocStyle::CRANpkg('devtools') and r BiocStyle::CRANpkg('roxygen2').For more details, check the dev directory.
This package was developed using r BiocStyle::Biocpkg('biocthis').
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.