annotate filler.py @ 8:63f3743c2ae4 draft

planemo upload
author jowong
date Tue, 13 Nov 2018 12:19:53 -0500
parents 82569b47df8d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
82569b47df8d planemo upload
jowong
parents:
diff changeset
1 #!/usr/bin/env python
82569b47df8d planemo upload
jowong
parents:
diff changeset
2
82569b47df8d planemo upload
jowong
parents:
diff changeset
3 import sys
82569b47df8d planemo upload
jowong
parents:
diff changeset
4 import argparse as ap
82569b47df8d planemo upload
jowong
parents:
diff changeset
5
82569b47df8d planemo upload
jowong
parents:
diff changeset
6 parser = ap.ArgumentParser(prog='filler', conflict_handler='resolve',
82569b47df8d planemo upload
jowong
parents:
diff changeset
7 description="produce filler collection to deal with galaxy handling")
82569b47df8d planemo upload
jowong
parents:
diff changeset
8
82569b47df8d planemo upload
jowong
parents:
diff changeset
9 input = parser.add_argument_group('Input', '')
8
63f3743c2ae4 planemo upload
jowong
parents: 4
diff changeset
10 input.add_argument('-i', '--input', nargs=1, required=True, help="Paths to (forward) reads")
4
82569b47df8d planemo upload
jowong
parents:
diff changeset
11 input.add_argument('-o', '--output', nargs=1, required=True, help="output")
82569b47df8d planemo upload
jowong
parents:
diff changeset
12
82569b47df8d planemo upload
jowong
parents:
diff changeset
13 if len(sys.argv) == 0:
82569b47df8d planemo upload
jowong
parents:
diff changeset
14 parser.print_usage()
82569b47df8d planemo upload
jowong
parents:
diff changeset
15 sys.exit(1)
82569b47df8d planemo upload
jowong
parents:
diff changeset
16
82569b47df8d planemo upload
jowong
parents:
diff changeset
17 args = parser.parse_args()
82569b47df8d planemo upload
jowong
parents:
diff changeset
18 output = open(args.output[0], 'w')
82569b47df8d planemo upload
jowong
parents:
diff changeset
19 output.write(args.input[0])
82569b47df8d planemo upload
jowong
parents:
diff changeset
20 output.write("\n")