Skip to main content

hpcblast

hpcblast software provides a simple and efficient method for running the NCBI-BLAST+ suite program in localhost or the HPC environment (Sun Grid Engine). It splits the input sequence file and run all chunked tasks in parallel to accelerate the blast search speed. When there are many sequences in the input file for blast comparison and the running speed is slow, using hpcblast can significantly improve the performance. All of this can be simply done by only adding the hpc-blast command before your blast command line.

Features

  • hpcblast splits the input sequence file into small files and runs all tasks in parallel.
  • hpcblast supports fasta/fastq sequence format file input and gzip compression allowed, there is no need to decompress fastq and convert it to fasta for blast .
  • hpcblast manages and schedules all tasks by runjob.
  • hpcblast is compatible with all NCBI-BLAST+ options, and all results are the same except the order of output aligned segment.
  • the hpc-blast option uses two - flag, while NCBI-BLAST+ options use one - flag.
  • you need to pay attention to the CPU and memory resources used In the parallelized environment.
  • other efficient features ...

Requirements

Installation

from git repo (for recommend)

pip3 install git+https://github.com/yodeng/hpc-blast.git

from pypi:

pip install hpcblast -U

Usage

$ hpc-blast --help 
usage: hpc-blast [--split <int> | --size <int>] [--num <int>] [--tempdir <dir>] [--log <file>] [--local]
                 [--version] [-h] [--queue [<str> ...]] [--cpu <int>] [--memory <int>]
                 <blast command>

hpc-blast <OPTIONS> <blast command>

positional arguments:
  <blast command>      blast command, required

optional arguments:
  --split <int>        split query into num of chunks, 10 by default
  --size <int>         split query into multi chunks with N sequences
  --num <int>          max number of chunks run in parallel, all chunks by default
  --tempdir <dir>      hpc blast temp directory
  --log <file>         append hpc-blast log info to file, sys.stdout by default
  --local              run blast in localhost instead of sge
  --version            show program's version number and exit
  -h, --help           show this help message and exit

sge arguments:
  --queue [<str> ...]  sge queue, multi-queue can be sepreated by whitespace, all access queue by default
  --cpu <int>          cpu usage for sge, 1 by default, max(--cpu, -num_threads) will be used
  --memory <int>       memory (GB) usage for sge, 1 by default

Example

in Sun Grid Engine:

hpc-blast --split 20 --queue all.q --tempdir out blastn -query test.fastq.gz -db /data/refdb -num_threads 4 -outfmt 6 qseqid qlen qstart qend -out test.m6

in localhost:

hpc-blast --split 20 --local --tempdir out blastn -query test.fastq.gz -db /data/refdb -num_threads 4 -outfmt 6 qseqid qlen qstart qend -out test.m6

Metadata

Release files for hpcblast 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for hpcblast 1.0.2
File Interpreter ABI Platform
hpcblast-1.0.2-py3-none-any.whl Python 3 none any Details
hpcblast-1.0.2-2-py3-none-any.whl Python 3 none any Details
hpcblast-1.0.2-1-py3-none-any.whl Python 3 none any Details

Total release size: 24.7 kB

Release files / hpcblast-1.0.2-py3-none-any.whl

Download URL hpcblast-1.0.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5558b4ddc9df245afec22f1cf1f8017df31dbcdb033c77b63d2eb26c9cad9236
BLAKE2b-256 checksum
How to use checksums
65fb494835e8cf650714bdb21fc493281550affd89f3ed6697c549646ed5586c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / hpcblast-1.0.2-2-py3-none-any.whl

Download URL hpcblast-1.0.2-2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdd7afbfcde5e3f6d01cb22b0c7222695e1687fed7df89681d41b32c82e3f2d9
BLAKE2b-256 checksum
How to use checksums
b9ae4ec577be3bbaf34c8d0234f1240615a5241d2f2c5ab1d37c120548fb9356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / hpcblast-1.0.2-1-py3-none-any.whl

Download URL hpcblast-1.0.2-1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2875386c323e96f6e4649e8adcd7a90f4bfc1e3e2660287e3bfd43ff808e698
BLAKE2b-256 checksum
How to use checksums
80bacd3e129f98f69e1fb2244ec6a56da05847d2b1db9c68761fe9206746bdf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

3 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page