isugifNF / polishCLR

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

SLURM fails when there are too many contigs #24

Open Astahlke opened 2 years ago

Astahlke commented 2 years ago

We faced this problem with the many contigs of Striacosta, and ultimately aborted that species, but we should try to fix this anyway at some point.

templates/merge_consensus.sh was generating a huge .command.run file when ${windows_fasta} expanded to each individual contig. cat ${windows_fasta} > ${outdir}_consensus.fasta

If .command.run is larger than a certain default value > 5MB, the cluster scheduler produces an error: sbatch: error: Batch job submission failed: Pathname of a file, directory or other parameter too long

Another example of the same issue in a different pipeline More generally discussed here