def process_full_position(data, header, var_only=False):
    """
    Return genetic data when all alleles called on same line.

    Returns an array containing one item, a tuple of five items:
        (string) chromosome
        (string) start position (1-based)
        (array of strings) matching dbSNP entries
        (string) reference allele sequence
        (array of strings) the genome's allele sequences
    """
    feature_type = data[header['varType']]
    # Skip unmatchable, uncovered, or pseudoautosomal-in-X
    if (feature_type == 'no-ref' or feature_type.startswith('PAR-called-in-X')):
        return None
    if var_only and feature_type in ['no-call', 'ref']:
        return None

    filters = []
    if feature_type == 'no-call':
        filters.append('NOCALL')
    if 'varQuality' in header:
        if 'VQLOW' in data[header['varQuality']]:
            filters.append('VQLOW')
    else:
        var_filter = data[header['varFilter']]
        if var_filter and not var_filter == "PASS":
            filters = filters + var_filter.split(';')

    chrom = data[header['chromosome']]
    start = data[header['begin']]
    ref_allele = data[header['reference']]
    alleles = [data[header['alleleSeq']]]
    dbsnp_data = []
    dbsnp_data = data[header['xRef']].split(';')
    assert data[header['ploidy']] in ['1', '2']
    if feature_type == 'ref' or feature_type == 'no-call':
        return [{'chrom': chrom,
                 'start': start,
                 'dbsnp_data': dbsnp_data,
                 'ref_seq': ref_allele,
                 'alleles': alleles,
                 'allele_count': data[header['ploidy']],
                 'filters': filters,
                 'end': data[header['end']]}]
    else:
        return [{'chrom': chrom,
                 'start': start,
                 'dbsnp_data': dbsnp_data,
                 'ref_seq': ref_allele,
                 'alleles': alleles,
                 'allele_count': data[header['ploidy']],
                 'filters': filters}]
Return genetic data when all alleles called on same line.

    Returns an array containing one item, a tuple of five items:
        (string) chromosome
        (string) start position (1-based)
        (array of strings) matching dbSNP entries
        (string) reference allele sequence
        (array of strings) the genome's allele sequences