Closed nsheff closed 4 years ago
I wrote a dummy example of such a script some time ago:
#!/usr/bin/env python3
import json
from argparse import ArgumentParser
parser = ArgumentParser(description="Test script")
parser.add_argument("-s", "--size", help="max size", required=True)
parser.add_argument("-g", "--genome", type=str, help="genome", required=True)
parser.add_argument("-m", "--log-file", type=str, help="log_file", required=True)
args = parser.parse_args()
y = json.dumps({
"cores": "11",
"mem": "11111",
"time": "00-11:00:00",
"logfile": args.log_file
})
print(y)
yes, this is exactly what I wanted, thanks.
Is there an example of a python script or something for the dynamic_variables_command_template ? I thought we wrote one but now I can't find it...