diff options
Diffstat (limited to 'wk6/pset')
-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 |