diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-06 04:10:48 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-06 04:10:48 +0000 |
commit | a93552d6f5227afdea8e337a2bba1b1d03848225 (patch) | |
tree | c7d99b153489530e448536889162bd4b53e06c8a /wk6/pset/dna/dna.py | |
parent | 77884c479a95521a88f0f2a52760184fe9142dc2 (diff) |
Sun, May 5, 2024, 9:10 PM -07:00
Diffstat (limited to 'wk6/pset/dna/dna.py')
-rw-r--r-- | wk6/pset/dna/dna.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index 93b6c67..ae8a9b4 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -8,23 +8,25 @@ def main(): if len(sys.argv) < 1 or len(sys.argv) > 2: print("Oopsie you used the wrong number of arguments D: you should use two next time :3") return - + # check to see if arg 0 is a csv file if not sys.argv[0].endswith('.csv'): print("Oh no, that isn't a csv file :( that won't work can you fix that please?") return - + # check to see if arg 1 is a txt file if not sys.argv[1].endswith('.txt'): print("Oh no, that isn't a txt file :( that won't work can you fix that please?") return # TODO: Read database file into a variable rows = [] - with open("foo.csv") as file: + with open() as file: reader = csv.DictReader(file) for row in reader: rows.append(row) # TODO: Read DNA sequence file into a variable + with open() as file: + # TODO: Find longest match of each STR in DNA sequence |