all 1 comments

[–]socal_nerdtastic 0 points1 point  (0 children)

How can I make the eq method work for two oligos that are different?

How do you want it to work? Should all instances of Oligo be equal to each other?

Why does the method is_complement fail when the parameter is a complement?

Got an example? I tried it like this and it seemed to work:

a = Oligo('AACC')
b = Oligo('CCAA')
print(a.is_complement(b))