Skip to content

Commit

Permalink
fix append name SRA-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer authored and Jon Palmer committed Apr 12, 2017
1 parent 9e5dfab commit 98a5c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/amptk-fastq2sra.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def FindBarcode(Seq, BarcodeDict):
bc_name = file.split(".gz")[0]
barcode_seq = Barcodes.get(bc_name)
if args.append:
finalname = name+'_'+append
finalname = name+'_'+args.append
#also need to change the name for output files
newfile = file.replace(name, finalname)
os.rename(os.path.join(args.out, file), os.path.join(args.out, newfile))
Expand Down Expand Up @@ -365,7 +365,7 @@ def FindBarcode(Seq, BarcodeDict):
barcode_for = 'missing'
barcode_rev = 'missing'
if args.append:
finalname = name+'_'+append
finalname = name+'_'+args.append
newfile = file.replace(name, finalname)
newfile2 = file2.replace(name, finalname)
#also need to change the name for output files
Expand Down

0 comments on commit 98a5c63

Please sign in to comment.