Closed grendon closed 3 years ago
Something like:
params.singleEnd = true /*options: true|false. true = the input type is single end reads; false = the input type is paired reads*/
Inside the process you need to execute one command when the input is single end reads and a different command(s) when the input is paired end reads. An example is shown here: https://www.nextflow.io/docs/latest/process.html#conditional-scripts.
Also, Picard's samtofastq, would be preferable with paired reads because it can also output unpaired reads. See: https://broadinstitute.github.io/picard/command-line-overview.html#SamToFastq
So, the snippet of code for the paired end option would include three steps:
done in dev branch
done
Something like:
params.singleEnd = true /*options: true|false. true = the input type is single end reads; false = the input type is paired reads*/
Inside the process you need to execute one command when the input is single end reads and a different command(s) when the input is paired end reads. An example is shown here: https://www.nextflow.io/docs/latest/process.html#conditional-scripts.
Also, Picard's samtofastq, would be preferable with paired reads because it can also output unpaired reads. See: https://broadinstitute.github.io/picard/command-line-overview.html#SamToFastq
So, the snippet of code for the paired end option would include three steps: