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 |
Either |
dbname |
Name of the resulting database. If not provided, defaults to
a random string prefixed by |
dbpath |
Path where database should be created. If not provided,
defaults to |
extraArgs |
Additional arguments to be passed to the query executed on the command line. This should be a single character string. |
createDirectory |
Should a directory be created for the database if it doesn't exist? If |
verbose |
Should output be displayed? |
This offers a quick way to create BLAST databases from R. This function essentially wraps the makeblastdb
commandline function. All arguments supported by makeblastdb
are supported in the extraArgs
argument.
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.