Skip to content

Commit bab7854

Browse files
Merge pull request #110 from mahesh-panchal/add_rundir
Update rundir to accept either tar file or directory
2 parents ae2d549 + 04d8375 commit bab7854

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Initial release of nf-core/seqinspector, created with the [nf-core](https://nf-c
2121
- [#53](https://github.com/nf-core/seqinspector/pull/53) Add FastQ-Screen database multiplexing and limit scope of nf-test in CI.
2222
- [#96](https://github.com/nf-core/seqinspector/pull/96) Added missing citations to citation tool
2323
- [#103](https://github.com/nf-core/seqinspector/pull/103) Configure full-tests
24+
- [#110](https://github.com/nf-core/seqinspector/pull/110) Update input schema to accept either tar file or directory as rundir, and fastq messages and patterns.
2425

2526
### `Fixed`
2627

assets/schema_input.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,31 @@
1717
"type": "string",
1818
"format": "file-path",
1919
"exists": true,
20-
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
21-
"errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
20+
"pattern": "\\.f(ast)?q\\.gz$",
21+
"errorMessage": "FastQ files for read 1 must be provided and must have extension '.fq.gz' or '.fastq.gz'"
2222
},
2323
"fastq_2": {
2424
"type": "string",
2525
"format": "file-path",
2626
"exists": true,
27-
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
28-
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
27+
"pattern": "\\.f(ast)?q\\.gz$",
28+
"errorMessage": "FastQ files for read 2 are optional and must have extension '.fq.gz' or '.fastq.gz' if provided"
2929
},
3030
"rundir": {
31-
"type": "string",
32-
"format": "path",
33-
"exists": true,
34-
"errorMessage": "Run directory must be a path",
31+
"oneOf": [
32+
{
33+
"type": "string",
34+
"format": "file-path",
35+
"exists": true,
36+
"pattern": "\\.tar\\.gz$"
37+
},
38+
{
39+
"type": "string",
40+
"format": "directory-path",
41+
"exists": true
42+
}
43+
],
44+
"errorMessage": "Run directory must be a path or tar directory",
3545
"meta": ["rundir"]
3646
},
3747
"tags": {

0 commit comments

Comments
 (0)