Skip to content

Commit b10f704

Browse files
committed
Added check only single TSV is supplied.
1 parent cf7d057 commit b10f704

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
@@ -601,7 +601,8 @@ and samples.
601601
The use of the TSV `--input` method is recommended to be used when performing
602602
more complex procedures such as lane or library merging. You do not need to
603603
specify `--single_end`, `--bam`, `--colour_chemistry`, `-udg_type` etc. when
604-
using TSV input - this is defined within the TSV file itself.
604+
using TSV input - this is defined within the TSV file itself. You can only
605+
supply a single TSV per run (i.e. `--input '*.tsv'` will not work).
605606

606607
This TSV should look like the following:
607608

main.nf

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

590590
tsv_file = file(tsv_path)
591+
592+
if (tsv_file instanceof List) exit 1, "[nf-core/eager] error: can only accept one TSV file per run."
591593
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}"
592594

593595
ch_input_sample = extract_data(tsv_path)

0 commit comments

Comments
 (0)