Skip to content

Commit

Permalink
Naming of output files in prune_db
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlees committed Aug 3, 2018
1 parent 2fbca35 commit 7ee405f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PopPUNK/prune_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def main():
createDatabaseDir(args.output, kmers)
constructDatabase(tmpName, kmers, sketch_sizes, args.output, args.threads, args.mash, True)

os.rename(args.output + ".pkl", args.output + "/" + os.path.basename(args.output) + ".pkl")
os.rename(args.output + ".npy", args.output + "/" + os.path.basename(args.output) + ".npy")
os.rename(args.output + ".pkl", args.output + "/" + os.path.basename(args.output) + "dists.pkl")
os.rename(args.output + ".npy", args.output + "/" + os.path.basename(args.output) + "dists.npy")
os.remove(tmpName)
else:
sys.stderr.write("No sequences to remove\n")
Expand Down

0 comments on commit 7ee405f

Please sign in to comment.