diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 02:58:02 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 02:58:02 +0000 |
commit | 94aba4df928718886de2b3fb403df60d16c1a328 (patch) | |
tree | 94d5cdc6e8373abd5a4264706158f5f6b836261f /wk6/pset/dna/dna.py | |
parent | 30b742da7b825df8b0f20706cc16fd4cf9e2b02c (diff) |
Sun, May 19, 2024, 7:58 PM -07:00
Diffstat (limited to 'wk6/pset/dna/dna.py')
-rw-r--r-- | wk6/pset/dna/dna.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index 3110e4e..4c37abc 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -22,8 +22,11 @@ def main(): rows = [] with open(database) as file: reader = csv.DictReader(file) - for row in reader: - rows.append(row) + # Get the header (first line) + header = next(reader) + + # Get the rest of the data + rows = list(reader) # TODO: Read DNA sequence file into a variable text = 'sequences/' + sys.argv[2] |