From 1007603cd53c466b7bf48020b2cb395f60e9365a Mon Sep 17 00:00:00 2001
From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com>
Date: Mon, 6 May 2024 06:51:29 +0000
Subject: Sun, May 5, 2024, 11:51 PM -07:00

---
 wk6/pset/dna/dna.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'wk6')

diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py
index 3199f73..b6955f7 100644
--- a/wk6/pset/dna/dna.py
+++ b/wk6/pset/dna/dna.py
@@ -18,16 +18,17 @@ def main():
     #     return
 
     # TODO: Read database file into a variable
+    database = 'databases/' + sys.argv[1]
     rows = []
-    with open(sys.argv[1]) as file:
+    with open(database) as file:
         reader = csv.DictReader(file)
         for row in reader:
             rows.append(row)
 
     # TODO: Read DNA sequence file into a variable
-    database = 'databases/' + sys.argv[2]
+    text = 'sequences/' + sys.argv[2]
     sequence = ''
-    with open(database) as file:
+    with open(text) as file:
         sequence = sequence.join(file.readlines())
 
     # TODO: Find longest match of each STR in DNA sequence
-- 
cgit v1.2.3