Skip to content
Commits on Source (3)
nanopolish (0.9.0-1) UNRELEASED; urgency=medium
nanopolish (0.9.0-1) unstable; urgency=medium
* New upstream version 0.9.0
* New upstream version
* Refresh patches
* Bump upstream copyright year
* Bump minimum required fast5 version
* Include upstream patch to fix HDF5 errors appearing in autopkgtest
-- Afif Elghraoui <afif@debian.org> Sat, 17 Feb 2018 18:06:03 -0500
-- Afif Elghraoui <afif@debian.org> Sat, 17 Feb 2018 22:02:10 -0500
nanopolish (0.8.5-2) unstable; urgency=low
......
......@@ -6,7 +6,7 @@ Uploaders: Afif Elghraoui <afif@debian.org>
Build-Depends:
debhelper (>= 10),
zlib1g-dev,
libfast5-dev (>= 0.6.4),
libfast5-dev (>= 0.6.5),
libhts-dev,
libeigen3-dev,
Standards-Version: 4.1.3
......
From 303971c245d507988132ad8404f840461ff4d87d Mon Sep 17 00:00:00 2001
From: Jared Simpson <jared.simpson@gmail.com>
Date: Sat, 17 Feb 2018 21:48:45 -0500
Subject: [PATCH] check for existence of group before opening it (#335)
---
src/common/nanopolish_fast5_io.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/common/nanopolish_fast5_io.cpp b/src/common/nanopolish_fast5_io.cpp
index 0144062..7f38719 100644
--- a/src/common/nanopolish_fast5_io.cpp
+++ b/src/common/nanopolish_fast5_io.cpp
@@ -208,6 +208,13 @@ std::string fast5_get_fixed_string_attribute(hid_t hdf5_file, const std::string&
int ret;
std::string out;
+ // according to http://hdf-forum.184993.n3.nabble.com/check-if-dataset-exists-td194725.html
+ // we should use H5Lexists to check for the existence of a group/dataset using an arbitrary path
+ ret = H5Lexists(hdf5_file, group_name.c_str(), H5P_DEFAULT);
+ if(ret <= 0) {
+ return "";
+ }
+
// Open the group /Raw/Reads/Read_nnn
group = H5Gopen(hdf5_file, group_name.c_str(), H5P_DEFAULT);
if(group < 0) {
add-shebang-to-script.patch
reproducible.patch
hdf5-groupcheck.patch