Repository navigation
feat: add reference into channel to allow multiple refs - #48
Conversation
1e2ac24 to
e274461
Compare
e274461 to
0ad2608
Compare
bobturneruk
left a comment
There was a problem hiding this comment.
Looks good. Couple of questions for my own education, really.
| .ifEmpty { error("cannot find any reads matching ${params.input_single_suffix} in ${params.input_dir}") } | ||
| .map { it -> tuple(it.getName().replaceFirst(/(?i)\.(fastq|fq)\.gz$/, ""), it) } | ||
|
|
||
| ref = channel.fromPath("${params.ref_fasta}").first() |
There was a problem hiding this comment.
Sorry I'm probably missing something obvious, but why .first() here, please?
There was a problem hiding this comment.
That's probably not needed anymore, but was definitely required with the previous setup. It ensures that the channel is a value channel: https://carpentries-incubator.github.io/workflows-nextflow/instructor/03-channels.html#channel-types
| .map { it -> tuple(it[0], it[1]) } | ||
| invalid_model_ch = fastq_files | ||
| .filter { it -> it[4] != "failed" } | ||
| .map { it -> tuple(it[0], it[1], it[3], it[2]) } |
There was a problem hiding this comment.
Again, probably me not undertsanding but why swap the order here and not in the process?
There was a problem hiding this comment.
That is just me avoiding needing to swap over all of the processes in the repo which would be a bit of a pain
A refactor to support multiple references when desired.
Will require changes to the main workflow