Skip to content

Commit

Permalink
Merge pull request #133 from skrakau/fix_input
Browse files Browse the repository at this point in the history
Fix processing of input parameter
  • Loading branch information
skrakau authored Nov 19, 2020
2 parents 98d5aa0 + e07a04e commit e26244b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## v1.2.0dev - [date]

### `Fixed`

- [#133](https://github.com/nf-core/mag/pull/133) - Fixed processing of `--input` parameter

## v1.1.1 - 2019/11/10

### `Added`
Expand Down
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ if(params.manifest){
}
} else {
Channel
.fromFilePairs(params.reads, size: params.single_end ? 1 : 2)
.ifEmpty { exit 1, "Cannot find any reads matching: ${params.reads}\nNB: Path needs to be enclosed in quotes!\nIf this is single-end data, please specify --single_end on the command line." }
.fromFilePairs(params.input, size: params.single_end ? 1 : 2)
.ifEmpty { exit 1, "Cannot find any reads matching: ${params.input}\nNB: Path needs to be enclosed in quotes!\nIf this is single-end data, please specify --single_end on the command line." }
.into { read_files_fastqc; read_files_fastp }
files_long_raw = Channel.from()
}
Expand Down
3 changes: 3 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ params {
spadeshybrid_fix_cpus = false
metabat_rng_seed = 1

// For testing
input_paths = false

// Boilerplate options
name = false
multiqc_config = false
Expand Down
5 changes: 5 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"description": "Manifest file, required for hybrid assembly with metaSPAdes. Alternative to `--input`.",
"help_text": "Has 4 headerless columns (tab separated): Sample_Id, Long_Reads, Short_Reads_1, Short_Reads_2\n"
},
"input_paths": {
"type": "string",
"description": "Paths to input FastQ files for tests.",
"hidden": true
},
"single_end": {
"type": "boolean",
"description": "Specifies that the input is single-end reads.",
Expand Down

0 comments on commit e26244b

Please sign in to comment.