summaryrefslogtreecommitdiff
path: root/wk6/pset
diff options
context:
space:
mode:
Diffstat (limited to 'wk6/pset')
-rw-r--r--wk6/pset/dna/dna.py7
1 files changed, 4 insertions, 3 deletions
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