Skip to content

Commit

Permalink
2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOlm committed Feb 26, 2020
1 parent e8a3379 commit 0997b31
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project (attempts to) adhere to [Semantic Versioning](http://semver.org/).

## [2.5.2] - 2020-02-26
### Fixed
- The bug I tried to fix in 2.5.1 is able to fix itself

## [2.5.1] - 2020-02-24
### Fixed
- Instead of crashing out, FastANI will report the error and keep going if parsing fails
Expand Down
2 changes: 1 addition & 1 deletion drep/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.1
2.5.2
20 changes: 15 additions & 5 deletions drep/d_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,23 @@ def cluster_genomes(genome_list, data_folder, **kwargs):
for bdb, name in iteratre_clusters(Bdb,Cdb):
logging.debug('running cluster {0}'.format(name))
#logging.debug('total memory - {0:.2f} Mbp'.format(int(process.memory_info().rss)/1000000))
ndb = compare_genomes(bdb, algorithm, data_folder, **kwargs)

if len(ndb) > 0:
try:
ndb = compare_genomes(bdb, algorithm, data_folder, **kwargs)
ndb['primary_cluster'] = name
Ndb = Ndb.append(ndb)
else:
logging.error("CRITICAL ERROR WITH PRIMARY CLUSTER {0}; SKIPPING".foramt(name))

except:
logging.error("CRITICAL ERROR WITH PRIMARY CLUSTER {0}; TRYING AGAIN".format(name))

try:
ndb = compare_genomes(bdb, algorithm, data_folder, **kwargs)
if len(ndb) > 0:
ndb['primary_cluster'] = name
Ndb = Ndb.append(ndb)
else:
logging.error("CRITICAL ERROR AGAIN WITH PRIMARY CLUSTER {0}; SKIPPING".format(name))
except:
logging.error("DOUBLE CRITICAL ERROR AGAIN WITH PRIMARY CLUSTER {0}; SKIPPING".format(name))

if debug:
logging.debug("Debug mode on - saving Ndb ASAP")
Expand Down

0 comments on commit 0997b31

Please sign in to comment.