python/pymethylprocess/PreProcessDataTypes.py
def export_sql(self, output_db, disease=''):
        """Export pheno and beta dataframes to SQL

        Parameters
        ----------
        output_db
            Where to store data, sqlite db.
        disease
            Custom naming scheme for data."""
        conn = sqlite3.connect(output_db)
        self.pheno_py.to_sql('pheno' if not disease else 'pheno_{}'.format(disease), con=conn, if_exists='replace')
        self.beta_py.to_sql('beta' if not disease else 'beta_{}'.format(disease), con=conn, if_exists='replace')
        conn.close()
Export pheno and beta dataframes to SQL

        Parameters
        ----------
        output_db
            Where to store data, sqlite db.
        disease
            Custom naming scheme for data.
Export pheno and beta dataframes to SQL
Parameters

output_db
Where to store data, sqlite db.
disease
Custom naming scheme for data.
Export pheno and beta dataframes to SQL Parameters output_db Where to store data sqlite db . disease Custom naming scheme for data .
def export_sql(self, output_db, disease=''):
        conn = sqlite3.connect(output_db)
        self.pheno_py.to_sql('pheno' if not disease else 'pheno_{}'.format(disease), con=conn, if_exists='replace')
        self.beta_py.to_sql('beta' if not disease else 'beta_{}'.format(disease), con=conn, if_exists='replace')
        conn.close()
def export_sql ( self , output_db , disease = '' ) : conn = sqlite3 . connect ( output_db ) self . pheno_py . to_sql ( 'pheno' if not disease else 'pheno_{}' . format ( disease ) , con = conn , if_exists = 'replace' ) self . beta_py . to_sql ( 'beta' if not disease else 'beta_{}' . format ( disease ) , con = conn , if_exists = 'replace' ) conn . close ( )
Export pheno and beta dataframes to SQL
Parameters
Export pheno and beta dataframes to SQL Parameters
"""Export pheno and beta dataframes to SQL

        Parameters
        ----------
        output_db
            Where to store data, sqlite db.
        disease
            Custom naming scheme for data."""
self
output_db
disease