Mercurial > repos > weilong-guo > bs_seeker2
comparison BSseeker2/FilterReads.py @ 1:8b26adf64adc draft default tip
V2.0.5
author | weilong-guo |
---|---|
date | Tue, 05 Nov 2013 01:55:39 -0500 |
parents | e6df770c0e58 |
children |
comparison
equal
deleted
inserted
replaced
0:e6df770c0e58 | 1:8b26adf64adc |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 | 2 |
3 import sys | 3 import sys |
4 import os | 4 import os |
5 import os.path | 5 import os.path |
6 import re | 6 import re |
224 parser.add_option("-k", dest="keepquality", default = False, action = "store_true", | 224 parser.add_option("-k", dest="keepquality", default = False, action = "store_true", |
225 help="Would not filter low quality reads if specified") | 225 help="Would not filter low quality reads if specified") |
226 (options, args) = parser.parse_args() | 226 (options, args) = parser.parse_args() |
227 | 227 |
228 if (options.infile is None) or (options.outfile is None) : | 228 if (options.infile is None) or (options.outfile is None) : |
229 print parser.print_help() | 229 parser.print_help() |
230 exit(-1) | 230 exit(-1) |
231 FilterReads(options.infile, options.outfile, options.keepquality) | 231 FilterReads(options.infile, options.outfile, options.keepquality) |
232 | 232 |
233 | 233 |
234 # =========================================== | 234 # =========================================== |