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

IDBA: fix idba_tran and make testing more rigorous #3150

Merged
merged 2 commits into from Aug 4, 2020
Merged

IDBA: fix idba_tran and make testing more rigorous #3150

merged 2 commits into from Aug 4, 2020

Conversation

pvanheus
Copy link
Contributor

@pvanheus pvanheus commented Aug 3, 2020

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)

@pvanheus
Copy link
Contributor Author

pvanheus commented Aug 3, 2020

Two files are changed here:

  1. idba_tran wrapper: this was looking for a scaffold.fa output whereas idba tran produces a contig.fa output. The result was a zero-length output dataset and this was not picked up by the test because it uses sim_size which, by default, means within 10000 bytes. The test dataset is < 1000 bytes so the difference between success and failure was not being noticed.

  2. since the idba_ud wrapper also uses sim_size in its tests, so this was also made more rigorous. The tool version was not bumped because no change to the actual tool was performed.

@@ -99,7 +99,7 @@
<has_text text="--min_support 2" />
<has_text text="--seed_kmer 29" />
</assert_command>
<output name="output" file="out/scaffold.fa" compare="sim_size"/>
<output name="output" file="out/scaffold.fa" compare="sim_size" delta="10"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a delta at all? Maybe even compare="diff" works?

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 it does, and switching to "diff" highlighted that the saved output was wrong.

Copy link
Contributor

Choose a reason for hiding this comment

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

What is the content of the differing line?

@bgruening bgruening merged commit 665baeb into galaxyproject:master Aug 4, 2020
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.

None yet

3 participants