Native R Implementation of an Efficient BLAST-Like Algorithm

Implementation of an efficient BLAST-like sequence comparison algorithm, written in 'C++11' and using native R datatypes. Blaster is based on 'nsearch' - Schmid et al (2018) .


R-CMD-check CRAN status

Blaster

Blaster implements an efficient BLAST-like sequence comparison algorithm, written in C++11 and using native R datatypes. Blaster is light-weight, fast and dependency-free. The code base of Blaster is adapted from nsearch. An implementation of nsearch for Python is available at npysearch.

Installation

From Conda

conda install -c conda-forge r-blaster 

Development version from GitHub

devtools::install_github("tamminenlab/blaster")

Examples

# Read a query file into DataFrame

query <- read_fasta("inst/extdata/query.fasta")

# Read a database file into a DataFrame

db <- read_fasta("inst/extdata/db.fasta")

# BLAST the query against the database

blast_table <- 
    blast(query, db)

# BLAST protein sequence file against itself using filenames as blast function arguments

prot_blast_table <-
    blast(query = "inst/extdata/prot.fasta",
          db = "inst/extdata/prot.fasta",
          alphabet = "protein")

# Filter the sequences containing motif GAGACTT

query <- read_fasta("query.fasta", "GAGACTT")

Tested on

  • linux_64, r-base >= 4.0, r-cpp >= 1.0.5
  • osx_64, r-base >= 4.0, r-cpp >= 1.0.5
  • win_64, r-base >= 4.0, r-cpp >= 1.0.5

Details available at https://anaconda.org/conda-forge/r-blaster/files.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("blaster")

1.0.9 by Manu Tamminen, 5 months ago


https://github.com/tamminenlab/blaster


Browse source code at https://github.com/cran/blaster


Authors: Manu Tamminen [aut, cre] (ORCID: , Timothy Julian [aut] , Aditya Jeevennavar [aut] (ORCID: , Steven Schmid [aut]


Documentation:   PDF Manual  


BSD_3_clause + file LICENSE license


Imports Rcpp

Linking to Rcpp


See at CRAN