Skip to content

Commit

Permalink
Merge pull request #995 from broadinstitute/dp-dxwdl
Browse files Browse the repository at this point in the history
bugfixes and deoptimize
  • Loading branch information
dpark01 committed Oct 18, 2019
2 parents 83a5fab + 19dab54 commit 3282979
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion metagenomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ def krona(inReport, db, outHtml, queryColumn=None, taxidColumn=None, scoreColumn
if '<attribute display="Avg. score">score</attribute>' in line:
line = line.replace('Avg. score', 'Est. unique kmers')
print(line, file=new_report)
os.rename(fn, outHtml)
shutil.copyfile(fn, outHtml)
return
elif inputType == 'kaiju':
kaiju = tools.kaiju.Kaiju()
Expand Down
6 changes: 3 additions & 3 deletions pipes/WDL/workflows/tasks/tasks_demux.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ task illumina_demux {
Boolean? forceGC=true


parameter_meta {
flowcell_tgz : "stream" # for DNAnexus, until WDL implements the File| type
}
# parameter_meta {
# flowcell_tgz : "stream" # for DNAnexus, until WDL implements the File| type
# }

command {
set -ex -o pipefail
Expand Down
32 changes: 16 additions & 16 deletions pipes/WDL/workflows/tasks/tasks_metagenomics.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ task krakenuniq {
File krakenuniq_db_tar_lz4 # krakenuniq/{database.kdb,taxonomy}
File krona_taxonomy_db_tgz # taxonomy/taxonomy.tab

parameter_meta {
krakenuniq_db_tar_lz4: "stream" # for DNAnexus, until WDL implements the File| type
krona_taxonomy_db_tgz : "stream" # for DNAnexus, until WDL implements the File| type
reads_unmapped_bam: "stream" # for DNAnexus, until WDL implements the File| type
}
# parameter_meta {
# krakenuniq_db_tar_lz4: "stream" # for DNAnexus, until WDL implements the File| type
# krona_taxonomy_db_tgz : "stream" # for DNAnexus, until WDL implements the File| type
# reads_unmapped_bam: "stream" # for DNAnexus, until WDL implements the File| type
# }

command {
set -ex -o pipefail
Expand Down Expand Up @@ -79,9 +79,9 @@ task krona {

String input_basename = basename(classified_reads_txt_gz, ".txt.gz")

parameter_meta {
krona_taxonomy_db_tgz : "stream" # for DNAnexus, until WDL implements the File| type
}
# parameter_meta {
# krona_taxonomy_db_tgz : "stream" # for DNAnexus, until WDL implements the File| type
# }

command {
set -ex -o pipefail
Expand Down Expand Up @@ -122,9 +122,9 @@ task filter_bam_to_taxa {

String input_basename = basename(classified_bam, ".bam")

parameter_meta {
ncbi_taxonomy_db_tgz : "stream" # for DNAnexus, until WDL implements the File| type
}
# parameter_meta {
# ncbi_taxonomy_db_tgz : "stream" # for DNAnexus, until WDL implements the File| type
# }

command {
set -ex -o pipefail
Expand Down Expand Up @@ -179,11 +179,11 @@ task kaiju {

String input_basename = basename(reads_unmapped_bam, ".bam")

parameter_meta {
kaiju_db_lz4 : "stream" # for DNAnexus, until WDL implements the File| type
ncbi_taxonomy_db_tgz : "stream"
krona_taxonomy_db_tgz : "stream"
}
# parameter_meta {
# kaiju_db_lz4 : "stream" # for DNAnexus, until WDL implements the File| type
# ncbi_taxonomy_db_tgz : "stream"
# krona_taxonomy_db_tgz : "stream"
# }

command {
set -ex -o pipefail
Expand Down
2 changes: 1 addition & 1 deletion tools/krona.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from builtins import super

TOOL_NAME = 'krona'
CONDA_TOOL_VERSION = '2.7'
CONDA_TOOL_VERSION = '2.7.1'


class Krona(tools.Tool):
Expand Down

0 comments on commit 3282979

Please sign in to comment.