Skip to content

Commit

Permalink
2.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOlm committed Mar 7, 2020
1 parent a28a8f6 commit 3d21851
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ 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.4] - 2020-03-06
- Trying to fix a bug related to pandas categories

## [2.5.3] - 2020-02-27
### Fixed
- More bug fixes related to FastANI
Expand Down
2 changes: 1 addition & 1 deletion drep/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.3
2.5.4
4 changes: 2 additions & 2 deletions drep/d_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ def all_vs_all_MASH(Bdb, data_folder, **kwargs):
uCols = ['genome1','genome2','dist']
dTypes = {'genome1':'category', 'genome2':'category', 'dist':np.float32}
Mdb = pd.read_csv(file, names=iniCols, usecols=uCols, dtype=dTypes, sep='\t')
Mdb['genome1'] = Mdb['genome1'].apply(_get_genome_name_from_fasta)
Mdb['genome2'] = Mdb['genome2'].apply(_get_genome_name_from_fasta)
Mdb['genome1'] = Mdb['genome1'].apply(_get_genome_name_from_fasta).astype('category')
Mdb['genome2'] = Mdb['genome2'].apply(_get_genome_name_from_fasta).astype('category')
Mdb['similarity'] = 1 - Mdb['dist']

# Filter out those genomes that are in the MASH folder but shouldn't be in Mdb
Expand Down

0 comments on commit 3d21851

Please sign in to comment.