def decorator_percent_gc(intervals, start, end, contig, fasta):
    l, ngc = 0, 0

    # fetch sequence of the complete window first
    sequence = fasta.getSequence(contig, "+", start, end)

    for istart, iend in intervals:
        ngc += len(filter(lambda x: x in "GCgc",
                          sequence[istart - start:iend - start]))
        l += iend - istart

    return 100.0 * ngc / l, None
Consume the remainder of this result and return the
dataset/ETHPy150Open CGATOxford/cgat/scripts/gff2table.py/decorator_percent_gc--crossover with--dataset/ETHPy150Open nigelsmall/py2neo/py2neo/packages/neo4j/v1/session.py/StatementResult.consume