Skip to content

Commit

Permalink
Bump htslib to 1.16 for MM parsing improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw85 committed Sep 23, 2022
1 parent 5bc18a3 commit 41a800d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 28 deletions.
10 changes: 8 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,24 @@ deploy-checks:
conda:
extends: .deploy-conda-linux
variables:
RECIPEPATH: "../conda"
before_script:
- *prep-image
- export CONDA_PKG=${CI_PROJECT_NAME}
- export CONDA_PKG_VERSION=${CI_COMMIT_TAG/v/}
- cd conda
- mkdir conda-build
- cd conda-build

conda-mac:
extends: .deploy-conda-mac
variables:
RECIPEPATH: "../conda"
before_script:
- export CONDA_PKG=${CI_PROJECT_NAME}
- export CONDA_PKG_VERSION=${CI_COMMIT_TAG/v/}
- cd conda
- mkdir conda-build
- cd conda-build

### Python

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.6.3]
### Changed
- Bumped htslib version to version 1.16 for fixes to MM tag parsing/validation.
- Change conda build back to bioconda::htslib since we're using a released version.

## [v0.6.2]
### Fixed
- Off-by-one in pointless BED field.
Expand Down
20 changes: 10 additions & 10 deletions conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

NAME=modbam2bed

# self-built htslib
export HTS_CONF_ARGS="--prefix=${PREFIX} --enable-libcurl --with-libdeflate --enable-plugins --enable-gcs --enable-s3"
export EXTRA_CFLAGS="-I$PREFIX/include"
export EXTRA_LDFLAGS="-L$PREFIX/lib"
export EXTRA_LIBS="-ldl -lhts -ldeflate"
#export STATIC_HTSLIB=""

## just link to htslib from bioconda
## self-built htslib
#export HTS_CONF_ARGS="--prefix=${PREFIX} --enable-libcurl --with-libdeflate --enable-plugins --enable-gcs --enable-s3"
#export EXTRA_CFLAGS="-I$PREFIX/include"
#export STATIC_HTSLIB=""
#export EXTRA_LDFLAGS="-L$PREFIX/lib"
#export EXTRA_LIBS="-ldl -lhts"
#export EXTRA_LIBS="-ldl -lhts -ldeflate"
##export STATIC_HTSLIB=""

# just link to htslib from bioconda
export EXTRA_CFLAGS="-I$PREFIX/include"
export STATIC_HTSLIB=""
export EXTRA_LDFLAGS="-L$PREFIX/lib"
export EXTRA_LIBS="-ldl -lhts"

OS=$(uname)
if [[ "$OS" == "Darwin" ]]; then
Expand Down
28 changes: 14 additions & 14 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ requirements:
# other things, even when we build our own. When
# using bioconda htslib the other things can be
# removed from here
- bioconda::htslib>=1.14
- libcurl
- bzip2
- xz
- zlib
- libdeflate
- openssl # [not osx]
- bioconda::htslib>=1.16
# - libcurl
# - bzip2
# - xz
# - zlib
# - libdeflate
# - openssl # [not osx]
run:
- bioconda::htslib>=1.14
- libcurl
- bzip2
- xz
- zlib
- libdeflate
- openssl # [not osx]
- bioconda::htslib>=1.16
# - libcurl
# - bzip2
# - xz
# - zlib
# - libdeflate
# - openssl # [not osx]

test:
commands:
Expand Down
2 changes: 1 addition & 1 deletion modbampy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import libmodbampy

# remember to bump version in src/version.h too
__version__ = "0.6.2"
__version__ = "0.6.3"
ffi = libmodbampy.ffi
libbam = libmodbampy.lib

Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// remember to bump version in modbampy/__init__.py too
const char *argp_program_version = "0.6.2";
const char *argp_program_version = "0.6.3";

0 comments on commit 41a800d

Please sign in to comment.