def to_range(obj, score=None, id=None, strand=None):
    from jcvi.utils.range import Range

    if score or id:
        _score = score if score else obj.score
        _id = id if id else obj.id
        return Range(seqid=obj.seqid, start=obj.start, end=obj.end, \
            score=_score, id=_id)
    elif strand:
        return (obj.seqid, obj.start, obj.end, obj.strand)

    return (obj.seqid, obj.start, obj.end)
Returns a decoded ProtocolElement from the specified JSON dictionary.
dataset/ETHPy150Open tanghaibao/jcvi/formats/gff.py/to_range--crossover with--dataset/ETHPy150Open ga4gh/server/ga4gh/protocol.py/ProtocolElement.fromJsonDict