示例#1
0
def retrieve_experiment_status(ae_id):
    sql_stmt = """SELECT status FROM experiments where accession = '%s' """ % ae_id
    result = execute_select(sql_stmt, db)

    if result and result[0]:
        return result[0]['status']

    return None
示例#2
0
def retrieve_checker_score(accession):
    sql_stmt = """SELECT checker_score FROM experiments where accession = '%s' """ % accession
    result = execute_select(sql_stmt, db)

    if result and result[0]:
        return result[0]['checker_score']

    return None
示例#3
0
def retrieve_experiment_id_by_accession(accession):
    sql = """SELECT id FROM experiments WHERE accession = '%s'""" % accession
    res = execute_select(sql, db)
    if res and res[0]:
        return res[0]['id']
    return None
示例#4
0
def retrieve_data_files_by_owned_by(submission_id):
    sql = '''SELECT  fileName, digest from data_files where ownedBy = %s''' % str(
        submission_id)
    print sql
    return execute_select(sql, db)
示例#5
0
def retrieve_submission_by_accession(acc):
    sql = """select * from submissions where accession = '%s' """ % acc
    return execute_select(sql, db)