diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 08:19:46 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 08:19:46 +0000 |
commit | 839db768657ea681d653ace08ad05d82ee8da963 (patch) | |
tree | f37e518c3c89820404f26c5d34686e3b4d2c411c /wk6/pset/dna | |
parent | b9f4063ffcf29073fe976a5fb19f73eaebcb8273 (diff) |
Mon, May 20, 2024, 1:19 AM -07:00
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r-- | wk6/pset/dna/dna.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index d14167d..dbd140d 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -35,17 +35,17 @@ def main(): # TODO: Find longest match of each STR in DNA sequence matches = [] - - for i in range(len(fields)): - print(i) - if fields[i] != 'name': - matches[i] = longest_match(sequence, fields[i]) + for field in fields: + if field != 'name': + matches.append(longest_match(sequence, field)) else: - matches[i] = '' + matches.append('') + print(fields) print(matches) # TODO: Check database for matching profiles + for row in rows: return |