@transform(  makeCodingPotential, suffix(".coding"), "_coding.import")
def importCodingPotential( infile, outfile ):
    
    table = outfile[:-len(".import")]

    statement = '''
   python %(scriptsdir)s/csv2db.py %(csv2db_options)s 
              --allow-empty
              --index=gene_id 
              --map=gene_id:str 
              --table=%(table)s 
    < %(infile)s 
    > %(outfile)s'''

    P.run()

    # set the is_coding flag
    dbhandle = sqlite3.connect( PARAMS["database"] )
    Database.executewait( dbhandle, '''ALTER TABLE %(table)s ADD COLUMN is_coding INTEGER''' % locals())
    Database.executewait( dbhandle, '''UPDATE %(table)s SET is_coding = (f_iscoding == 'coding') OR (r_iscoding == 'coding') ''' % locals())
    dbhandle.commit()

########################################################
Handles the trait defining a particular page's name being changed.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_kamilah.py/importCodingPotential--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/list_editor.py/NotebookEditor.update_page_name