diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 08:12:24 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 08:12:24 +0000 |
commit | 1c13af6eabef0c7a054d2bc27aed60857395579c (patch) | |
tree | 5eb3645f6af067993c406df60004a449dae7281f /wk6/pset/dna | |
parent | 6cd29c4dd9c8320f79b67c8d0e92b40daa328290 (diff) |
Mon, May 20, 2024, 1:12 AM -07:00
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r-- | wk6/pset/dna/dna.py | 10 |
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) |