Mercurial > repos > jowong > prince_galaxy
comparison filler.py @ 0:88748989a22a draft default tip
planemo upload
author | jowong |
---|---|
date | Tue, 13 Nov 2018 11:41:37 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:88748989a22a |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 import sys | |
4 import argparse as ap | |
5 | |
6 parser = ap.ArgumentParser(prog='filler', conflict_handler='resolve', | |
7 description="produce filler collection to deal with galaxy handling") | |
8 | |
9 input = parser.add_argument_group('Input', '') | |
10 input.add_argument('-i', '--input', nargs=1, required=True, help="Paths to (forward) reads") | |
11 input.add_argument('-o', '--output', nargs=1, required=True, help="output") | |
12 | |
13 if len(sys.argv) == 0: | |
14 parser.print_usage() | |
15 sys.exit(1) | |
16 | |
17 args = parser.parse_args() | |
18 output = open(args.output[0], 'w') | |
19 output.write(args.input[0]) | |
20 output.write("\n") |