Skip to content

Commit

Permalink
fix embarisingly typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer committed Apr 23, 2018
1 parent 89e8e3b commit 1ea7f28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/amptk-process_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,17 @@ def processRead(input):
#check for multi_samples and add if necessary
if args.multi == 'False':
shutil.copyfile(args.barcode_fasta, barcode_file)
if args.reverse_barcodes:
shutil.copyfile(args.reverse_barcodes,rev_barcode_file)
if args.reverse_barcode:
shutil.copyfile(args.reverse_barcode,rev_barcode_file)
else:
with open(barcode_file, 'w') as barcodeout:
with open(args.barcode_fasta, 'rU') as input:
for rec in SeqIO.parse(input, 'fasta'):
outname = args.multi+'.'+rec.id
barcodeout.write(">%s\n%s\n" % (outname, rec.seq))
if args.reverse_barcodes:
if args.reverse_barcode:
with open(rev_barcode_file, 'w') as barcodeout:
with open(args.reverse_barcodes, 'rU') as input:
with open(args.reverse_barcode, 'rU') as input:
for rec in SeqIO.parse(input, 'fasta'):
outname = args.multi+'.'+rec.id
barcodeout.write(">%s\n%s\n" % (outname, rec.seq))
Expand Down

0 comments on commit 1ea7f28

Please sign in to comment.