bwameth: Add touch command to fix problem with bwameth rejecting older files (#1037)

See https://github.com/nf-core/methylseq/pull/217 for context where this fix was added into the DSL1 methylseq pipeline.
This commit is contained in:
Phil Ewels 2021-11-06 16:05:04 +01:00 committed by GitHub
parent e560fbbc3e
commit 02932973fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,10 @@ process BWAMETH_ALIGN {
"""
INDEX=`find -L ${index} -name "*.bwameth.c2t" | sed 's/.bwameth.c2t//'`
# Modify the timestamps so that bwameth doesn't complain about building the index
# See https://github.com/nf-core/methylseq/pull/217
touch -c -- *
bwameth.py \\
$options.args \\
$read_group \\