Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a bug in the reverse_complement code

  • Loading branch information...
commit 450258385b28d4ed4160792360480e5dd46bffb8 1 parent b3031cb
Michiel de Hoon authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Bio/Motif/_Motif.py
5 Bio/Motif/_Motif.py
View
@@ -447,14 +447,15 @@ def reverse_complement(self):
"""
Gives the reverse complement of the motif
"""
+ alphabet = self.alphabet
if self.instances!=None:
instances = []
for instance in self.instances:
instance = instance.reverse_complement()
instances.append(instance)
- res = Motif(instances)
+ res = Motif(alphabet, instances)
else: # has counts
- res = Motif()
+ res = Motif(alphabet)
res.counts={}
res.counts["A"]=self.counts["T"][:]
res.counts["T"]=self.counts["A"][:]
Please sign in to comment.
Something went wrong with that request. Please try again.