BlastSeqs | R Documentation |
Wrapper to run BLAST 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.
BlastSeqs(seqs, BlastDB,
blastType=c('blastn', 'blastp', 'tblastn', 'blastx', 'tblastx'),
extraArgs='', verbose=TRUE)
seqs |
Sequence(s) to run BLAST query on. This can be either an
|
BlastDB |
Path to FASTA file in a pre-built BLAST Database. These can be built using either |
blastType |
Type of BLAST query to run. See 'Details' for more information on available types. |
extraArgs |
Additional arguments to be passed to the BLAST query executed on the command line. This should be a single character string. |
verbose |
Should output be displayed? |
BLAST implements multiple types of search. Available types are the following:
blastn
: Nucleotide sequences against database of nucleotide sequences
blastp
: Protein sequences against database of protein sequences
tblastn
: Protein sequences against translated database of nucleotide sequences
blastx
: Translated nucleotide sequences against database of protein sequences
tblastx
: Translated nucleotide sequences against translated database of nucleotide sequences
Different BLAST queries require different inputs. The function will throw an error if the input data does not match expected input for the requested query type.
Input sequences for blastn
,
blastx
, and tblastx
should be nucleotide data.
Input sequences for
blastp
and tblastn
should be amino acid data.
Database for blastn
, tblastn
, tblastx
should be nucleotide data.
Database for blastp
and blastx
should be amino acid data.
Returns a data frame (data.frame) of results of the BLAST query.
Aidan Lakshman ahl27@pitt.edu
MakeBlastDb
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.