Skip to content

Instantly share code, notes, and snippets.

:octocat:
Programming with love

Mariam AlJamea Maryom

:octocat:
Programming with love
Block or report user

Report or block Maryom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Find segment in set of records
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
You can’t perform that action at this time.