From a1d71ef688fdedae1a401c2a17747ae54e9690d7 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 6 May 2024 02:23:33 +0000 Subject: Sun, May 5, 2024, 7:23 PM -07:00 --- wk6/pset/dna/dna.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wk6') 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) -- cgit v1.2.3