Skip to content

Commit

Permalink
change output to be just name of genome, not path to genome
Browse files Browse the repository at this point in the history
  • Loading branch information
stjacqrm committed May 20, 2020
1 parent 27d22ae commit a225928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion centroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ def Mash_Centroid(input_assembly_list):
Assembly_List = glob.glob(Folder + '/*.fasta')
Centroid = Mash_Centroid(Assembly_List)
print(Centroid)
print(Centroid, file=open("centroid_out.txt", "w"))
ref_genome = Centroid.decode().rsplit('/',1)[1]
print(ref_genome, file=open("centroid_out.txt", "w"))

0 comments on commit a225928

Please sign in to comment.