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