Skip to content

Commit

Permalink
Add cut_ga option and bump version to 0.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Nov 28, 2023
1 parent 4d1b5d8 commit fe624f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion cli/deciphon/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
O_HMMER3_COMPAT = Option(
False, "--hmmer3-compat/--no-hmmer3-compat", help="Set hmmer3 compatibility."
)
O_CUT_GA = Option(
True, "--cut-ga/--no-cut-ga", help="Enable profile's GA gathering cutoffs."
)
H_HMMER = "HMMER profile file."


Expand Down Expand Up @@ -114,6 +117,7 @@ def scan(
multi_hits: bool = O_MULTI_HITS,
hmmer3_compat: bool = O_HMMER3_COMPAT,
progress: bool = O_PROGRESS,
cut_ga: bool = O_CUT_GA,
):
"""
Scan nucleotide sequences against protein database.
Expand All @@ -125,7 +129,7 @@ def scan(

sequences = read_sequences(seqfile)
with H3Daemon(hmm, stdout=DEVNULL) as daemon:
params = Params(num_threads, multi_hits, hmmer3_compat)
params = Params(num_threads, multi_hits, hmmer3_compat, cut_ga)
scan = Scan(params, db)
with scan:
bar = Progress(scan, disabled=not progress)
Expand Down
4 changes: 2 additions & 2 deletions cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deciphon"
version = "0.10.2"
version = "0.10.3"
description = "Individually annotate long, error-prone nucleotide sequences into proteins"
authors = ["Danilo Horta <[email protected]>"]
license = "MIT"
Expand All @@ -10,7 +10,7 @@ packages = [{ include = "deciphon" }]
[tool.poetry.dependencies]
python = "^3.9"
cffi = "^1.15.1"
deciphon-core = ">=0.18.5"
deciphon-core = ">=0.18.13"
deciphon-snap = ">=0.8.1"
fasta-reader = "^3"
h3daemon = "^0"
Expand Down

0 comments on commit fe624f9

Please sign in to comment.