Lines Matching refs:ndst1

1704     int ndst1 = ndst / nsmpl_dst;  in vcf_setter_format_int()  local
1709 ndst1 = line->n_allele*(line->n_allele+1)/2; in vcf_setter_format_int()
1711 ndst1 = col->number==BCF_VL_A ? line->n_allele - 1 : line->n_allele; in vcf_setter_format_int()
1712 hts_expand(int, ndst1*nsmpl_dst, args->mtmpi2, args->tmpi2); in vcf_setter_format_int()
1715 int32_t *dst = args->tmpi2 + i*ndst1; in vcf_setter_format_int()
1716 for (j=0; j<ndst1; j++) dst[j] = bcf_int32_missing; in vcf_setter_format_int()
1732 … int pld_dst = determine_ploidy(line->n_allele, args->tmpi2, ndst1, args->dst_smpl_pld, nsmpl_dst); in vcf_setter_format_int()
1737 if ( ndst1_new != ndst1 ) in vcf_setter_format_int()
1739 …if ( ndst1 ) error("todo: %s ndst1!=ndst .. %d %d at %s:%"PRId64"\n",col->hdr_key_src,ndst1_new,n… in vcf_setter_format_int()
1740 ndst1 = ndst1_new; in vcf_setter_format_int()
1741 hts_expand(int32_t, ndst1*nsmpl_dst, args->mtmpi2, args->tmpi2); in vcf_setter_format_int()
1744 else if ( !ndst1 ) in vcf_setter_format_int()
1746 ndst1 = col->number==BCF_VL_A ? line->n_allele - 1 : line->n_allele; in vcf_setter_format_int()
1747 hts_expand(int32_t, ndst1*nsmpl_dst, args->mtmpi2, args->tmpi2); in vcf_setter_format_int()
1754 int32_t *ptr_dst = args->tmpi2 + ii*ndst1; in vcf_setter_format_int()
1761 for (j=0; j<ndst1; j++) ptr_dst[j] = bcf_int32_missing; in vcf_setter_format_int()
1771 for (j=line->n_allele; j<ndst1; j++) ptr_dst[j++] = bcf_int32_vector_end; in vcf_setter_format_int()
1782 return bcf_update_format_int32(args->hdr_out,line,col->hdr_key_dst,args->tmpi2,nsmpl_dst*ndst1); in vcf_setter_format_int()
1811 int ndst1 = ndst / nsmpl_dst; in vcf_setter_format_real() local
1816 ndst1 = line->n_allele*(line->n_allele+1)/2; in vcf_setter_format_real()
1818 ndst1 = col->number==BCF_VL_A ? line->n_allele - 1 : line->n_allele; in vcf_setter_format_real()
1819 hts_expand(float, ndst1*nsmpl_dst, args->mtmpf2, args->tmpf2); in vcf_setter_format_real()
1822 float *dst = args->tmpf2 + i*ndst1; in vcf_setter_format_real()
1823 for (j=0; j<ndst1; j++) bcf_float_set_missing(dst[j]); in vcf_setter_format_real()
1839 … int pld_dst = determine_ploidy(line->n_allele, args->tmpi2, ndst1, args->dst_smpl_pld, nsmpl_dst); in vcf_setter_format_real()
1844 if ( ndst1_new != ndst1 ) in vcf_setter_format_real()
1846 …if ( ndst1 ) error("todo: %s ndst1!=ndst .. %d %d at %s:%"PRId64"\n",col->hdr_key_src,ndst1_new,n… in vcf_setter_format_real()
1847 ndst1 = ndst1_new; in vcf_setter_format_real()
1848 hts_expand(float, ndst1*nsmpl_dst, args->mtmpf2, args->tmpf2); in vcf_setter_format_real()
1851 else if ( !ndst1 ) in vcf_setter_format_real()
1853 ndst1 = col->number==BCF_VL_A ? line->n_allele - 1 : line->n_allele; in vcf_setter_format_real()
1854 hts_expand(float, ndst1*nsmpl_dst, args->mtmpf2, args->tmpf2); in vcf_setter_format_real()
1861 float *ptr_dst = args->tmpf2 + ii*ndst1; in vcf_setter_format_real()
1868 for (j=0; j<ndst1; j++) bcf_float_set_missing(ptr_dst[j]); in vcf_setter_format_real()
1883 for (j=line->n_allele; j<ndst1; j++) bcf_float_set_vector_end(ptr_dst[j]); in vcf_setter_format_real()
1899 return bcf_update_format_float(args->hdr_out,line,col->hdr_key_dst,args->tmpf2,nsmpl_dst*ndst1); in vcf_setter_format_real()
1917 int isrc,idst, ndst1 = 0, nsrc1 = ret / nsmpl_src; in vcf_setter_format_str() local
1928 if ( ndst1 < n ) ndst1 = n; in vcf_setter_format_str()
1930 assert( ndst1 ); in vcf_setter_format_str()
1932 int ndst = ndst1*nsmpl_dst; in vcf_setter_format_str()
1938 int32_t *dst = args->tmpi + idst*ndst1; in vcf_setter_format_str()
1943 for (i=1; i<ndst1; i++) dst[i] = bcf_int32_vector_end; in vcf_setter_format_str()
1967 for (; i<ndst1; i++) dst[i] = bcf_int32_vector_end; in vcf_setter_format_str()