Skip to content

Commit

Permalink
0.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tongzhouxu committed Mar 27, 2024
1 parent 6582141 commit 495dd59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mashpit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__author__ = 'Tongzhou Xu'
__email__ = '[email protected]'
__version__ = '0.9.5'
__version__ = '0.9.6'
4 changes: 2 additions & 2 deletions mashpit/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def generate_mashtree(output_df,min_similarity,query_name,sig_path,added_annotat
annotated_leaves.append(leaf)
dm = DistanceMatrix(matrix, annotated_leaves)
newick_str = nj(dm, result_constructor=str)
with open(f'{query_name}_annotated_tree.newick','w') as f:
with open(f'{query_name}_tree.newick','w') as f:
f.write(newick_str)
tree = Phylo.read(f'{query_name}_annotated_tree.newick', "newick")
tree = Phylo.read(f'{query_name}_tree.newick', "newick")
n = len(tree.get_terminals())
fig = plt.figure(figsize=(10, n*0.35), dpi=300)
axes = fig.add_subplot(1, 1, 1)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='mashpit',
version='0.9.5',
version='0.9.6',
url='https://github.com/tongzhouxu/mashpit',
author='Tongzhou Xu',
author_email='[email protected]',
Expand Down

0 comments on commit 495dd59

Please sign in to comment.