2016-05-22 21:08:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package bcftools
|
|
|
|
|
#
|
2025-04-02 13:44:43 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-05-22 21:08:46 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2021-05-16 16:34:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-05-22 21:08:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: bcftools
|
2025-04-02 13:44:43 +00:00
|
|
|
Version: 1.21
|
2016-05-22 21:08:46 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Tools for manipulating variant calls in the Variant Call Format (VCF)
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Productivity/Scientific/Other
|
2018-07-13 09:05:18 +00:00
|
|
|
URL: http://www.htslib.org/
|
Accepting request 770397 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to 1.10.2
* This release fixes crashes reported on files including integer
INFO tags with values outside the range officially supported
by VCF. It also fixes a bug where invalid BCF files would be
created if such values were present.
- Update to 1.10.0
+ Numerous bug fixes, usability improvements and sanity checks were added to prevent common user errors.
+ The -r, --regions (and -R, --regions-file) option should never create unsorted VCFs or duplicates records again. This also fixes rare cases where a spanning deletion makes a subsequent record invisible to bcftools isec and other commands.
+ Additions to filtering and formatting expressions
* support for the spanning deletion alternate allele (ALT=*)
* new ILEN filtering expression to be able to filter by indel length
* new MEAN, MEDIAN, MODE, STDEV, phred filtering functions
* new formatting expression %PBINOM (phred-scaled binomial probability), %INFO (the whole INFO column), %FORMAT (the whole FORMAT column), %END (end position of the REF allele), %END0 (0-based end position of the REF allele), %MASK (with multiple files indicates the presence of the site in other files)
+ New plugins
* +gvcfz: compress gVCF file by resizing gVCF blocks according to specified criteria
* +indel-stats: collect various indel-specific statistics
* +parental-origin: determine parental origin of a CNV region
* +remove-overlaps: remove overlapping variants.
* +split-vep: query structured annotations such INFO/CSQ created by bcftools/csq or VEP
* +trio-dnm: screen variants for possible de-novo mutations in trios
+ annotate
* new -l, --merge-logic option for combining multiple overlapping regions
+ call
* new bcftools call -G, --group-samples option which allows grouping samples into populations and applying the HWE assumption within but not across the groups.
+ csq
* significant reduction of memory usage in the local -l mode for VCFs with thousands of samples and 20% reduction in the non-local haplotype-aware mode.
* fixes a small memory leak and formatting issue in FORMAT/BCSQ at sites with many consequences
* do not print protein sequence of start_lost events
* support for "start_retained" consequence
* support for symbolic insertions (ALT="<INS...>"), "feature_elongation" consequence
* new -b, --brief-predictions option to output abbreviated protein predictions.
+ concat
* the --naive command now checks header compatibility when concatenating multiple files.
+ consensus
* add a new -H, --haplotype 1pIu/2pIu feature to output first/second allele for phased genotypes and the IUPAC code for unphased genotypes
* new -p, --prefix option to add a prefix to sequence names on output
+ +contrast
* added support for Fisher's test probability and other annotations
+ +fill-from-fasta
* new -N, --replace-non-ACGTN option
+ +dosage
* fix some serious bugs in dosage calculation
+ +fill-tags
* extended to perform simple on-the-fly calculations such as calculating INFO/DP from FORMAT/DP.
+ merge
* add support for merging FORMAT strings
* bug fixed in gVCF merging
+ mpileup
* a new optional SCR annotation for the number of soft-clipped reads
+ reheader
* new -f, --fai option for updating contig lines in the VCF header
+ +trio-stats
* extend output to include DNM homs and recurrent DNMs
+ VariantKey support
OBS-URL: https://build.opensuse.org/request/show/770397
OBS-URL: https://build.opensuse.org/package/show/science/bcftools?expand=0&rev=7
2020-02-05 21:28:46 +00:00
|
|
|
# The “Source code” downloads links generated by GitHub and are incomplete as they don't bundle HTSlib and are missing some generated files
|
|
|
|
|
Source: https://github.com/samtools/bcftools/releases/download/%{version}/bcftools-%{version}.tar.bz2
|
2020-02-12 17:40:04 +00:00
|
|
|
# PATCH-FIX-OPENSUSE use_python3.patch -- Use python3 executable instead of python2
|
|
|
|
|
Patch0: use_python3.patch
|
2021-05-16 16:34:09 +00:00
|
|
|
BuildRequires: automake
|
2016-05-22 21:08:46 +00:00
|
|
|
BuildRequires: gsl-devel
|
2017-07-13 23:07:50 +00:00
|
|
|
BuildRequires: libbz2-devel
|
2022-09-09 14:20:13 +00:00
|
|
|
BuildRequires: libhts-devel >= %{version}
|
2017-07-13 23:07:50 +00:00
|
|
|
BuildRequires: lzma-devel
|
2016-05-22 21:08:46 +00:00
|
|
|
BuildRequires: zlib-devel
|
2018-07-13 09:05:18 +00:00
|
|
|
Requires: bgzip
|
|
|
|
|
Requires: htsfile
|
2025-04-02 13:44:43 +00:00
|
|
|
Requires: perl-base
|
2020-02-25 11:46:49 +00:00
|
|
|
Requires: python3-base
|
|
|
|
|
Requires: python3-matplotlib
|
2018-07-13 09:05:18 +00:00
|
|
|
Requires: tabix
|
2016-05-22 21:08:46 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Package for the new BCFtools: a set of utilities that manipulate variant calls in the Variant Call Format (VCF)
|
|
|
|
|
and its binary counterpart BCF. It contains all the "vcf..." commands which previously lived in the HTSlib
|
|
|
|
|
repository (such as vcfcheck, vcfmerge, vcfisec, etc.) and the samtools BCF calling from bcftools subdirectory
|
|
|
|
|
of samtools. BCFtools are meant as a faster replacement for most of the perl VCFtools commands.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-02-12 17:40:04 +00:00
|
|
|
%autosetup -p1
|
2016-05-22 21:08:46 +00:00
|
|
|
|
|
|
|
|
%build
|
2021-05-16 16:34:09 +00:00
|
|
|
autoreconf -fi
|
2018-07-13 09:05:18 +00:00
|
|
|
%configure --with-htslib=system
|
2022-09-09 14:20:13 +00:00
|
|
|
%make_build USE_GSL=1
|
2016-05-22 21:08:46 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install prefix=%{_prefix} libexecdir=%{_libdir} libdir=%{_libdir}
|
|
|
|
|
|
2018-07-13 09:05:18 +00:00
|
|
|
# CONVERT env HASHBANGS TO USE DIRECT EXECUTABLE
|
2022-04-21 17:09:36 +00:00
|
|
|
sed -i "s:/usr/bin/env perl:%{_bindir}/perl:" %{buildroot}/%{_bindir}/*.pl %{buildroot}/%{_bindir}/plot-vcfstats
|
|
|
|
|
sed -i -E "s:/usr/bin/env python3?:%{_bindir}/python3:" %{buildroot}/%{_bindir}/*.py
|
2018-07-13 09:05:18 +00:00
|
|
|
|
2016-05-22 21:08:46 +00:00
|
|
|
%files
|
2018-07-13 09:05:18 +00:00
|
|
|
%license LICENSE
|
2025-04-02 13:44:43 +00:00
|
|
|
%doc AUTHORS README NEWS
|
2016-05-22 21:08:46 +00:00
|
|
|
%{_bindir}/bcftools
|
2017-07-13 23:07:50 +00:00
|
|
|
%{_bindir}/*.py
|
2016-05-22 21:08:46 +00:00
|
|
|
%{_bindir}/*.pl
|
|
|
|
|
%{_bindir}/plot-vcfstats
|
2022-09-09 14:20:13 +00:00
|
|
|
%{_libdir}/bcftools/
|
2016-05-22 21:08:46 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
%changelog
|