Created
October 6, 2016 07:52
-
-
Save Maryom/d33ea0d90fa5c29b8ea0c9dbe9827a84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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