Skip to content

Commit

Permalink
fix import of skani tool
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Mar 18, 2024
1 parent 2294d78 commit 3c56bbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import assemble.mummer
import assemble.muscle
import assemble.gap2seq
import assemble.skani

# third-party
import numpy
Expand Down Expand Up @@ -381,7 +382,7 @@ def parser_gapfill_gap2seq(parser=argparse.ArgumentParser(description='Close gap
def cluster_references_ani(inRefs, outClusters, threads=None):
''' This step uses the skani triangle tool to define clusters of highly-related genomes.
'''
skani = tools.skani.SkaniTool()
skani = assemble.skani.SkaniTool()
clusters = skani.find_reference_clusters(inRefs, threads=threads)
with open(outClusters, 'w') as outf:
for cluster in clusters:
Expand All @@ -399,7 +400,7 @@ def parser_cluster_references_ani(parser=argparse.ArgumentParser(description='Cl

def skani_contigs_to_refs(inContigs, inRefs, out_skani_dist, out_skani_dist_filtered, out_clusters_filtered, threads=None):

skani = tools.skani.SkaniTool()
skani = assemble.skani.SkaniTool()
clusters = skani.find_reference_clusters(inRefs, threads=threads)
skani.find_closest_references(inContigs, inRefs, out_skani_dist, threads=threads)
refs_hit = set()
Expand Down
1 change: 1 addition & 0 deletions test/unit/test_assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import itertools
import pytest
import assemble.mummer
import assemble.skani
import tools.minimap2
import tools.novoalign
import tools.picard
Expand Down

0 comments on commit 3c56bbb

Please sign in to comment.