-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] specify container for bash-only modules for AWS
- Loading branch information
Showing
2 changed files
with
15 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
// Fixing file endings only necessary if the experimental design is user-specified | ||
// TODO can we combine this with another step? Feels like a waste to spawn a worker for this. | ||
// Maybe the renaming can be done in the rawfileconversion step? Or check if the OpenMS tools | ||
// accept different file endings already? | ||
process PREPROCESS_EXPDESIGN { | ||
label 'process_very_low' | ||
label 'process_single_thread' | ||
|
||
container "frolvlad/alpine-bash" | ||
|
||
input: | ||
path design | ||
|
||
output: | ||
path "experimental_design.tsv", emit: ch_expdesign | ||
path "process_experimental_design.tsv", emit: process_ch_expdesign | ||
path "config.tsv", emit: ch_config | ||
|
||
script: | ||
|
||
""" | ||
# since we know that we will need to convert from raw to mzML for all tools that need the design (i.e., OpenMS tools) | ||
# we edit the design here and change the endings. | ||
sed 's/.raw\\t/.mzML\\t/I' $design > experimental_design.tsv | ||
a=\$(grep -n '^\$' $design | head -n1| awk -F":" '{print \$1}'); sed -e ''"\${a}"',\$d' $design > process_experimental_design.tsv | ||
# here we extract the filenames and fake an empty config (since the config values will be deduced from the workflow params) | ||
a=\$(grep -n '^\$' $design | head -n1| awk -F":" '{print \$1}'); sed -e ''"\${a}"',\$d' $design > config.tsv | ||
""" | ||
} |
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