Skip to content

Commit a076758

Browse files
committed
save fallback
1 parent b23c521 commit a076758

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/HogProf/lshbuilder.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,14 @@ def main():
598598
masterTree =mastertree , lossonly = lossonly , duplonly = duplonly , use_taxcodes = taxcodes , reformat_names=reformat_names, verbose=verbose)
599599
lsh_builder.run_pipeline(threads)
600600
print(time.time() - start)
601+
#save corrected tree
602+
if os.path.isfile('fallback.nwk'):
603+
with open( dbname + 'corrected_tree.nwk', 'w') as treeout:
604+
#copy the fallback tree
605+
with open('fallback.nwk') as fallbackin:
606+
treeout.write(fallbackin.read())
607+
#remove fallback tree
608+
os.remove('fallback.nwk')
601609
print('DONE')
602610

603611

0 commit comments

Comments
 (0)