def gc_frac(guide_seq):
    """Compute fraction of guide that is GC.

    Args:
        guide_seq: string of guide sequence; must be all uppercase

    Returns:
        fraction of guide sequence that is G or C
    """
    gc = guide_seq.count('G') + guide_seq.count('C')
    return float(gc) / len(guide_seq)