diff --git a/CHANGES.md b/CHANGES.md index d36fe1e..132c6d9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # CHANGES +## 2.0.6 +* Added explicit file handler close to avoid empty files in the results archive + ## 2.0.5 * Updated version tag in setup.py ## 2.0.4 diff --git a/pyCRISPRcleanR/staticMethods.py b/pyCRISPRcleanR/staticMethods.py index 9e25217..41a02b9 100644 --- a/pyCRISPRcleanR/staticMethods.py +++ b/pyCRISPRcleanR/staticMethods.py @@ -482,6 +482,8 @@ def write_results(result_cfg, outdir): f.write(cfg['table_row_folders'].format(**rows)) f.write(cfg['footer']) + # added explicit close to include file in the results archive + f.close() # crete final results tar file... StaticMthods._create_tar(outdir + '/' + RESULTS_FILE + file_ext, outdir) except IOError as ioe: diff --git a/setup.py b/setup.py index 929034c..f469d90 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup config = { - 'version': '2.0.5', + 'version': '2.0.6', 'name': 'pyCRISPRcleanR', 'description': 'This is python implementation of CRISPRcleanR package for unsupervised identification and correction of gene independent cell responses to CRISPR-cas9 targeting', 'author': 'Shriram Bhosle',