Skip to content

Commit

Permalink
Update normalize-by-median.py
Browse files Browse the repository at this point in the history
  • Loading branch information
drtamermansour committed Feb 24, 2015
1 parent 067841e commit f944af3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/normalize-by-median.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ def get_parser():
default='', help='only output a single'
' file with the specified filename')
parser.add_argument('--append', default=False, action='store_true',
help='append reads to the outputfile. Only with -o specified')
help='append reads to the outputfile. '
'Only with -o specified')
parser.add_argument('input_filenames', metavar='input_sequence_filename',
help='Input FAST[AQ] sequence filename.', nargs='+')
parser.add_argument('--report-total-kmers', '-t', action='store_true',
Expand Down Expand Up @@ -243,10 +244,10 @@ def main(): # pylint: disable=too-many-branches,too-many-statements

if args.single_output_filename != '':
output_name = args.single_output_filename
if append:
outfp = open(args.single_output_filename, 'a')
else:
outfp = open(args.single_output_filename, 'w+')
if append:
outfp = open(args.single_output_filename, 'a')
else:
outfp = open(args.single_output_filename, 'w+')
else:
output_name = os.path.basename(input_filename) + '.keep'
outfp = open(output_name, 'w+')
Expand Down

0 comments on commit f944af3

Please sign in to comment.