# Path: cmonkey/tools/util.py
# def read_ratios(result_dir):
#     csvpath = os.path.join(result_dir, 'ratios.tsv.gz')
#     df = pandas.read_csv(csvpath, index_col=0, sep='\t')
#     df.index = map(str, df.index)
#     return df


import json
import os
import string
import cmonkey.database as cm2db
from sqlalchemy import func, and_
from cmonkey.tools.util import read_ratios


GAGGLE_TEMPLATE = """
<!doctype html>
<html>

# Path: cmonkey/tools/util.py
# def read_ratios(result_dir):
#     csvpath = os.path.join(result_dir, 'ratios.tsv.gz')
#     df = pandas.read_csv(csvpath, index_col=0, sep='\t')
#     df.index = map(str, df.index)
#     return df


# Path: cmonkey/tools/export.py
import json
import os
import string
import cmonkey.database as cm2db
from sqlalchemy import func, and_
from cmonkey.tools.util import read_ratios



GAGGLE_TEMPLATE = """
<!doctype html>
<html>

  <head><title>Cluster $cluster Microformats</title></head>