@files( [ ("%s.idx" % PARAMS["filename_genome"], "genome.gff"), ] )
def buildGenome( infile, outfile ):

    fasta = IndexedFasta.IndexedFasta( PARAMS["filename_genome"] )

    entry = GFF.Entry()
    entry.start = 0
    entry.feature = "contig"
    entry.source = "genome"
    outs = open( outfile, "w" )

    for contig, size in fasta.getContigSizes( with_synonyms = False ).iteritems():
        entry.contig = contig
        entry.end = int(size)
        outs.write( str(entry) % "%s\n" )
    outs.close()

############################################################
############################################################
############################################################
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_vitaminD.py/buildGenome/swapped operands of `%`