Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions bin/check_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
adapted from: https://github.com/nf-core/chipseq/blob/51eba00b32885c4d0bec60db3cb0a45eb61e34c5/bin/check_samplesheet.py
"""

import collections
import os
import errno
Expand Down Expand Up @@ -106,9 +107,14 @@ def check_samplesheet(file_in, file_out):
if fastq:
if fastq.find(" ") != -1:
print_error("FastQ file contains spaces!", "Line", line)
if not fastq.endswith(".fastq.gz") and not fastq.endswith(".fq.gz"):
if not (
fastq.endswith(".fastq.gz")
or fastq.endswith(".fq.gz")
or fastq.endswith(".fastq")
or fastq.endswith(".fq")
):
print_error(
"FastQ file does not have extension '.fastq.gz' or '.fq.gz'!",
"FastQ file does not have extension '.fastq.gz', '.fq.gz', '.fastq', or '.fq'!",
"Line",
line,
)
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ The following columns are required:

- `sample`: sample ID; does not need to be a unique column.
- `rep`: replicate number of sample ID; does not need to be a unique column.
- `fastq_1`: absolute path to R1 of sample ID.
- `fastq_2`: absolute path to R2 of sample ID (optional, only for paired-end reads).
- `fastq_1`: absolute path to R1 of sample ID. Files can be in compressed (`.fastq.gz`, `.fq.gz`) or uncompressed (`.fastq`, `.fq`) format.
- `fastq_2`: absolute path to R2 of sample ID (optional, only for paired-end reads). Files can be in compressed (`.fastq.gz`, `.fq.gz`) or uncompressed (`.fastq`, `.fq`) format.
- `antibody`: name of the antibody used for the sample.
- `input`: the sampleID of the input control; this must match a sample in the sheet.

Expand Down
Loading