diff --git a/docs/changelog.md b/docs/changelog.md index 0acd17dd..831b7165 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,6 +1,11 @@ # Change log All notable changes to this project will be documented in this file. +## [0.9.1] -- 2020-07-13 + +### Changed + - Fixed logic for no prealignments on first run + ## [0.9.0] -- 2020-05-26 ### Added diff --git a/docs/usage.md b/docs/usage.md index 6948ac8d..a1122425 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -21,7 +21,7 @@ usage: pepatac.py [-h] [-R] [-N] [-D] [-F] [-T] [--silent] [--verbosity V] [--no-scale] [--prioritize] [--keep] [--noFIFO] [--lite] [-V] -PEPATAC version 0.9.0 +PEPATAC version 0.9.1 optional arguments: -h, --help show this help message and exit diff --git a/pipelines/pepatac.py b/pipelines/pepatac.py index 2dd935a6..943e625f 100755 --- a/pipelines/pepatac.py +++ b/pipelines/pepatac.py @@ -5,7 +5,7 @@ __author__ = ["Jin Xu", "Nathan Sheffield", "Jason Smith"] __email__ = "jasonsmith@virginia.edu" -__version__ = "0.9.0" +__version__ = "0.9.1" from argparse import ArgumentParser @@ -874,8 +874,10 @@ def main(): os.chmod(tempdir, 0o771) pm.clean_add(tempdir) - unmap_fq1 = unmap_fq1 + ".gz" - unmap_fq2 = unmap_fq2 + ".gz" + # If there are no prealignments, unmap_fq1 will be unzipped + if pypiper.is_gzipped_fastq(unmap_fq1): + unmap_fq1 = unmap_fq1 + ".gz" + unmap_fq2 = unmap_fq2 + ".gz" bt2_index = os.path.join(rgc.seek(args.genome_assembly, BT2_IDX_KEY)) if not bt2_index.endswith(args.genome_assembly): diff --git a/usage.txt b/usage.txt index 3c0da0ec..6c31a986 100644 --- a/usage.txt +++ b/usage.txt @@ -13,7 +13,7 @@ usage: pepatac.py [-h] [-R] [-N] [-D] [-F] [-T] [--silent] [--verbosity V] [--no-scale] [--prioritize] [--keep] [--noFIFO] [--lite] [-V] -PEPATAC version 0.9.0 +PEPATAC version 0.9.1 optional arguments: -h, --help show this help message and exit