No project description provided
Project description
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, whileNCBI-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
- python >= 3.5
- ncbi-blast+
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file hpcblast-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: hpcblast-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5558b4ddc9df245afec22f1cf1f8017df31dbcdb033c77b63d2eb26c9cad9236 |
|
MD5 | 37ecc73491ad9f8199daaa622ea67b5f |
|
BLAKE2b-256 | 65fb494835e8cf650714bdb21fc493281550affd89f3ed6697c549646ed5586c |
File details
Details for the file hpcblast-1.0.2-2-py3-none-any.whl
.
File metadata
- Download URL: hpcblast-1.0.2-2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd7afbfcde5e3f6d01cb22b0c7222695e1687fed7df89681d41b32c82e3f2d9 |
|
MD5 | 3d5e2a365cd1dd94caddb5c1ef1e14aa |
|
BLAKE2b-256 | b9ae4ec577be3bbaf34c8d0234f1240615a5241d2f2c5ab1d37c120548fb9356 |
File details
Details for the file hpcblast-1.0.2-1-py3-none-any.whl
.
File metadata
- Download URL: hpcblast-1.0.2-1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2875386c323e96f6e4649e8adcd7a90f4bfc1e3e2660287e3bfd43ff808e698 |
|
MD5 | 8b3961ea980a965dbafa0d60cc108df8 |
|
BLAKE2b-256 | 80bacd3e129f98f69e1fb2244ec6a56da05847d2b1db9c68761fe9206746bdf4 |