Mercurial > repos > davidvanzessen > sff_extract_demultiplex
comparison trim.py @ 5:35b55f1c0c59 draft
Uploaded
author | davidvanzessen |
---|---|
date | Tue, 08 Jul 2014 09:38:54 -0400 |
parents | 8e3d95d7f342 |
children |
comparison
equal
deleted
inserted
replaced
4:8e3d95d7f342 | 5:35b55f1c0c59 |
---|---|
8 parser.add_argument("--end", help="How many nucleotides to trim from the end", type=int) | 8 parser.add_argument("--end", help="How many nucleotides to trim from the end", type=int) |
9 | 9 |
10 args = parser.parse_args() | 10 args = parser.parse_args() |
11 start = int(args.start) | 11 start = int(args.start) |
12 end = int(args.end) | 12 end = int(args.end) |
13 | |
14 print args.input | |
15 print args.output | |
16 print start | |
17 print end | |
13 | 18 |
14 if end <= 0 and start <= 0: | 19 if end <= 0 and start <= 0: |
15 import shutil | 20 import shutil |
16 shutil.copy(args.input, args.output) | 21 shutil.copy(args.input, args.output) |
17 import sys | 22 import sys |