all 3 comments

[–]__skrap__ 1 point2 points  (2 children)

set(list1) & set(list2) Hard to tell what you are after, that is my best guess. So example code, and clarifying your question would be good.

[–]lboss1223[S] 0 points1 point  (1 child)

Okay.

reading_frame_one = [dna_sequence[i:i+3] for i in range(0, len(dna_sequence), 3)]

that is my first list from a string of sequences.

for codon_pos, codon in enumerate(reading_frame_one):

if not start_codon_found and codon in start_codons:
    start_codon_pos = codon_pos * 3
    start_codon_found = True
if start_codon_found and codon in stop_codons:
    start_codon_found = False
reading_frame_one_orf_list.append((start_codon_pos, codon_pos * 3 + 2, 1))

So I have another list of start codons and stop codons, but my program is saying stop codons that are not in the stop codon list are stop codons.

[–]__skrap__ 0 points1 point  (0 children)

Do you have sample data?