-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert to WDL: force co-localization of secondary_files #90
Comments
Thanks @mr-c, Janis should already do this on translation to WDL: janis-core/janis_core/translations/wdl.py Line 2079 in 0b5b79f
(Because I saw the same problems haha) |
@illusional Huh, I'm not seeing that behaviour for either a single
cwlVersion: v1.2
class: CommandLineTool
arguments:
- {shellQuote: false, valueFrom: "ls | grep -v lsout"}
inputs:
input:
type: File
secondaryFiles:
- ^.tar
stdout: lsout
outputs:
output:
type: File
outputBinding:
glob: lsout
requirements:
ShellCommandRequirement: {}
version development
task secondary_files {
input {
Int? runtime_cpu
Int? runtime_memory
Int? runtime_seconds
Int? runtime_disks
File inp
File inp_tar
}
command <<<
set -e
\
ls | grep -v lsout
>>>
runtime {
cpu: select_first([runtime_cpu, 1])
disks: "local-disk ~{select_first([runtime_disks, 20])} SSD"
docker: "ubuntu@sha256:1e48201ccc2ab83afc435394b3bf70af0fa0055215c1e26a5da9b50a1ae367c9"
duration: select_first([runtime_seconds, 86400])
memory: "~{select_first([runtime_memory, 4])}G"
preemptible: 2
}
output {
File outp = glob("lsout")[0]
}
cwlVersion: v1.2
class: CommandLineTool
arguments:
- {shellQuote: false, valueFrom: "ls | grep -v lsout"}
inputs:
input_list:
type: File[]
secondaryFiles:
- ^.tar
stdout: lsout
outputs:
output:
type: File
outputBinding:
glob: lsout
requirements:
ShellCommandRequirement: {}
version development
task array_secondary_files {
input {
Int? runtime_cpu
Int? runtime_memory
Int? runtime_seconds
Int? runtime_disks
Array[File] input_list
Array[File] input_list_tar
}
command <<<
set -e
\
ls | grep -v lsout
>>>
runtime {
cpu: select_first([runtime_cpu, 1])
disks: "local-disk ~{select_first([runtime_disks, 20])} SSD"
docker: "ubuntu@sha256:1e48201ccc2ab83afc435394b3bf70af0fa0055215c1e26a5da9b50a1ae367c9"
duration: select_first([runtime_seconds, 86400])
memory: "~{select_first([runtime_memory, 4])}G"
preemptible: 2
}
output {
File outp = glob("lsout")[0]
}
} |
See biowdl/tasks#291 for a demonstration for both individual files and arrays of files
The text was updated successfully, but these errors were encountered: