diff --git a/README.md b/README.md index ea38870d..82623232 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Bakta requires the following 3rd party software tools which must be installed an - Aragorn (1.2.38) - INFERNAL (1.1.4) - PILER-CR (1.06) -- Pyrodigal (2.1.0) +- Pyrodigal (3.4.0) - PyHMMER (0.10.0) - Diamond (2.0.14) - Blast+ (2.12.0) diff --git a/bakta/features/cds.py b/bakta/features/cds.py index e217e15e..2d5a0b36 100644 --- a/bakta/features/cds.py +++ b/bakta/features/cds.py @@ -119,7 +119,7 @@ def create_cdss(genes, contig): partial_cdss_per_sequence.append(cds) else: cdss_per_sequence.append(cds) - aa = gene.translate(translation_table=cfg.translation_table).upper() + aa = gene.translate(translation_table=cfg.translation_table, strict=False).upper() if('truncated' not in cds or cds['truncated'] == bc.FEATURE_END_5_PRIME): aa = aa[:-1] # discard trailing asterisk cds['aa'] = aa diff --git a/bakta/utils.py b/bakta/utils.py index c458d616..e90b820c 100644 --- a/bakta/utils.py +++ b/bakta/utils.py @@ -42,7 +42,7 @@ def print_version(self): DEPENDENCY_ARAGORN = (Version(1, 2, 41), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'Aragorn', ('aragorn', '-h'), ['skip-tmrna']) DEPENDENCY_CMSCAN = (Version(1, 1, 4), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'CMscan', ('cmscan', '-h'), ['--skip-rrna', '--skip-ncrna', '--skip-ncrna-region']) DEPENDENCY_PILERCR = (Version(1, 6), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'PilerCR', ('pilercr', '-options'), ['--skip-crispr']) -DEPENDENCY_PYRODIGAL = (Version(3, 1, 0), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'Pyrodigal', ('pyrodigal', '--version'), ['--skip-cds']) +DEPENDENCY_PYRODIGAL = (Version(3, 4, 0), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'Pyrodigal', ('pyrodigal', '--version'), ['--skip-cds']) DEPENDENCY_PYHMMER = (Version(0, 10, 4), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'Pyhmmer', ('python', '-c', 'import pyhmmer; print(pyhmmer.__version__)'), ['--skip-cds', '--skip-sorf']) DEPENDENCY_DIAMOND = (Version(2, 1, 8), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'Diamond', ('diamond', 'help'), ['--skip-cds', '--skip-sorf']) DEPENDENCY_DEEPSIG = (Version(1, 2, 5), Version(VERSION_MAX_DIGIT, VERSION_MAX_DIGIT, VERSION_MAX_DIGIT), VERSION_REGEX, 'DeepSig', ('deepsig', '--version'), ['--gram ?']) diff --git a/environment.yml b/environment.yml index 0da15485..2666f804 100644 --- a/environment.yml +++ b/environment.yml @@ -9,7 +9,7 @@ dependencies: - requests>=2.25.1 - alive-progress>=3.0.1 - pyyaml>=6.0 - - pyrodigal>=3.1.0 + - pyrodigal>=3.4.0 - trnascan-se>=2.0.11 - aragorn>=1.2.41 - infernal>=1.1.4 diff --git a/setup.py b/setup.py index 3dc57012..68ed4b44 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ 'requests >= 2.25.1', 'alive-progress >= 3.0.1', 'PyYAML >= 6.0', - 'pyrodigal >= 3.0.1', + 'pyrodigal >= 3.4.0', 'pyhmmer >= 0.10.0' ], entry_points={