def get_rank_score(variant_line=None, variant_dict=None, family_id=0):
    
    rank_score = -100
    raw_entry = None
    
    if variant_line:
        variant_line = variant_line.split("\t")
    
        for info_annotation in variant_line[7].split(';'):
            info_annotation = info_annotation.split('=')
            if len(info_annotation) == 2:
                key = info_annotation[0]
                value = info_annotation[1]
            if key == "RankScore":
                raw_entry = value
                break
    
    elif variant_dict:
        raw_entry = variant_dict['info_dict'].get('RankScore')
    
    if raw_entry:
        for family_annotation in raw_entry.split(','):
            family_annotation = family_annotation.split(':')
            if family_id:
                # If we should sort on a certain family we look for the
                # correct id
                if family_id == family_annotation[0]:
                    rank_score = float(family_annotation[1])
            else:
            # If no family id is given we choose the first family found
                rank_score = float(family_annotation[1])

    return str(rank_score)
Describe any value as a descriptor.
dataset/ETHPy150Open moonso/genmod/genmod/utils/get_priority.py/get_rank_score--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/descriptor.py/describe