pybcf 1.3.5__tar.gz → 1.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pybcf-1.3.7/MANIFEST.in +20 -0
- {pybcf-1.3.5/src/pybcf.egg-info → pybcf-1.3.7}/PKG-INFO +13 -2
- {pybcf-1.3.5 → pybcf-1.3.7}/setup.py +12 -8
- {pybcf-1.3.5 → pybcf-1.3.7}/src/gzstream.cpp +24 -18
- {pybcf-1.3.5 → pybcf-1.3.7}/src/gzstream.h +4 -1
- {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf/reader.cpp +9908 -10415
- {pybcf-1.3.5 → pybcf-1.3.7/src/pybcf.egg-info}/PKG-INFO +13 -2
- pybcf-1.3.7/src/pybcf.egg-info/SOURCES.txt +203 -0
- pybcf-1.3.7/src/zlib-ng/CMakeLists.txt +1424 -0
- pybcf-1.3.7/src/zlib-ng/Makefile.in +406 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/Makefile.in +78 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/acle_intrins.h +35 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/adler32_neon.c +215 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/arm_features.c +115 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/arm_features.h +16 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/arm_functions.h +65 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/chunkset_neon.c +99 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/compare256_neon.c +60 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/crc32_acle.c +78 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/neon_intrins.h +65 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/slide_hash_armv6.c +47 -0
- pybcf-1.3.7/src/zlib-ng/arch/arm/slide_hash_neon.c +46 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/Makefile.in +75 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/adler32_c.c +54 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/adler32_fold_c.c +15 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/chunk_permute_table.h +53 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/chunkset_c.c +42 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/compare256_c.c +181 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/crc32_braid_c.c +215 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/crc32_fold_c.c +31 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/generic_functions.h +106 -0
- pybcf-1.3.7/src/zlib-ng/arch/generic/slide_hash_c.c +52 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/Makefile.in +93 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/adler32_power8.c +153 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/adler32_vmx.c +186 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/chunkset_power8.c +55 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/compare256_power9.c +66 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/crc32_constants.h +1123 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/crc32_power8.c +589 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/fallback_builtins.h +31 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/power_features.c +49 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/power_features.h +18 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/power_functions.h +67 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/slide_hash_power8.c +12 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/slide_hash_vmx.c +10 -0
- pybcf-1.3.7/src/zlib-ng/arch/power/slide_ppc_tpl.h +31 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/adler32_rvv.c +132 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/chunkset_rvv.c +121 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/compare256_rvv.c +49 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/riscv_features.c +52 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/riscv_features.h +18 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/riscv_functions.h +49 -0
- pybcf-1.3.7/src/zlib-ng/arch/riscv/slide_hash_rvv.c +32 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/Makefile.in +48 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/crc32-vx.c +222 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_common.h +119 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_deflate.c +383 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_deflate.h +58 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_detail.h +275 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_inflate.c +191 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_inflate.h +67 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/s390_features.c +14 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/s390_features.h +14 -0
- pybcf-1.3.7/src/zlib-ng/arch/s390/s390_functions.h +20 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/Makefile.in +140 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx2.c +145 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx2_p.h +32 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx512.c +108 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx512_p.h +46 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx512_vnni.c +210 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_sse42.c +120 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_ssse3.c +156 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_ssse3_p.h +29 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/chunkset_avx2.c +133 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/chunkset_sse2.c +56 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/chunkset_ssse3.c +93 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/compare256_avx2.c +64 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/compare256_sse2.c +97 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_fold_pclmulqdq_tpl.h +199 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_fold_vpclmulqdq_tpl.h +107 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_pclmulqdq.c +30 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_pclmulqdq_tpl.h +375 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_vpclmulqdq.c +17 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/slide_hash_avx2.c +39 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/slide_hash_sse2.c +62 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/x86_features.c +115 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/x86_features.h +28 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/x86_functions.h +172 -0
- pybcf-1.3.7/src/zlib-ng/arch/x86/x86_intrins.h +87 -0
- pybcf-1.3.7/src/zlib-ng/cmake/detect-arch.c +115 -0
- pybcf-1.3.7/src/zlib-ng/cmake/detect-arch.cmake +104 -0
- pybcf-1.3.7/src/zlib-ng/cmake/detect-coverage.cmake +46 -0
- pybcf-1.3.7/src/zlib-ng/cmake/detect-install-dirs.cmake +43 -0
- pybcf-1.3.7/src/zlib-ng/cmake/detect-intrinsics.cmake +604 -0
- pybcf-1.3.7/src/zlib-ng/cmake/detect-sanitizer.cmake +166 -0
- pybcf-1.3.7/src/zlib-ng/cmake/fallback-macros.cmake +19 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-aarch64.cmake +24 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-arm.cmake +29 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-armhf.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-aarch64.cmake +41 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-armv7.cmake +41 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-i686.cmake +41 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-x86_64.cmake +41 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mingw-i686.cmake +35 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mingw-x86_64.cmake +34 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mips.cmake +29 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mips64.cmake +29 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64-clang.cmake +16 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64-power9.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64le-clang.cmake +16 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64le-power9.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64le.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-riscv.cmake +28 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-s390x.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/cmake/toolchain-sparc64.cmake +25 -0
- pybcf-1.3.7/src/zlib-ng/gzread.c.in +606 -0
- pybcf-1.3.7/src/zlib-ng/zconf-ng.h.in +176 -0
- pybcf-1.3.7/src/zlib-ng/zconf.h.in +206 -0
- pybcf-1.3.7/src/zlib-ng/zlib-config.cmake.in +12 -0
- pybcf-1.3.7/src/zlib-ng/zlib-ng-config.cmake.in +10 -0
- pybcf-1.3.7/src/zlib-ng/zlib-ng.h.in +1871 -0
- pybcf-1.3.7/src/zlib-ng/zlib.h.in +1859 -0
- pybcf-1.3.7/src/zlib-ng/zlib.pc.cmakein +14 -0
- pybcf-1.3.7/src/zlib-ng/zlib.pc.in +14 -0
- pybcf-1.3.7/src/zlib-ng/zlib_name_mangling-ng.h.in +178 -0
- pybcf-1.3.7/src/zlib-ng/zlib_name_mangling.h.empty +8 -0
- pybcf-1.3.7/src/zlib-ng/zlib_name_mangling.h.in +170 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/test/test_indexed.py +14 -0
- pybcf-1.3.5/MANIFEST.in +0 -14
- pybcf-1.3.5/src/pybcf.egg-info/SOURCES.txt +0 -82
- {pybcf-1.3.5 → pybcf-1.3.7}/LICENSE.txt +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/README.md +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/pyproject.toml +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/setup.cfg +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/bcf.cpp +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/bcf.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/header.cpp +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/header.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/index.cpp +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/index.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/info.cpp +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/info.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf/__init__.py +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf/reader.pyx +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf.egg-info/dependency_links.txt +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf.egg-info/requires.txt +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf.egg-info/top_level.txt +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/sample_data.cpp +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/sample_data.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/types.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/variant.cpp +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/variant.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/adler32.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/adler32_p.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/arch_functions.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/chunkset_tpl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/compare256_rle.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/compress.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/cpu_features.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/cpu_features.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_comb.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_comb_p.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_p.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_tbl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_fast.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_huff.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_medium.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_p.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_quick.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_rle.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_slow.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_stored.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/fallback_builtins.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/functable.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/functable.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/gzguts.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/gzlib.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/gzwrite.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/infback.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inffast_tpl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inffixed_tbl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inflate.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inflate.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inflate_p.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inftrees.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inftrees.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/insert_string.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/insert_string_roll.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/insert_string_tpl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/match_tpl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees_emit.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees_tbl.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/uncompr.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zbuild.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zendian.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zutil.c +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zutil.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zutil_p.h +0 -0
- {pybcf-1.3.5 → pybcf-1.3.7}/test/test_pybcf.py +0 -0
pybcf-1.3.7/MANIFEST.in
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# pybcf code
|
|
2
|
+
include MANIFEST.in
|
|
3
|
+
include pyproject.toml
|
|
4
|
+
include src/pybcf/*.cpp
|
|
5
|
+
include src/pybcf/*.py
|
|
6
|
+
include src/pybcf/*.pyx
|
|
7
|
+
include src/*.h
|
|
8
|
+
include src/*.cpp
|
|
9
|
+
include src/gzstream.h
|
|
10
|
+
include src/gzstream.C
|
|
11
|
+
include src/zlib-ng/*.h
|
|
12
|
+
include src/zlib-ng/*.c
|
|
13
|
+
include src/zlib-ng/CMakeLists.txt
|
|
14
|
+
include src/zlib-ng/*.in
|
|
15
|
+
include src/zlib-ng/*.cmakein
|
|
16
|
+
include src/zlib-ng/*.empty
|
|
17
|
+
recursive-include src/zlib-ng/cmake/ *
|
|
18
|
+
recursive-include src/zlib-ng/arch/ *.c
|
|
19
|
+
recursive-include src/zlib-ng/arch/ *.h
|
|
20
|
+
recursive-include src/zlib-ng/arch/ *.in
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pybcf
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.7
|
|
4
4
|
Summary: Package for loading data from bcf files
|
|
5
5
|
Home-page: https://github.com/jeremymcrae/pybcf
|
|
6
6
|
Author: Jeremy McRae
|
|
@@ -13,6 +13,17 @@ License-File: LICENSE.txt
|
|
|
13
13
|
Requires-Dist: numpy
|
|
14
14
|
Provides-Extra: test
|
|
15
15
|
Requires-Dist: pysam; extra == "test"
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: license
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
Dynamic: provides-extra
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: summary
|
|
16
27
|
|
|
17
28
|
|
|
18
29
|
### pybcf
|
|
@@ -13,13 +13,12 @@ from Cython.Build import cythonize
|
|
|
13
13
|
EXTRA_LINK_ARGS = []
|
|
14
14
|
EXTRA_COMPILE_ARGS = []
|
|
15
15
|
if sys.platform == 'linux':
|
|
16
|
-
EXTRA_COMPILE_ARGS = ['-std=c++11', '-I/usr/include']
|
|
16
|
+
EXTRA_COMPILE_ARGS = ['-std=c++11', '-I/usr/include', '-O2']
|
|
17
17
|
elif sys.platform == "darwin":
|
|
18
18
|
EXTRA_COMPILE_ARGS += [
|
|
19
19
|
"-stdlib=libc++",
|
|
20
20
|
"-std=c++11",
|
|
21
|
-
'-
|
|
22
|
-
'-mavx2', # required for macosx testing on github actions
|
|
21
|
+
'-O2',
|
|
23
22
|
"-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1",
|
|
24
23
|
"-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include",
|
|
25
24
|
]
|
|
@@ -29,9 +28,12 @@ elif sys.platform == "darwin":
|
|
|
29
28
|
elif sys.platform == "win32":
|
|
30
29
|
EXTRA_COMPILE_ARGS += ['/std:c++14', '/O2']
|
|
31
30
|
|
|
32
|
-
if platform.machine() == 'x86_64':
|
|
31
|
+
if platform.machine() == 'x86_64' and sys.platform != "darwin":
|
|
33
32
|
EXTRA_COMPILE_ARGS += ['-mavx', '-mavx2']
|
|
34
33
|
|
|
34
|
+
if platform.machine() == 'aarch64' and sys.platform == "linux":
|
|
35
|
+
EXTRA_COMPILE_ARGS += ['-flax-vector-conversions']
|
|
36
|
+
|
|
35
37
|
def build_zlib():
|
|
36
38
|
''' compile zlib code to object files for linking
|
|
37
39
|
|
|
@@ -47,15 +49,17 @@ def build_zlib():
|
|
|
47
49
|
cmd = ['cmake', '-S', source_dir, '-B', build_dir,
|
|
48
50
|
'-DZLIB_COMPAT=ON',
|
|
49
51
|
'-DZLIB_ENABLE_TESTS=OFF',
|
|
50
|
-
|
|
52
|
+
'-DBUILD_SHARED_LIBS=OFF',
|
|
53
|
+
'-DCMAKE_C_FLAGS="-fPIC"',
|
|
51
54
|
]
|
|
52
55
|
subprocess.run(cmd)
|
|
53
|
-
subprocess.run(['cmake', '--build', build_dir, '--config', 'Release'])
|
|
56
|
+
subprocess.run(['cmake', '--build', build_dir, '-v', '--config', 'Release'])
|
|
54
57
|
os.chdir(cur_dir)
|
|
55
58
|
|
|
56
59
|
objs = [str(build_dir / 'libz.a')]
|
|
57
60
|
if sys.platform == 'win32':
|
|
58
|
-
objs = [str(build_dir / 'Release' / '
|
|
61
|
+
objs = [str(build_dir / 'Release' / 'zlibstatic.lib'),
|
|
62
|
+
]
|
|
59
63
|
|
|
60
64
|
return str(build_dir), objs
|
|
61
65
|
|
|
@@ -82,7 +86,7 @@ setup(name='pybcf',
|
|
|
82
86
|
description='Package for loading data from bcf files',
|
|
83
87
|
long_description=io.open('README.md', encoding='utf-8').read(),
|
|
84
88
|
long_description_content_type='text/markdown',
|
|
85
|
-
version='1.3.
|
|
89
|
+
version='1.3.7',
|
|
86
90
|
author='Jeremy McRae',
|
|
87
91
|
author_email='jmcrae@illumina.com',
|
|
88
92
|
license="MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
#include <iostream>
|
|
31
31
|
#include <string.h> // for memcpy
|
|
32
32
|
#include <stdexcept>
|
|
33
|
-
|
|
34
|
-
#include <
|
|
33
|
+
|
|
34
|
+
#include <iostream>
|
|
35
35
|
|
|
36
36
|
#ifdef GZSTREAM_NAMESPACE
|
|
37
37
|
namespace GZSTREAM_NAMESPACE {
|
|
@@ -54,6 +54,11 @@ void get_fmode( char* fmode, int open_mode) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
gzstreambuf* gzstreambuf::open( const char* name, int open_mode) {
|
|
57
|
+
filename = std::string(name);
|
|
58
|
+
// const size_t n = strlen(name); // excludes null terminator
|
|
59
|
+
// filename = new char[n + 1]{}; // {} zero initializes array
|
|
60
|
+
// std::copy_n(name, n, filename);
|
|
61
|
+
|
|
57
62
|
if ( is_open())
|
|
58
63
|
return (gzstreambuf*)0;
|
|
59
64
|
mode = open_mode;
|
|
@@ -61,10 +66,13 @@ gzstreambuf* gzstreambuf::open( const char* name, int open_mode) {
|
|
|
61
66
|
if ((mode & std::ios::ate) || (mode & std::ios::app)
|
|
62
67
|
|| ((mode & std::ios::in) && (mode & std::ios::out)))
|
|
63
68
|
return (gzstreambuf*)0;
|
|
64
|
-
char fmode[10];
|
|
65
69
|
get_fmode(fmode, mode);
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
handle = fopen(filename.c_str(), fmode);
|
|
71
|
+
if (!handle) {
|
|
72
|
+
return 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
file = gzdopen(fileno(handle), fmode);
|
|
68
76
|
if (file == 0)
|
|
69
77
|
return (gzstreambuf*)0;
|
|
70
78
|
opened = 1;
|
|
@@ -90,20 +98,18 @@ void gzstreambuf::seek(bcf::Offsets offset) {
|
|
|
90
98
|
buffer + 4, // read position
|
|
91
99
|
buffer + 4); // end position
|
|
92
100
|
|
|
93
|
-
//
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
// open a new gzfile object using the file descriptor (at new offset)
|
|
102
|
-
char fmode[10];
|
|
103
|
-
get_fmode(fmode, mode);
|
|
104
|
-
file = gzdopen(new_fd, fmode);
|
|
105
|
-
fd = new_fd;
|
|
101
|
+
// close old gzfile object and associated file handle
|
|
102
|
+
fclose(handle);
|
|
103
|
+
gzclose(file);
|
|
104
|
+
|
|
105
|
+
// open new file handle, and seek to an offset in the compressed file
|
|
106
|
+
handle = fopen(filename.c_str(), fmode);
|
|
107
|
+
fseek(handle, offset.c_offset, SEEK_SET);
|
|
108
|
+
ftell(handle);
|
|
106
109
|
|
|
110
|
+
// open new gzfile object using the file descriptor (at new offset);
|
|
111
|
+
file = gzdopen(fileno(handle), fmode);
|
|
112
|
+
|
|
107
113
|
if (file == 0) {
|
|
108
114
|
throw std::invalid_argument("cannot seek within this gzfile");
|
|
109
115
|
}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
#include <iostream>
|
|
34
34
|
#include <string>
|
|
35
35
|
#include <fstream>
|
|
36
|
+
#include <cstdio>
|
|
36
37
|
#include "zlib.h"
|
|
37
38
|
|
|
38
39
|
#include "index.h"
|
|
@@ -54,7 +55,9 @@ private:
|
|
|
54
55
|
char buffer[bufferSize]; // data buffer
|
|
55
56
|
char opened; // open/close state of stream
|
|
56
57
|
int mode; // I/O mode
|
|
57
|
-
|
|
58
|
+
char fmode[10];
|
|
59
|
+
FILE * handle;
|
|
60
|
+
std::string filename;
|
|
58
61
|
public:
|
|
59
62
|
gzstreambuf() : opened(0) {
|
|
60
63
|
setp( buffer, buffer + (bufferSize-1));
|