MakeBlastDb | R Documentation |
Wrapper to create BLAST databases for subsequent queries using the commandline BLAST tool directly from R.
Can operate on an XStringSet
or a FASTA
file.
This function requires the BLAST+ commandline tools, which can be downloaded here.
MakeBlastDb(seqs, dbtype=c('prot', 'nucl'),
dbname=NULL, dbpath=NULL,
extraArgs='', createDirectory=FALSE,
verbose=TRUE)
seqs |
Sequence(s) to create a BLAST database from. This can be either an
|
dbtype |
Character; Either |
dbname |
Character; Name of the resulting database. If not provided, defaults to
a random string prefixed by |
dbpath |
Character; Path where database should be created. If not provided,
defaults to |
extraArgs |
Character; Additional arguments to be passed to the query executed on the command line. This should be a single string. |
createDirectory |
Logical; Determines if a directory should be created for the database if it doesn't already exist. If |
verbose |
Logical; Determines if status messages should be displayed while running. |
MakeBlastDb
is a barebones wrapper for makeblastdb
from the BLAST+ commandline tools. It is set up for convenience purposes only and does not add any additional functionality. Requires a functioning installation of the BLAST+ commandline tools.
Returns a length 2 named character vector specifying the name of the BLAST database and the path to it.
Aidan Lakshman ahl27@pitt.edu
BlastSeqs
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.