Пример #1
0

@app.route('/')
def index():
    # TODO (nealsid): Query step names from database.
    step_names = [
        "MergeSamFiles",
        "PrintReads",
        "MarkDuplicates",
        "SortSam",
        # "wallclock",
        "IndelRealigner",
        "BaseRecalibrator",
        "RealignerTargetCreator"
    ]
    return render_template('main.html',
                           step_names_json=json.dumps(step_names),
                           step_names=step_names)


if __name__ == '__main__':
    app.run(debug=True)


def init_db():
    with app.app_context():
        db = get_db()
        with app.open_resource('schema.sql', mode='r') as f:
            db.cursor().executescript(f.read())
        db.commit()
Пример #2
0
    app.logger.debug("Returning data for following steps: %s", ",".join([x[0] for x in new_data]))
    return "\n".join(["\t".join([str(x) for x in row]) for row in new_data])


@app.route("/")
def index():
    # TODO (nealsid): Query step names from database.
    step_names = [
        "MergeSamFiles",
        "PrintReads",
        "MarkDuplicates",
        "SortSam",
        # "wallclock",
        "IndelRealigner",
        "BaseRecalibrator",
        "RealignerTargetCreator",
    ]
    return render_template("main.html", step_names_json=json.dumps(step_names), step_names=step_names)


if __name__ == "__main__":
    app.run(debug=True)


def init_db():
    with app.app_context():
        db = get_db()
        with app.open_resource("schema.sql", mode="r") as f:
            db.cursor().executescript(f.read())
        db.commit()
Пример #3
0
#! /usr/bin/env python
from perfdash import app
app.run()