The workflow would benefit from having an adapter trimming tool.
bbduk.sh should be installed in the container, use this tool to perform adapter trimming and read filtering. There are multiple parameters that can be passed to the bbduk.sh script which can be stored in the nextflow.config file (use sensible default parameters for users to overwrite).
You will also need to use conditionals in the script - we want to have the option to skip read filtering if re-running the workflow/working with cleaned reads as input.
To do
For inspiration, you can inspect my circrna workflow which includes the features described above.
* A copy of the adatpers file is located here. Set this parameter as "${projectDir}/bin/adapters.fa" to stage the file in the workflow.
The workflow would benefit from having an adapter trimming tool.
bbduk.shshould be installed in the container, use this tool to perform adapter trimming and read filtering. There are multiple parameters that can be passed to thebbduk.shscript which can be stored in thenextflow.configfile (use sensible default parameters for users to overwrite).You will also need to use conditionals in the script - we want to have the option to skip read filtering if re-running the workflow/working with cleaned reads as input.
To do
nextflow.configwhich the user can change to tweak trimming.adapters.fafile tobin/adapters.fa. *trim_fastqto thenextflow.configand use as a conditional to run the processes.save_trimmed_readsto thenextflow.config, use this in thepublishDirdirective.main.nfand open a PR.For inspiration, you can inspect my circrna workflow which includes the features described above.
* A copy of the adatpers file is located here. Set this parameter as
"${projectDir}/bin/adapters.fa"to stage the file in the workflow.