diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-06 02:23:33 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-06 02:23:33 +0000 |
commit | a1d71ef688fdedae1a401c2a17747ae54e9690d7 (patch) | |
tree | 39b1c3021b82d80ed1e5a1206ce35dc6a0f4f0b4 /wk6/pset/dna | |
parent | 8d8e15205dbdd76d4574085e5321de1070e67b33 (diff) |
Sun, May 5, 2024, 7:23 PM -07:00
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r-- | wk6/pset/dna/dna.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index 401e674..ab3cf7b 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -1,4 +1,4 @@ -import csv +0import csv import sys @@ -7,7 +7,7 @@ def main(): # TODO: Check for command-line usage # TODO: Read database file into a variable - + # TODO: Read DNA sequence file into a variable # TODO: Find longest match of each STR in DNA sequence @@ -43,11 +43,11 @@ def longest_match(sequence, subsequence): # If there is a match in the substring if sequence[start:end] == subsequence: count += 1 - + # If there is no match in the substring else: break - + # Update most consecutive matches found longest_run = max(longest_run, count) |