Skip to content

Commit 588e470

Browse files
authored
Merge pull request #564 from nf-core/single-tsv-validation
Added check only single TSV is supplied.
2 parents cf41572 + b10f704 commit 588e470

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/usage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ and samples.
602602
The use of the TSV `--input` method is recommended to be used when performing
603603
more complex procedures such as lane or library merging. You do not need to
604604
specify `--single_end`, `--bam`, `--colour_chemistry`, `-udg_type` etc. when
605-
using TSV input - this is defined within the TSV file itself.
605+
using TSV input - this is defined within the TSV file itself. You can only
606+
supply a single TSV per run (i.e. `--input '*.tsv'` will not work).
606607

607608
This TSV should look like the following:
608609

main.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ ch_input_sample = Channel.empty()
589589
if (tsv_path) {
590590

591591
tsv_file = file(tsv_path)
592+
593+
if (tsv_file instanceof List) exit 1, "[nf-core/eager] error: can only accept one TSV file per run."
592594
if (!tsv_file.exists()) exit 1, "[nf-core/eager] error: input TSV file could not be found. Does the file exist or in the right place? You gave the path: ${params.input}"
593595

594596
ch_input_sample = extract_data(tsv_path)

0 commit comments

Comments
 (0)