Skip to content

Instantly share code, notes, and snippets.

@Maryom
Created October 6, 2016 07:52
Show Gist options
  • Save Maryom/d33ea0d90fa5c29b8ea0c9dbe9827a84 to your computer and use it in GitHub Desktop.
Save Maryom/d33ea0d90fa5c29b8ea0c9dbe9827a84 to your computer and use it in GitHub Desktop.
records = ["AAAAAAAAACATTA", "AAAAAAAAACGACA", "AAAAAAAAAGAGAT", "AAAAAAAAAGTCGC"]
segments = [["G", "T", "C", "G", "C"], ["C", "G", "A", "C", "A"], ["C", "A", "T", "T", "A"], ["G", "A", "G", "A", "T"]]
for segment in segments:
for record in records:
if record.endswith(''.join(segment)):
print record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment