forked from broadinstitute/cromwell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
834 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
centaur/src/main/resources/standardTestCases/drs_basename.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: drs_basename | ||
testFormat: WorkflowSuccess | ||
backends: ["papi-v2-usa"] | ||
skipDescribeEndpointValidation: true | ||
|
||
files { | ||
workflow: drs_tests/drs_basename.wdl | ||
options-dir: "Error: BA-6546 The environment variable CROMWELL_BUILD_RESOURCES_DIRECTORY must be set/export pointing to a valid path such as '${YOUR_CROMWELL_DIR}/target/ci/resources'" | ||
options-dir: ${?CROMWELL_BUILD_RESOURCES_DIRECTORY} | ||
options: ${files.options-dir}/papi_v2_usa.options.json | ||
inputs: drs_tests/drs_basename.inputs | ||
} | ||
|
||
metadata { | ||
workflowName: drs_basename | ||
status: Succeeded | ||
"outputs.drs_basename.basenames.0": "E18_20161004_Neurons_Sample_49_S048_L004_R2_005.fastq.gz" | ||
"outputs.drs_basename.basenames.1": "E18_20161004_Neurons_Sample_49_S048_L004_R2_005.fastq.gz" | ||
"outputs.drs_basename.basenames.2": "E18_20161004_Neurons_Sample_49_S048_L004_R2_005.fastq.gz" | ||
"outputs.drs_basename.basenames.3": "E18_20161004_Neurons_Sample_49_S048_L004_R2_005.fastq.gz" | ||
"outputs.drs_basename.basenames.4": "E18_20161004_Neurons_Sample_49_S048_L004_R2_005.foo.bar" | ||
} |
7 changes: 7 additions & 0 deletions
7
centaur/src/main/resources/standardTestCases/drs_tests/drs_basename.inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
# This comment and file path were copied from drs_usa_hca.inputs: | ||
# Are you here because HCA DRS data moved, again? Do not rage `rm -f` this test without first | ||
# reading BT-182 for the multiple reasons why HCA is different from a "hello world"! | ||
"drs_basename.file": | ||
"drs://jade.datarepo-dev.broadinstitute.org/v1_4641bafb-5190-425b-aea9-9c7b125515c8_e37266ba-790d-4641-aa76-854d94be2fbe" | ||
} |
52 changes: 52 additions & 0 deletions
52
centaur/src/main/resources/standardTestCases/drs_tests/drs_basename.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
version 1.0 | ||
|
||
workflow drs_basename { | ||
input { | ||
File file | ||
} | ||
|
||
String workflow_level_basename = basename(file) | ||
|
||
call pump_up_the_base { input: | ||
file = file, | ||
pre_basenamed = workflow_level_basename, | ||
basednamed_at_call_site = basename(file) | ||
} | ||
|
||
output { | ||
Array[String] basenames = pump_up_the_base.basenames | ||
} | ||
} | ||
|
||
task pump_up_the_base { | ||
input { | ||
File file | ||
String pre_basenamed | ||
String basednamed_at_call_site | ||
} | ||
|
||
String task_level_basename = basename(file) | ||
|
||
command <<< | ||
echo ~{pre_basenamed} | ||
echo ~{basednamed_at_call_site} | ||
echo ~{task_level_basename} | ||
echo ~{basename(file)} | ||
# Also validate the two-parameter version of the function with a DRS input for file extension replacements: | ||
echo ~{basename(file, ".fastq.gz")}.foo.bar | ||
>>> | ||
|
||
output { | ||
Array[String] basenames = read_lines(stdout()) | ||
} | ||
|
||
runtime { | ||
docker: "ubuntu" | ||
backend: "papi-v2-usa" | ||
} | ||
|
||
parameter_meta { | ||
# We don't actually want to use this file, just play around with its basename: | ||
file: { localization_optional: true } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.