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

Add ToolDistillator #5967

Merged
merged 19 commits into from
Apr 30, 2024
Merged

Add ToolDistillator #5967

merged 19 commits into from
Apr 30, 2024

Conversation

clsiguret
Copy link
Contributor

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)

Copy link
Member

@bebatut bebatut left a comment

Choose a reason for hiding this comment

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

Thanks a lot @clsiguret
I added some suggestions (mostly cosmetic ones)

tools/tooldistillator/.shed.yml Outdated Show resolved Hide resolved
tools/tooldistillator/.shed.yml Outdated Show resolved Hide resolved
tools/tooldistillator/.shed.yml Show resolved Hide resolved
tools/tooldistillator/macro.xml Outdated Show resolved Hide resolved
tools/tooldistillator/macro.xml Outdated Show resolved Hide resolved
tools/tooldistillator/macro.xml Outdated Show resolved Hide resolved
tools/tooldistillator/tooldistillator.xml Outdated Show resolved Hide resolved
tools/tooldistillator/tooldistillator.xml Outdated Show resolved Hide resolved
tools/tooldistillator/tooldistillator_summarize.xml Outdated Show resolved Hide resolved
tools/tooldistillator/tooldistillator_summarize.xml Outdated Show resolved Hide resolved
@clsiguret
Copy link
Contributor Author

Waiting for new Bioconda package : bioconda/bioconda-recipes#47472

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.

Very good @clsiguret! I added a few nitpicking stuff inline.

I'm a bit worried about the HID usage ... maybe you can explain in some comment why you need to use the HID somewhere.

tools/tooldistillator/.shed.yml Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

this is empty, is it needed or should it be removed?

Copy link
Member

Choose a reason for hiding this comment

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

this can be removed I guess?

Can you please check if all files are really needed that are included in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I deleted empty and/or unused files. it should be good now

tools/tooldistillator/tooldistillator_summarize.xml Outdated Show resolved Hide resolved
<tests>
<test expect_num_outputs="1"> <!-- TEST_1 sumarize json results -->
<param name="summarize_data" ftype="json" value="summarize/abricate_output.json,summarize/bracken_full_output.json,summarize/plasmidfinder_output.json"/>
<output name="summary_json" ftype="json" value="summarize/summarize.json" compare="sim_size"/>
Copy link
Member

Choose a reason for hiding this comment

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

instead of using sim_size, which is the less-stringent test that we have, its better to use asserts (in addition) https://docs.galaxyproject.org/en/latest/dev/schema.html#id146

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I understand why. It's good now, I added asserts as suggested :-) thanks

tools/tooldistillator/tooldistillator.xml Outdated Show resolved Hide resolved
#for $i, $tool in enumerate( $tool_section.tools )
tooldistillator
$tool.select_tool.tool_list
--hid "$tool.select_tool.input.hid"
Copy link
Member

Choose a reason for hiding this comment

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

please use single-quotes its safer than double-quotes

tools/tooldistillator/tooldistillator.xml Outdated Show resolved Hide resolved
tools/tooldistillator/tooldistillator.xml Outdated Show resolved Hide resolved
#elif $tool.select_tool.tool_list == "tabular_file"
--analysis_software_name "$tool.select_tool.analysis_software_name"
#end if
-o "tooldistillator_folder/$($tool.select_tool.tool_list)_$(i)_output.json"
Copy link
Member

Choose a reason for hiding this comment

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

single-quotes

Copy link
Member

@bebatut bebatut left a comment

Choose a reason for hiding this comment

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

It looks good for me. Thanks @clsiguret !!

@bgruening bgruening merged commit 491c6fc into galaxyproject:main Apr 30, 2024
12 checks passed
@bgruening
Copy link
Member

Thanks a lot @clsiguret

@clsiguret clsiguret deleted the add_tool_in_iuc branch May 24, 2024 12:07
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.

3 participants