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

Localization timestamp issue and docker container user #263

Open
slagelwa opened this issue May 30, 2023 · 2 comments
Open

Localization timestamp issue and docker container user #263

slagelwa opened this issue May 30, 2023 · 2 comments

Comments

@slagelwa
Copy link

I'm using as inputs a bam file and its corresponding bam index file. When these files get localized the bam index file's timestamp sometimes will be newer than the bam file. Understandably some programs/libraries check the timestamp of the index file to ensure its newer than its corresponding bam file and will exit out with an error if this is not the case. Usually one can resolve this by simply using touch to set the timestamp of the file. However in my case the docker image/container is running as a non-root user. When the files are localized, they're writted as the root user and therefore can't be "touched".

@mbookman
Copy link
Contributor

mbookman commented May 30, 2023

Thanks for reporting that @slagelwa!

Of course, we've encountered this issue with the BAM/BAI timestamps long ago, but not concurrent with the non-root Docker image.

We should probably update dsub to make the localized file writeable. As a workaround, can you:

From a directory you like (such as the working directory):

  • soft-link to the BAM file
  • copy the BAI file

That avoids copying the large file, and gives you later timestamp on the index file that you need.

@slagelwa
Copy link
Author

Yep that was the workaround I implemented. Thanks.

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