@follows( mkdir("cgi") )
@files( PARAMS["bed_ucsc_cgi"], "cgi/ucsc.bed.load")
def loadUCSCPredictedCGIIntervals(infile, outfile):
    header = "contig,start,stop,id"
    statement = '''cat %(infile)s | awk 'OFS="\\t" {print $1,$2,$3,$4NR}' | python %(scriptsdir)s/csv2db.py
                      --database=%(database)s
                      --table=cgi_intervals
                      --index=contig,start
                      --index=id
                      --header=%(header)s
                   > %(outfile)s '''
    P.run()
    
############################################################
############################################################
## CGI nucleotide composition
Returns:
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_proj007.py/loadUCSCPredictedCGIIntervals--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/match.py/ParticipantStats.item4