예제 #1
0
def show_pheno_data(dataset):
    print("Querying dataset '%s'..." % dataset)
    from roger.persistence import db
    from roger.persistence.dge import get_ds

    ds = get_ds(db.session(), dataset)
    print(ds.pheno_data)
예제 #2
0
def export_pheno_data(dataset, out_file):
    print("Saving pheno data to '%s' ..." % out_file.name)
    from roger.persistence import db
    from roger.persistence.dge import get_ds

    ds = get_ds(db.session(), dataset)
    ds.pheno_data.to_csv(out_file, sep="\t")
    print("Done")
예제 #3
0
def export_exprs(dataset, out_file):
    print("Saving expression matrix to '%s' ..." % out_file.name)
    from roger.persistence import db
    from roger.persistence.dge import get_ds
    import shutil

    ds = get_ds(db.session(), dataset)
    shutil.copy(ds.ExprsWC, out_file.name)
    print("Done")
예제 #4
0
    def get(self, Name):
        session = db.session()
        study = get_ds(session, Name)

        return make_response(study.feature_data.to_json(orient="table"), 201)
예제 #5
0
    def get(self, Name):
        session = db.session()
        study = get_ds(session, Name)

        return make_response(study.feature_data.to_csv(index=False), 201)
예제 #6
0
    def get(self, Name):
        session = db.session()
        study = get_ds(session, Name)

        return make_response(study.exprs_data.to_csv(), 201)
예제 #7
0
    def get(self, Name):
        session = db.session()
        study = get_ds(session, Name)

        return marshal(study, StudyViewFields)