scout/build/variant/genotype.py
def build_genotype(gt_call):
    """Build a genotype call
    
    Args:
        gt_call(dict)
    
    Returns:
        gt_obj(dict)
    
    gt_call = dict(
        sample_id = str,
        display_name = str,
        genotype_call = str,
        allele_depths = list, # int
        read_depth = int,
        genotype_quality = int,
    )
    
    
    """
    gt_obj = dict(
        sample_id = gt_call['individual_id'],
        display_name = gt_call['display_name'],
        genotype_call = gt_call['genotype_call'],
        allele_depths = [gt_call['ref_depth'], gt_call['alt_depth']],
        read_depth = gt_call['read_depth'],
        genotype_quality = gt_call['genotype_quality']
    )
    
    return gt_obj
def build_genotype(gt_call):
    """Build a genotype call
    
    Args:
        gt_call(dict)
    
    Returns:
        gt_obj(dict)
    
    gt_call = dict(
        sample_id = str,
        display_name = str,
        genotype_call = str,
        allele_depths = list, # int
        read_depth = int,
        genotype_quality = int,
    )
    
    
    """
    gt_obj = dict(
        sample_id = gt_call['individual_id'],
        display_name = gt_call['display_name'],
        genotype_call = gt_call['genotype_call'],
        allele_depths = [gt_call['ref_depth'], gt_call['alt_depth']],
        read_depth = gt_call['read_depth'],
        genotype_quality = gt_call['genotype_quality']
    )
    
    return gt_obj
def build_genotype ( gt_call ) : gt_obj = dict ( sample_id = gt_call [ 'individual_id' ] , display_name = gt_call [ 'display_name' ] , genotype_call = gt_call [ 'genotype_call' ] , allele_depths = [ gt_call [ 'ref_depth' ] , gt_call [ 'alt_depth' ] ] , read_depth = gt_call [ 'read_depth' ] , genotype_quality = gt_call [ 'genotype_quality' ] ) return gt_obj
Build a genotype call
    
    Args:
        gt_call(dict)
    
    Returns:
        gt_obj(dict)
    
    gt_call = dict(
        sample_id = str,
        display_name = str,
        genotype_call = str,
        allele_depths = list, # int
        read_depth = int,
        genotype_quality = int,
    )
Build a genotype call Args : gt_call ( dict ) Returns : gt_obj ( dict ) gt_call = dict ( sample_id = str display_name = str genotype_call = str allele_depths = list # int read_depth = int genotype_quality = int )