isugifNF / polishCLR

A nextflow pipeline for polishing CLR assemblies
https://isugifnf.github.io/polishCLR/
16 stars 4 forks source link

Generalizable split #59

Closed j23414 closed 1 year ago

j23414 commented 1 year ago

Description

Concatenate and split a combination of fasta files

Different steps of the pipeline requires concatenating and separating a combination of fasta files:

Originally we had specialized merge and split processes to deal with Case 1, 2, or 3 depending on if some or all of the above input files were provided. To clean up the code base, created generalized and reusable functions:

Setting the publish directories

Other changes include moving

process taskname {
  publishDir "params.outdir/subdirectoryname"
  ...
}

into a separate configs/publishdir.config file, so that it is easier to restructure the final output folders.

Other changes

Put parameter variables in the help statement "[default $params.variablename]" to avoid a situation such that the help statement becomes out of sync with the actual default values.

Testing

Sivanandan commented 1 year ago

This passed on PGOS, so merged it.