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 tsebra #5483

Merged
merged 19 commits into from
Oct 19, 2023
Merged

Add tsebra #5483

merged 19 commits into from
Oct 19, 2023

Conversation

rlibouba
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

@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.

You test files are too big. Howver you could just remove them as you do not need them currently. You only test with asserts.

However, I think we should use them, at least a part of it. It wil be good with future updates to see (in a future diff) what has changed and if the GTFs still look good.

You could remove most of the lines of your test-files and then use contains

file="mode_mp_output1.gff" ftype="gff" compare="contains"/>

https://docs.galaxyproject.org/en/latest/dev/schema.html#tool-tests-test-output

@bgruening
Copy link
Member

The rest looks really great @rlibouba!

tools/tsebra/tsebra.xml Outdated Show resolved Hide resolved
@rlibouba
Copy link
Contributor Author

rlibouba commented Oct 2, 2023

I'm having difficulty with the second test, in particular with the second output generated by the --score_tab parameter. In one column, the rounding of the numbers is not always the same, which causes the test to fail. When I run the tests locally with planemo test, the tests pass

Comment on lines 40 to 43
<param name="gtf_file" argument="-g" type="data" format="gtf" optional="true" label="List of gene prediciton files"/>
<param name="keep_gtf" argument="-k" type="data" format="gtf" optional="true" label="Gene prediction list" help="All transcripts from these gene sets will be included in the output"/>
<param name="hint_file" argument="-e" type="data" format="gff" optional="true" label="List of files containing extrinsic evidence"/>
<param name="cfg_file" argument="-c" type="data" format="txt" optional="true" label="Configuration file" help="Find the recommanded parameter at config/default.cfg"/>
Copy link
Member

Choose a reason for hiding this comment

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

All 4 inputs are optional, in theory a user can start this tool without inputs, I think this should not happen.

Do you have a smart idea here @rlibouba ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Björn, thank you for your return. I've suggested something for that. What do you think?

tools/tsebra/tsebra.xml Outdated Show resolved Hide resolved
tools/tsebra/tsebra.xml Outdated Show resolved Hide resolved
tools/tsebra/tsebra.xml Outdated Show resolved Hide resolved
tools/tsebra/tsebra.xml Outdated Show resolved Hide resolved
tools/tsebra/tsebra.xml Outdated Show resolved Hide resolved
@bgruening
Copy link
Member

Do you need help with the failing test?

@rlibouba
Copy link
Contributor Author

Yes, I'd like to. Thank you. I don't understand the error output in relation to the choice of tests. The numbers in the penultimate column are completely different.

@bgruening
Copy link
Member

grafik

Looks like the test file is not up to date. You could use asserts and not file comparisons if this helps.

@bgruening bgruening merged commit 7dadb01 into galaxyproject:main Oct 19, 2023
1 check passed
@bgruening
Copy link
Member

Thanks @rlibouba

@gxydevbot
Copy link
Collaborator

Attention: deployment skipped!

https://github.com/galaxyproject/tools-iuc/actions/runs/6577288426

@bgruening
Copy link
Member

@rlibouba running it on master resulted in: galaxy.tool_util.verify INFO: ## files diff on '/tmp/tmp1g96p8z2output_tab.txt' and '/tmp/tmpahhbf4n7output_tab.txt': lines_diff = 0, found diff = 278

Is this output a bit random? Do you need to sort it?

@rlibouba
Copy link
Contributor Author

I've created a PR for the update. All tests passed. There were no major changes to the files.
Here's the link: #5543

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