nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

sort published files so common bioinformatics indexes are processed at the end.

Open lindenb opened this issue 2 years ago • 2 comments

Hi, this small PR is related to the following issue:

https://github.com/nextflow-io/nextflow/issues/1489

When publishing a set of paths, reorder the files so the common indexes (TBI, BAI,CSI...) are copied at the end, so the timestamps of the files are always older than their indexes (otherwise most tools will fail or emit a warning)

I understand that this is specific to bioinformatics, feel free to reject the PR.

I'm not a groovy programmer so I hope it's the right way and the right place to insert that code. I'm not even sure the files are copied in the order of the List :sweat_smile:

P.

lindenb avatar May 04 '22 16:05 lindenb

I'm find with this but it should be enabled by adding a sort option to the publishDir

pditommaso avatar May 04 '22 16:05 pditommaso

@pditommaso thanks,

I'll try to add the option in the next days.

lindenb avatar May 04 '22 17:05 lindenb