Skip to content

Commit 9288357

Browse files
committed
Resolve test.pl merge conflict
2 parents ac4e2b6 + 7b0c9ae commit 9288357

32 files changed

+2466
-1322
lines changed

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,12 @@ Public License instead of this License. But first, please read
723723

724724
-----------------------------------------------------------------------------
725725

726-
LICENSE FOR VariantKey (https://github.com/Genomicsplc/variantkey)
726+
LICENSE FOR VariantKey (https://github.com/tecnickcom/variantkey)
727727

728728
The MIT License
729729

730730
Copyright (c) 2017-2018 GENOMICS plc
731+
Copyright (c) 2018-2023 Nicola Asuni - Tecnick.com
731732

732733
Permission is hereby granted, free of charge, to any person obtaining a copy
733734
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OBJS = main.o vcfindex.o tabix.o \
4242
regidx.o smpl_ilist.o csq.o vcfbuf.o \
4343
mpileup.o bam2bcf.o bam2bcf_indel.o bam2bcf_iaux.o read_consensus.o bam_sample.o \
4444
vcfsort.o cols.o extsort.o dist.o abuf.o \
45-
ccall.o em.o prob1.o kmin.o str_finder.o
45+
ccall.o em.o prob1.o kmin.o str_finder.o gff.o
4646
PLUGIN_OBJS = vcfplugin.o
4747

4848
prefix = /usr/local
@@ -246,7 +246,7 @@ vcfgtcheck.o: vcfgtcheck.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htsli
246246
vcfindex.o: vcfindex.c $(htslib_vcf_h) $(htslib_tbx_h) $(htslib_kstring_h) $(htslib_bgzf_h) $(bcftools_h)
247247
vcfisec.o: vcfisec.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_vcfutils_h) $(htslib_hts_os_h) $(bcftools_h) $(filter_h)
248248
vcfmerge.o: vcfmerge.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_vcfutils_h) $(htslib_faidx_h) regidx.h $(bcftools_h) vcmp.h $(htslib_khash_h)
249-
vcfnorm.o: vcfnorm.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_faidx_h) $(htslib_khash_str2int_h) $(bcftools_h) rbuf.h abuf.h
249+
vcfnorm.o: vcfnorm.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_faidx_h) $(htslib_khash_str2int_h) $(bcftools_h) rbuf.h abuf.h gff.h
250250
vcfquery.o: vcfquery.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_khash_str2int_h) $(htslib_vcfutils_h) $(bcftools_h) $(filter_h) $(convert_h) $(smpl_ilist_h)
251251
vcfroh.o: vcfroh.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_kstring_h) $(htslib_kseq_h) $(htslib_bgzf_h) $(bcftools_h) HMM.h $(smpl_ilist_h) $(filter_h)
252252
vcfcnv.o: vcfcnv.c $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_kstring_h) $(htslib_kfunc_h) $(htslib_khash_str2int_h) $(bcftools_h) HMM.h rbuf.h
@@ -289,6 +289,7 @@ vcfbuf.o: vcfbuf.c $(htslib_vcf_h) $(htslib_vcfutils_h) $(htslib_hts_os_h) $(bcf
289289
abuf.o: abuf.c $(htslib_vcf_h) $(bcftools_h) rbuf.h abuf.h
290290
extsort.o: extsort.c $(bcftools_h) extsort.h kheap.h
291291
smpl_ilist.o: smpl_ilist.c $(bcftools_h) $(smpl_ilist_h)
292+
gff.o: gff.c gff.h regidx.h
292293
csq.o: csq.c $(htslib_hts_h) $(htslib_vcf_h) $(htslib_synced_bcf_reader_h) $(htslib_khash_h) $(htslib_khash_str2int_h) $(htslib_kseq_h) $(htslib_faidx_h) $(bcftools_h) $(filter_h) regidx.h kheap.h $(smpl_ilist_h) rbuf.h
293294

294295
# test programs

NEWS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Changes affecting specific commands:
1414

1515
- Fix a bug where the `-m` function did not respect the `--min-overlap` option (#1869)
1616

17+
- Fix a bug when update of INFO/END results in assertion error (#1957)
18+
1719
* bcftools concat
1820

1921
- New option `--drop-genotypes`
@@ -78,12 +80,19 @@ Changes affecting specific commands:
7880

7981
- Symbolic <DEL.*> alleles are now normalized too (#1919)
8082

83+
- New `-g, --gff-annot` option to right-align indels in forward transcripts to follow
84+
HGVS 3'rule (#1929)
85+
8186
* bcftools query
8287

8388
- Force newline character in formatting expression when not given explicitly
8489

8590
- Fix `-H` header output in formatting expressions containing newlines
8691

92+
* bcftools reheader
93+
94+
- Make `-f, --fai` aware of long contigs not representable by 32-bit integer (#1959)
95+
8796
* bcftools +split-vep
8897

8998
- Prevent a segfault when `-i/-e` use a VEP subfield not included in `-f` or `-c` (#1877)

consensus.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static void init_region(args_t *args, char *line)
324324
{
325325
char *ss, *se = line;
326326
while ( *se && !isspace(*se) && *se!=':' ) se++;
327-
int from = 0, to = 0;
327+
hts_pos_t from = 0, to = 0;
328328
char tmp = 0, *tmp_ptr = NULL;
329329
if ( *se )
330330
{
@@ -356,7 +356,14 @@ static void init_region(args_t *args, char *line)
356356
args->fa_frz_mod = -1;
357357
args->fa_case = -1;
358358
args->vcf_rbuf.n = 0;
359-
bcf_sr_seek(args->files,line,args->fa_ori_pos);
359+
360+
kstring_t str = {0,0,0};
361+
if ( from==0 ) from = 1;
362+
if ( to==0 ) to = HTS_POS_MAX;
363+
ksprintf(&str,"%s:%"PRIhts_pos"-%"PRIhts_pos,line,from,to);
364+
bcf_sr_set_regions(args->files,line,0);
365+
free(str.s);
366+
360367
if ( tmp_ptr ) *tmp_ptr = tmp;
361368
fprintf(args->fp_out,">%s%s\n",args->chr_prefix?args->chr_prefix:"",line);
362369
if ( args->chain_fname )

0 commit comments

Comments
 (0)