def _get_sample_sex(args):
    gq = GeminiQuery.GeminiQuery(args.db)
    query = """SELECT name, sex FROM samples"""
    sample_sex = {}
    gq.run(query)
    for row in gq:
        if row['sex'] == '1':
            sex = 'male'
        elif row['sex'] == '2':
            sex = 'female'
        else:
            sex = 'unknown'
        sample_sex[row['name']] = sex
    return sample_sex
Configures messenger.
dataset/ETHPy150Open arq5x/gemini/gemini/tool_qc.py/_get_sample_sex--crossover with--dataset/ETHPy150Open idlesign/django-sitemessage/sitemessage/messengers/xmpp.py/XMPPSleekMessenger.__init__