Skip to content

Commit

Permalink
vcfmerge: Fix error message, correct chr name must be printed
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3 authored and mcshane committed Nov 6, 2015
1 parent edca051 commit 7564362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcfmerge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ void merge_buffer(args_t *args)

// normalize alleles
maux->als = merge_alleles(line->d.allele, line->n_allele, maux->d[i][j].map, maux->als, &maux->nals, &maux->mals);
if ( !maux->als ) error("Failed to merge alleles at %s:%d in %s\n",bcf_seqname(args->out_hdr,line),line->pos+1,reader->fname);
if ( !maux->als ) error("Failed to merge alleles at %s:%d in %s\n",bcf_seqname(bcf_sr_get_header(args->files,j),line),line->pos+1,reader->fname);
hts_expand0(int, maux->nals, maux->ncnt, maux->cnt);
for (k=1; k<line->n_allele; k++)
maux->cnt[ maux->d[i][j].map[k] ]++; // how many times an allele appears in the files
Expand Down

0 comments on commit 7564362

Please sign in to comment.