Skip to content

Commit

Permalink
fix crazy cluster assignment bug in clustering step
Browse files Browse the repository at this point in the history
  • Loading branch information
Adelme Bazin committed Dec 16, 2021
1 parent 7d615f2 commit ed270c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.62
1.2.63
9 changes: 2 additions & 7 deletions ppanggolin/cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,11 @@ def alignRep(faaFile, tmpdir, cpu, coverage, identity):
logging.getLogger().debug(" ".join(cmd))
logging.getLogger().info("Aligning cluster representatives...")
subprocess.run(cmd, stdout=subprocess.DEVNULL, check=True)
outdb = tmpdir.name + '/rep_families'
cmd = ["mmseqs", "convertalis", seqdb, seqdb, alndb, outdb, "--format-output", "target,qlen,tlen,bits", "--db-output","1"]
logging.getLogger().debug(" ".join(cmd))
logging.getLogger().info("Extracting alignments...")
subprocess.run(cmd, stdout=subprocess.DEVNULL, check=True)
outfile = tmpdir.name + '/rep_families.tsv'
cmd = ["mmseqs","createtsv",seqdb, seqdb, outdb, outfile, "--full-header","1"]
cmd = ["mmseqs", "convertalis", seqdb, seqdb, alndb, outfile, "--format-output", "query,target,qlen,tlen,bits"]
logging.getLogger().debug(" ".join(cmd))
logging.getLogger().info("Extracting alignments...")
subprocess.run(cmd, stdout=subprocess.DEVNULL, check=True)

return outfile


Expand Down

0 comments on commit ed270c6

Please sign in to comment.