cromshell icon indicating copy to clipboard operation
cromshell copied to clipboard

Allow dependencies file without an options.json

Open lbergelson opened this issue 6 years ago • 1 comments

Currently you can't submit a job that has a dependencies.zip without also including an options.json.

Currently you can work around this issue by submitting an options.json with no keys.

options.json

{}

It would be good if you could skip the options.json when you don't need it.

lbergelson avatar Dec 14 '18 17:12 lbergelson

Without making assumptions about filenames, we can use file to query the file arguments and get their types:

file compareHaplotypeCallerRuns_Subworkflows.zip
/compareHaplotypeCallerRuns_Subworkflows.zip: Zip archive data, at least v2.0 to extract

We can grep for Zip archive data in the output and handle the positional args accordingly.

jonn-smith avatar Feb 07 '19 20:02 jonn-smith