Skip to content

Commit

Permalink
print mash results to a TSV file
Browse files Browse the repository at this point in the history
  • Loading branch information
kapsakcj committed Mar 23, 2023
1 parent e317287 commit 6cda171
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions centroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def Mash_List_Maker(input_assembly_list):
String1 = subprocess.check_output('mash dist ' + files + ' ' + files2, shell=True)
Output.append(String1)
Output.sort()
# write TSV to file
with open("mash-results.tsv", 'w', newline='') as tsvfile:
for item in Output:
tsvfile.write(item.decode("utf-8"))
return Output

def Mash_Centroid(input_assembly_list):
Expand Down

0 comments on commit 6cda171

Please sign in to comment.