Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp checking of .fa files prevents me from running bwa-meth in the cloud #83

Open
jnthnhss opened this issue Aug 4, 2022 · 2 comments

Comments

@jnthnhss
Copy link

jnthnhss commented Aug 4, 2022

I'm running bwa-meth in the cloud and have therefore no control over the timestamps of the .fa and related files. That is, the converted the .fa file via bwameth.py index-mem2, uploaded them in the correct order (that is, uploading the .fa file first) and still I have the problem that bwa-meth.py complains that

the modification time on the generated c2t files is newer than on the .fa file

Post-hoc manipulation of timestamps via touch is also unsuccessful. Would it be possible to disable checking the modification timestamps or have a flag for this?

@brentp
Copy link
Owner

brentp commented Aug 4, 2022

yeah. that's not good.
can you share the full command that you are running and the full stderr+stdout?

@jnthnhss
Copy link
Author

jnthnhss commented Aug 4, 2022

Full stderr+stdout is difficult because the logs are accessed via Splunk

bwameth.py --threads 36 --reference /reference/bwa-meth/GRCh38.d1.vd1/GRCh38.d1.vd1.fa T_1_trimmed.fq.gz T_2_trimmed.fq.gz
File "/opt/bin/bwameth.py", line 550, in main
File "/opt/bin/bwameth.py", line 559, in <module> 
bwa_mem(args.reference, conv_fqs_cmd, ' '.join(map(str, pass_through_args)),
main(sys.argv[1:])
Traceback (most recent call last):
File "/opt/bin/bwameth.py", line 349, in bwa_mem
  raise BWAMethException("first run bwameth.py index %s OR bwameth.py index-mem2 %s" % (fa, fa))
  __main__.BWAMethException: first run bwameth.py index /reference/bwa-meth/GRCh38.d1.vd1/GRCh38.d1.vd1.fa OR bwameth.py index-mem2 /reference/bwa-meth/GRCh38.d1.vd1/GRCh38.d1.vd1.fa

The problem is that /reference is a read-only mounted image. I can therefore not manipulate the .fa file timestamp via

touch -t 202001010000 /reference/bwa-meth/GRCh38.d1.vd1/GRCh38.d1.vd1.fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants