-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate a workflow test case for output renaming to workflow test fra…
…mework.
- Loading branch information
Showing
3 changed files
with
42 additions
and
46 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
22 changes: 22 additions & 0 deletions
22
lib/galaxy_test/workflow/rename_based_on_input_collection.gxwf-tests.yml
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 @@ | ||
- doc: | | ||
Test output dataset renaming when the target basename is based on an input collection. | ||
job: | ||
fasta_input: | ||
value: 1.fasta | ||
type: File | ||
name: fasta1 | ||
file_type: fasta | ||
fastq_inputs: | ||
collection_type: list | ||
name: the_dataset_pair | ||
elements: | ||
- identifier: forward | ||
value: 1.fastq | ||
type: File | ||
- identifier: reverse | ||
value: 1.fastq | ||
type: File | ||
outputs: | ||
output: | ||
metadata: | ||
name: 'the_dataset_pair suffix' |
20 changes: 20 additions & 0 deletions
20
lib/galaxy_test/workflow/rename_based_on_input_collection.gxwf.yml
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,20 @@ | ||
class: GalaxyWorkflow | ||
inputs: | ||
fasta_input: data | ||
fastq_inputs: data | ||
outputs: | ||
output: | ||
outputSource: mapping/out_file1 | ||
steps: | ||
mapping: | ||
tool_id: mapper2 | ||
state: | ||
fastq_input: | ||
fastq_input_selector: paired_collection | ||
fastq_input1: | ||
$link: fastq_inputs | ||
reference: | ||
$link: fasta_input | ||
outputs: | ||
out_file1: | ||
rename: "#{fastq_input.fastq_input1 | basename} suffix" |