Skip to content

Commit

Permalink
made validator fastq extentsion checks consistent with manifest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaobo Xu committed Nov 26, 2018
1 parent ba1d59d commit 80b94b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGES

## 1.4.1

* `validator` now allows upper case in FastQ file name extensions

## 1.4.0

* Correct base config for file types accepted. File_2 should only accept `f(?:ast)q.gz` (upper/lower)
Expand Down
3 changes: 2 additions & 1 deletion cgp_seq_input_val/seq_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def _prep(self):
full_ext = ext
(base, ext) = os.path.splitext(base)

if ext not in ('.fastq', '.fq'):
if ext.lower() not in ('.fastq', '.fq'):
# This check should be consistent with FastQ file extension restrictions in manifest.py
raise SeqValidationError("Input files must be fastq|fq[.gz]")

full_ext = ext + full_ext
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'url': 'https://github.com/cancerit/cgp_seq_input_val',
'download_url': '',
'author_email': '[email protected]',
'version': '1.4.0',
'version': '1.4.1',
'python_requires': '>= 3.6',
'setup_requires': ['pytest'],
'install_requires': ['progressbar2', 'xlrd', 'xopen'],
Expand Down

0 comments on commit 80b94b9

Please sign in to comment.