summaryrefslogtreecommitdiff
path: root/wk6/pset/dna
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-20 08:12:24 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-20 08:12:24 +0000
commit1c13af6eabef0c7a054d2bc27aed60857395579c (patch)
tree5eb3645f6af067993c406df60004a449dae7281f /wk6/pset/dna
parent6cd29c4dd9c8320f79b67c8d0e92b40daa328290 (diff)
Mon, May 20, 2024, 1:12 AM -07:00
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r--wk6/pset/dna/dna.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py
index 0e7bb14..5140cf0 100644
--- a/wk6/pset/dna/dna.py
+++ b/wk6/pset/dna/dna.py
@@ -36,10 +36,12 @@ def main():
# TODO: Find longest match of each STR in DNA sequence
matches = []
- for field in len(fields):
- print(field)
- if not fields[1] == 'name':
- matches[field] = longest_match(sequence, fields[field])
+ for i in range(len(fields)):
+ print(i)
+ if not fields[i] == 'name':
+ matches[i] = longest_match(sequence, fields[i])
+ else:
+ matches[i] = ''
print(matches)