This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first arg = database csv | |
# second arg = sequence | |
import csv | |
from sys import argv, exit | |
# if user does not adhere to usage, quit | |
if len(argv) != 3: | |
print("Usage: python dna.py data.csv sequence.txt") | |
exit(1) | |
# open the passed files and close them after work done | |
with open(argv[1]) as dataf, open(argv[2]) as seqf: |