summaryrefslogtreecommitdiff
path: root/wk6/pset/dna
diff options
context:
space:
mode:
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r--wk6/pset/dna/dna.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py
index 9276008..3199f73 100644
--- a/wk6/pset/dna/dna.py
+++ b/wk6/pset/dna/dna.py
@@ -19,19 +19,19 @@ def main():
# TODO: Read database file into a variable
rows = []
- with open(sys.argv[0]) as file:
+ with open(sys.argv[1]) as file:
reader = csv.DictReader(file)
for row in reader:
rows.append(row)
# TODO: Read DNA sequence file into a variable
- database = '' + sys.argv[1]
+ database = 'databases/' + sys.argv[2]
sequence = ''
- with open(sys.argv[1]) as file:
+ with open(database) as file:
sequence = sequence.join(file.readlines())
# TODO: Find longest match of each STR in DNA sequence
- str1 = rows[0][2]
+ str1 = rows[0]
print(str1)
# TODO: Check database for matching profiles