Skip to content

add bellavista prepare #6946

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

Merged
merged 13 commits into from
May 3, 2025
Merged

Conversation

nilchia
Copy link
Contributor

@nilchia nilchia commented Apr 30, 2025

Large spatial transcriptomic images take a long time to prepare for bellavista interactive tool.
This tool will prepare inputs in advance to reduce computation time.

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

@nilchia nilchia marked this pull request as ready for review May 1, 2025 22:38

while sleep 1; do
if grep -q "OME-Zarr image saved successfully" './bellavista.log'; then
echo "Bella Vista input files created! Stopping the tool..."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need an additional safe-guards here.

What happens if this string never appears? Should we kill the tool after X hours? The X hours can be taken optionally from an ENV var, so the admin can overwrite it?

Also would it make sense to actually check if the result file exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a timeout to the script.
For the output I'm not sure how to check. the main output would be the image in zarr format.
Now I just check if the directory and .zgroup file exists

@nilchia nilchia requested a review from bgruening May 2, 2025 10:56
@nilchia nilchia marked this pull request as draft May 2, 2025 12:07
@nilchia nilchia marked this pull request as ready for review May 3, 2025 17:22
Copy link
Member

@bgruening bgruening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, lets try this.

@bgruening bgruening merged commit 8e0168d into galaxyproject:main May 3, 2025
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants