Skip to content

Commit

Permalink
Merge pull request #22 from broadinstitute/dp-kraken2
Browse files Browse the repository at this point in the history
kraken2 build fix for protein dbs
  • Loading branch information
dpark01 authored Dec 12, 2022
2 parents 5fbfaeb + 20f9d67 commit d2c18ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/broadinstitute/viral-core:2.1.20
FROM quay.io/broadinstitute/viral-core:2.1.33

LABEL maintainer "[email protected]"

Expand Down
8 changes: 6 additions & 2 deletions classify/kraken2.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ def build(self, db, standard_libraries=(), custom_libraries=(), taxdump_out=None
util.file.mkdir_p(db)
futs.append(executor.submit(shutil.copytree, tax_db, os.path.join(db, 'taxonomy')))
else:
futs.append(executor.submit(self.execute, 'kraken2-build', db, None,
options={'--download-taxonomy': None}))
if protein:
futs.append(executor.submit(self.execute, 'kraken2-build', db, None,
options={'--download-taxonomy': None, '--protein': None}))
else:
futs.append(executor.submit(self.execute, 'kraken2-build', db, None,
options={'--download-taxonomy': None}))
# add standard libraries:
if standard_libraries:
for lib in standard_libraries:
Expand Down
10 changes: 5 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Sphinx==1.4.4
sphinx-argparse==0.1.15
sphinx_rtd_theme==0.1.9
matplotlib==2.2.4
#PyYAML==5.1
Sphinx>=5.3.0
sphinx-jinja2-compat
sphinx-argparse>=0.1.15
sphinx_rtd_theme>=0.1.9
matplotlib>=2.2.4
mock>=2.0.0

0 comments on commit d2c18ba

Please sign in to comment.