Skip to content
/ rbh Public

Wrapper Ruby script to generate reciprocal blast best hits or one way blast hits

Notifications You must be signed in to change notification settings

masaomi/rbh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

RBH

  • A wrapper Ruby script to generate reciprocal NCBI BLAST best hits or one way hits.

Required

Required Gem

  • Bioruby (bio >= 1.5.1)
  • Optparse_ex (optparse_ex >= 0.0.4)

Usage

$ rbh [options]
    -1, --fasta1 file.fasta          Fasta file (required)
    -2, --fasta2 file.fasta          Fasta file (required)
        --[no-]tblastx               Use tblastx to nuc to nuc search (default: false, meaning without this option, use blastn)
    -o, --one_way                    One way blast best hit (fasta1:query, fast2:database) (default:off, reciprocal best hit)
    -t, --threads num                Num of threads (default:1)
        --exonave ave                Average Exon length (default:200, used for filtering blast hit alignment length)
    -f, --outfmt6                    outfmt 6 (default:non)
    -m, --maxtarget max              max_target_seqs (default:5)
    -r, --result directory           Output directory (default:.)
    -e, --evalue evalue              Evalue used for blast (default:1.0e-15)
    -b, --blast_bin_dir dir          Blast binary directory path (default:/usr/bin)

ex.
$ rbh -1 fast1.fa -2 fasta2.fa -t 8    #=> reciprocal best hits between fasta1.fa and fasta2.fa
$ rbh -1 fast1.fa -2 fasta2.fa -t 8 -o #=> one way blast hits, fasta1.fa as query and fasta2.fa as database

About

Wrapper Ruby script to generate reciprocal blast best hits or one way blast hits

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages