-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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
- Identify which parameters you will include in
nextflow.configwhich the user can change to tweak trimming. - Add the
adapters.fafile tobin/adapters.fa. * - Construct a basic nextflow script to perform trimming
- Add the boolean parameter
trim_fastqto thenextflow.configand use as a conditional to run the processes. - Add the boolean parameter
save_trimmed_readsto thenextflow.config, use this in thepublishDirdirective. - Once your test script is running, integrate to
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.