Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Last active August 29, 2015 14:18
Show Gist options
  • Save terrycojones/6c0eb22d701be74c4faa to your computer and use it in GitHub Desktop.
Save terrycojones/6c0eb22d701be74c4faa to your computer and use it in GitHub Desktop.
def checkAlphabet(self, count=10):
"""
"""
alphabet = Read.checkAlphabet(self, count)
if len(self) > 10 and alphabet.issubset(set('ACGT')):
raise ...
# using the new-style classes super():
def checkAlphabet(self, count=10):
"""
"""
alphabet = super(AARead, self).checkAlphabet(self, count)
if len(self) > 10 and alphabet.issubset(set('ACGT')):
raise ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment