# Path: src/helper_functions.py
# def grab_all(connection, cmd, *args):
#     return connection.execute(cmd, *args).fetchall()
# 
# def load_options(f_option_file="options_simple_connected.json"):
#     # Load the file into a string
#     try:
#         with open(f_option_file) as FIN:
#             raw_text = FIN.read()
#     except:
#         msg = "Couldn't find option file {}".format(f_option_file)
#         raise IOError(msg)
# 
#     # Parse the text as json
#     try:
#         return json.loads(raw_text)
#     except Exception as Ex:
#         msg = "Couldn't parse JSON file {}, {}".format(f_option_file, Ex)
#         raise IOError(msg)


import sqlite3
import logging
import argparse
from src.helper_functions import grab_all, load_options

desc = "Make a report of the distinct sequences"
parser = argparse.ArgumentParser(description=desc)
cargs = vars(parser.parse_args())

# Start the logger

# Path: src/helper_functions.py
# def grab_all(connection, cmd, *args):
#     return connection.execute(cmd, *args).fetchall()
# 
# def load_options(f_option_file="options_simple_connected.json"):
#     # Load the file into a string
#     try:
#         with open(f_option_file) as FIN:
#             raw_text = FIN.read()
#     except:
#         msg = "Couldn't find option file {}".format(f_option_file)
#         raise IOError(msg)
# 
#     # Parse the text as json
#     try:
#         return json.loads(raw_text)
#     except Exception as Ex:
#         msg = "Couldn't parse JSON file {}, {}".format(f_option_file, Ex)
#         raise IOError(msg)


# Path: verification/raw_dump_distinct.py
import sqlite3
import logging
import argparse
from src.helper_functions import grab_all, load_options


desc = "Make a report of the distinct sequences"
parser = argparse.ArgumentParser(description=desc)
cargs = vars(parser.parse_args())

# Start the logger

logging.root.setLevel(logging.INFO)