althonos / pyrodigal

Cython bindings and Python interface to Prodigal, an ORF finder for genomes and metagenomes. Now with SIMD!
https://pyrodigal.readthedocs.org
GNU General Public License v3.0
132 stars 5 forks source link

[Feature request] Add support for --jobs in CLI #36

Closed jolespin closed 1 year ago

jolespin commented 1 year ago
pyrodigal -p meta -i veba_output/binning/prokaryotic/S1/tmp/tmp.fasta -g 11 -f gff -d veba_output/binning/prokaryotic/S1/intermediate/2__pyrodigal/gene_models.ffn -a veba_output/binning/prokaryotic/S1/intermediate/2__pyrodigal/gene_models.faa --min-gene 90 --min-edge-gene 60 --max-overlap 60 --jobs 16 > veba_output/binning/prokaryotic/S1/tmp/tmp.gff && cat veba_output/binning/prokaryotic/S1/tmp/tmp.gff

usage: pyrodigal [-a trans_file] [-c] [-d nuc_file] [-f output_type]
                 [-g tr_table] -i input_file [-m] [-n] [-o output_file]
                 [-p mode] [-s start_file] [-t training_file] [-h] [-V]
                 [--min-gene MIN_GENE] [--min-edge-gene MIN_EDGE_GENE]
                 [--max-overlap MAX_OVERLAP]
pyrodigal: error: unrecognized arguments: --jobs 16

Also tried with -j

usage: pyrodigal [-a trans_file] [-c] [-d nuc_file] [-f output_type]
                 [-g tr_table] -i input_file [-m] [-n] [-o output_file]
                 [-p mode] [-s start_file] [-t training_file] [-h] [-V]
                 [--min-gene MIN_GENE] [--min-edge-gene MIN_EDGE_GENE]
                 [--max-overlap MAX_OVERLAP]
pyrodigal: error: unrecognized arguments: -j 16

I'm a little confused b/c it looks like it is supported here?

https://github.com/althonos/pyrodigal/blob/d60f5c398afecb452a9b7462b2c292a90595b8ce/pyrodigal/cli.py#L93

althonos commented 1 year ago

This was added recently but I didn't make a release, this is now supported in v2.2.0 :+1: