Skip to content

Commit

Permalink
fixing #8
Browse files Browse the repository at this point in the history
  • Loading branch information
d4straub committed Nov 16, 2018
1 parent 1d23373 commit 6f5b5ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,15 @@ if (!params.Q2imported){
/*
* Create a channel for input read files
*/
if(params.readPaths){
if(!params.reads){
Channel
.from(params.readPaths)
.map { row -> [ row[0], [file(row[1][0]), file(row[1][1])]] }
.ifEmpty { exit 1, "params.readPaths was empty - no input files supplied" }
.into { ch_read_pairs; ch_read_pairs_fastqc }
} else {
Channel
.fromFilePairs( params.reads, size: 2 )
.fromFilePairs( params.reads + params.extension, size: 2 )
.ifEmpty { exit 1, "Cannot find any reads matching: ${params.reads}\nNB: Path needs to be enclosed in quotes!" }
.into { ch_read_pairs; ch_read_pairs_fastqc }
}
Expand Down

0 comments on commit 6f5b5ec

Please sign in to comment.