Skip to content

Commit

Permalink
Merge pull request #29 from kundajelab/hotfix
Browse files Browse the repository at this point in the history
Fixed bug in loading of reverse-complement seqlets
  • Loading branch information
AvantiShri authored Sep 20, 2018
2 parents f0124e8 + 5b30371 commit 95fba25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modisco.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: modisco
Version: 0.4.2.0
Version: 0.4.2.1
Summary: TF MOtif Discovery from Importance SCOres
Home-page: NA
License: UNKNOWN
Expand Down
4 changes: 2 additions & 2 deletions modisco/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_snippet(self, coor):
has_pos_axis=self.has_pos_axis)
else:
assert coor.start >= 0
assert len(self.fwd_tracks[coor.example_idx]) >= coor.end
assert len(self.fwd_tracks[coor.example_idx]) >= coor.end, coor.end
snippet = Snippet(
fwd=self.fwd_tracks[coor.example_idx][coor.start:coor.end],
rev=self.rev_tracks[
Expand Down Expand Up @@ -460,7 +460,7 @@ def from_string(self, string):
example_idx = int(example_info.split(":")[1])
start = int(start_info.split(":")[1])
end = int(end_info.split(":")[1])
rc = True if rc_info.split(":")[1] is "True" else False
rc = True if (rc_info.split(":")[1] == "True") else False
return SeqletCoordinates(example_idx=example_idx, start=start,
end=end, is_revcomp=rc)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description='TF MOtif Discovery from Importance SCOres',
url='NA',
download_url='NA',
version='0.4.2.0',
version='0.4.2.1',
packages=['modisco', 'modisco.cluster','modisco.backend',
'modisco.visualization', 'modisco.affinitymat',
'modisco.tfmodisco_workflow', 'modisco.hit_scoring'],
Expand Down

0 comments on commit 95fba25

Please sign in to comment.