-
Notifications
You must be signed in to change notification settings - Fork 463
avoid bam2msa to create BAM index in inputdir #3986
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
Conversation
Hey @pavanvidem .. how do you identify tools writing to the input dir? |
First, we extracted the dataset names from input dir that do not end with |
@pavanvidem I started some discussion here: galaxyproject/planemo#1189 |
Still the manual approach will be needed (since I guess we won't have perfect test coverage)... |
@@ -7,11 +7,13 @@ | |||
</macros> | |||
<expand macro="requirements"/> | |||
<command detect_errors="exit_code"><![CDATA[ | |||
## avoid bam2msa to create .bai in inputdir | |||
ln -s '$input' input_bam && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Galaxy already stores the index files (only for bam) and you can access it with:$input.metadata.bam_index
. So ln -s '$input.metadata.bam_index' input_bam.bai
may avoid that bam2msa
needs to recreate it?
But I guess then we need a version bump.
Hey @pavanvidem just thought a bit more about this. The problem is that old versions of the tool will still write to Galaxy's file dir. How about configuring your galaxy to run jobs as a separate user that does not have write permissions for Galaxy's file dir: Still the problem needs to be fixed: I' currently running IUC's weekly CI with an extended version of planemo (galaxyproject/planemo#1190) : https://github.com/bernt-matthias/tools-iuc/actions/runs/1277704614 |
This is a good idea. I should have mentioned that I queried the EU Galaxy database, not my local instance. This might have covered most of the old tool versions and the tools outside IUC. |
Your excellent work was foiled by the tool again @pavanvidem. It looks like this one generates the index regardless of whether it exists. If it's a symlink to a read-only file, then that fails. I can generate a PR upstream, but for current versions of the tool I think we will have to remove the bai symlink and let the tool generate the bai itself, unfortunately. |
Upstream PR: veg/BioExt#45 |
@pavanvidem can you check if a bump of the tool version to 0.20.4 fixes this? |
FOR CONTRIBUTOR: