Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Python script to find repeats in the DNA sequence !

  • Public
By LEGE 296 days ago
def find_repeats(sequence, min_repeat_length=3): repeats = [] for i in range(len(sequence) - min_repeat_length + 1): substring = sequence[i:i+min_repeat_length] if sequence.count(substring) > 1 and substring not in repeats: repeats.append(substring) return repeats # Example usage genome_sequence = "ATCGATCGATCGATCG" result = find_repeats(genome_sequence) print("Repeats found:", result)