Skip to content

Commit

Permalink
Bugfix: Remove newlines in read_clusters
Browse files Browse the repository at this point in the history
vambtools.read_clusters accidentally included the newline in cluster names.
This lead to an exception in Vamb when calling write_fasta.
Resolves issue 112
  • Loading branch information
jakobnissen committed Apr 26, 2022
1 parent 1755b93 commit aeab6ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/RasmussenLab/vamb",
"author": "Jakob Nybo Nissen and Simon Rasmussen",
"author_email": "[email protected]",
"version": "3.0.5",
"version": "3.0.6",
"license": "MIT",
"packages": find_packages(),
"package_data": {"vamb": ["kernel.npz"]},
Expand Down
2 changes: 1 addition & 1 deletion vamb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

__authors__ = 'Jakob Nybo Nissen', 'Simon Rasmussen'
__licence__ = 'MIT'
__version__ = (3, 0, 5)
__version__ = (3, 0, 6)

import sys as _sys
if _sys.version_info[:2] < (3, 5):
Expand Down
2 changes: 1 addition & 1 deletion vamb/vambtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def read_clusters(filehandle, min_size=1):
if not stripped or stripped[0] == '#':
continue

clustername, contigname = line.split('\t')
clustername, contigname = stripped.split('\t')
contigsof[clustername].add(contigname)

contigsof = {cl: co for cl, co in contigsof.items() if len(co) >= min_size}
Expand Down

0 comments on commit aeab6ec

Please sign in to comment.