diff --git a/CHANGELOG.md b/CHANGELOG.md index c80fb43..9475126 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm --- ## [Unreleased] + +--- + +## [5.1.0] - 2024-07-08 ### Added - Add validation flowchart - Add support for unmapped BAM +- Add additional MIME type for GZIP compressed files +- Add support for checksum files formatted with any whitespace separator + --- ## [5.0.0] - 2024-02-16 diff --git a/pipeval/generate_checksum/checksum.py b/pipeval/generate_checksum/checksum.py index e522c8a..400053d 100644 --- a/pipeval/generate_checksum/checksum.py +++ b/pipeval/generate_checksum/checksum.py @@ -29,7 +29,7 @@ def _validate_checksums(path:Path): def _compare_hash(hash_type:str, path:Path, hash_path:Path): ''' Compares existing hash to generated hash ''' # Read only the hash and not the filename for comparison - existing_hash = hash_path.read_text().split(' ')[0].strip() + existing_hash = hash_path.read_text().split()[0].strip() if hash_type == 'md5': return existing_hash == _generate_md5(path) diff --git a/pipeval/validate/files.py b/pipeval/validate/files.py index 9d249be..add2789 100644 --- a/pipeval/validate/files.py +++ b/pipeval/validate/files.py @@ -11,6 +11,7 @@ def _identify_compression(path:Path): ''' Identify compression type and returns appropriate file handler ''' compression_handlers = { 'application/x-gzip': gzip.open, + 'application/gzip': gzip.open, 'application/x-bzip2': bz2.open }