Skip to content

Instantly share code, notes, and snippets.

View Maryom's full-sized avatar
:octocat:
Programming with love

Mariam AlJamea Maryom

:octocat:
Programming with love
  • Kuwait
View GitHub Profile
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