bb_blast_on_the_fly - ampinzonv/BB3 GitHub Wiki

Function: bb_blast_on_the_fly

Run BLAST directly from two FASTA files without creating a permanent database.


๐Ÿ” Description

This function performs a BLAST search between two FASTA files without requiring the user to create a database manually. It creates a temporary BLAST database from the subject file, runs the search, and deletes the temporary files afterward.


๐Ÿ“ฅ Input

  • --query: FASTA file containing the query sequences.
  • --subject: FASTA file containing the subject sequences to search against.

๐Ÿ“ค Output

  • Tabular BLAST results (outfmt 6 with 14 columns) printed to STDOUT or saved to a file.

๐Ÿงช Examples

Basic usage:

bb_blast_on_the_fly --query query.fasta --subject subject.fasta

Save output:

bb_blast_on_the_fly --query query.fasta --subject subject.fasta --outfile results.tsv

Use 4 CPU threads:

bb_blast_on_the_fly --query query.fasta --subject subject.fasta --processors 4

โš™๏ธ Usage

bb_blast_on_the_fly --query FILE --subject FILE [--outfile FILE] [--processors N] [--quiet] [--force]

๐Ÿงต Options

Option Description
--query FILE Input FASTA file with query sequences (required)
--subject FILE Input FASTA file with subject sequences (required)
--outfile FILE Output file (default: STDOUT)
--processors N Number of CPU threads to use (default: 1)
--quiet Suppress informational messages
--force Overwrite output file if it exists

๐Ÿ“Œ Notes

  • A temporary BLAST database is created and automatically deleted after the search.
  • Requires makeblastdb and appropriate BLAST+ tools (e.g., blastn, blastp) in $PATH.