summaryrefslogtreecommitdiff
path: root/wk6
diff options
context:
space:
mode:
Diffstat (limited to 'wk6')
-rw-r--r--wk6/pset/dna/dna.py8
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)