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

Update tool HESS to 0.0.1+galaxy0 #59

Closed
wants to merge 1 commit into from

Conversation

dsavchenko
Copy link
Collaborator

No description provided.

<requirement type="package" version="7.13.0">nbconvert</requirement>
<requirement type="package" version="1.20.3">wget</requirement>
</requirements>
<command detect_errors="exit_code">ipython '$__tool_directory__/${_data_product._selector}.py'</command>
Copy link
Collaborator

Choose a reason for hiding this comment

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

why ipython?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As far as this is converted from notebook, which can contain some jupyter magic, using ipython to run the script assures they will be properly treated. It's not a great sacrifice to have an additional requirement, but the logic may be improved a bit to use it only when magic commands are actually there

@@ -0,0 +1,138 @@
<tool id="hess_astro_tool" name="hess_astro_tool" version="0.0.1+galaxy0" profile="23.0">
Copy link
Collaborator

Choose a reason for hiding this comment

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

description is missing

</conditional>
</inputs>
<outputs>
<data label="${tool.name} -&gt; Image picture" name="out_Image_picture" format="auto" from_work_dir="picture_galaxy.output">
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know format="auto" is the most simple solution and is good in the beginning. I just wanted to point out that is would be nice and also faster if we could specify a fixed value here.

Copy link
Collaborator Author

@dsavchenko dsavchenko Dec 19, 2023

Choose a reason for hiding this comment

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

That's the best general way I was able to came up with. As far as tool description is generated from the notebook, and we can't be 100% sure of the outputs format without actually running it. But I'm attaching some logic to populate the metadata file to the original code of the tool

<has_text text="*** Job finished successfully ***" />
</assert_stdout>
</test>
</tests>
Copy link
Collaborator

Choose a reason for hiding this comment

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

A help section is missing. What about citations?

@dsavchenko
Copy link
Collaborator Author

@bgruening this PR is automatically created by the bot oda-hub/oda-bot#40 using nb2galaxy from oda-hub/nb2workflow#102
It's based on the repo https://gitlab.renkulab.io/astronomy/mmoda/hess which we also use as the source for MMODA tools.
I already activated this for some tools to see all stack in action as well as enable the preview of the PR on staging instance galaxy.odahub.fr
With this we will gradually approach to the state of tools which are ready for deployment on the toolshed.

It's a bit of a work-in-progress, so some parts are missing. The generation of them is mostly implemented, but the corresponding pieces of info need to be added to the original repo by its author (@andriineronov in this case)

@bgruening
Copy link
Collaborator

@dsavchenko thanks for the explanations, appreciated!
Im aware of the autogeneration, I just wanted to give some comments in the hope the autogeneration could be improved - or ultimately the annotation of the original notebook.

@dsavchenko dsavchenko closed this Jan 31, 2024
@dsavchenko dsavchenko deleted the auto-update-galaxy-tool-hess-v0.0.1-galaxy0 branch January 31, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants