python/pymethylprocess/MethylationDataTypes.py
def extract_pheno_beta_df_from_sql(conn, disease=''):
    """Return phenotype and beta dataframes from SQL tables storing MethylationArray info.

    Parameters
    ----------
    conn
        SQL connection.
    """
    if disease:
        return pd.read_sql('select * from {};'.format('pheno_{}'.format(disease)),conn), pd.read_sql('select * from {};'.format('beta_{}'.format(disease)),conn)
    else:
        return pd.read_sql('select * from {};'.format('pheno'),conn), pd.read_sql('select * from {};'.format('beta'),conn)
Return phenotype and beta dataframes from SQL tables storing MethylationArray info.

    Parameters
    ----------
    conn
        SQL connection.
    
Return phenotype and beta dataframes from SQL tables storing MethylationArray info.
Parameters

conn
SQL connection.
Return phenotype and beta dataframes from SQL tables storing MethylationArray info . Parameters conn SQL connection .
def extract_pheno_beta_df_from_sql(conn, disease=''):
    if disease:
        return pd.read_sql('select * from {};'.format('pheno_{}'.format(disease)),conn), pd.read_sql('select * from {};'.format('beta_{}'.format(disease)),conn)
    else:
        return pd.read_sql('select * from {};'.format('pheno'),conn), pd.read_sql('select * from {};'.format('beta'),conn)
def extract_pheno_beta_df_from_sql ( conn , disease = '' ) : if disease : return pd . read_sql ( 'select * from {};' . format ( 'pheno_{}' . format ( disease ) ) , conn ) , pd . read_sql ( 'select * from {};' . format ( 'beta_{}' . format ( disease ) ) , conn ) else : return pd . read_sql ( 'select * from {};' . format ( 'pheno' ) , conn ) , pd . read_sql ( 'select * from {};' . format ( 'beta' ) , conn )
Return phenotype and beta dataframes from SQL tables storing MethylationArray info.
Return phenotype and beta dataframes from SQL tables storing MethylationArray info .
"""Return phenotype and beta dataframes from SQL tables storing MethylationArray info.

    Parameters
    ----------
    conn
        SQL connection.
    """
conn
disease