Skip to content

Commit

Permalink
Fix for reading .meme files with float 'nsites'
Browse files Browse the repository at this point in the history
  • Loading branch information
msbentsen committed Jun 25, 2021
1 parent 5a80210 commit e5251cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.12.12 (in progress)
- Fix for reading .meme files with float 'nsites'

## 0.12.11 (2021-06-21)
- Set cap on figure size in BINDetect for large number of motifs
- Fix for reading 1-bp .bed-files without "not proper bed format"-error in RegionList.from_bed
Expand Down
2 changes: 1 addition & 1 deletion tobias/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.12.11"
__version__ = "0.12.12"
2 changes: 1 addition & 1 deletion tobias/utils/motifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def from_file(self, path):
self[-1].info = info #Add meme-read information to info-dict

if "nsites" in info:
self[-1].n = int(info["nsites"]) #overwrites OneMotif default
self[-1].n = int(float(info["nsites"])) #overwrites OneMotif default

# parse probability matrix or save motif
elif proba_flag:
Expand Down

0 comments on commit e5251cc

Please sign in to comment.