diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 03:05:16 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 03:05:16 +0000 |
commit | 6e7e394abc70a8c458054b1d7120a33406f823b0 (patch) | |
tree | 2fbe0e80ea5fdb3a081158ee0fe969b439710baa /wk6/pset | |
parent | bc21df7213434ab46fa0822f5f3926f49f1146ba (diff) |
Sun, May 19, 2024, 8:05 PM -07:00
Diffstat (limited to 'wk6/pset')
-rw-r--r-- | wk6/pset/dna/dna.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index 3110e4e..986ed5d 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -20,8 +20,10 @@ def main(): # TODO: Read database file into a variable database = 'databases/' + sys.argv[1] rows = [] + fields = [] with open(database) as file: reader = csv.DictReader(file) + fields = reader.fieldnames for row in reader: rows.append(row) @@ -33,8 +35,8 @@ def main(): # TODO: Find longest match of each STR in DNA sequence str1 = rows[0] - print('36', str1['name']) - print(rows) + print('38', str1['name']) + print('39', fields) # TODO: Check database for matching profiles |