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