-
Notifications
You must be signed in to change notification settings - Fork 477
New Addition: ripples and general update to latest version of usher #7306
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, a few comments inline.
tools/usher/matutils.xml
Outdated
matUtils | ||
$matutils_mode.options_mode | ||
--input-mat $mutation_annotation_file | ||
--input-mat '$mutation_annotation_file.name' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--input-mat '$mutation_annotation_file.name' | |
--input-mat '$mutation_annotation_file.element_identifier' |
tools/usher/matutils.xml
Outdated
@@ -7,9 +7,12 @@ | |||
<expand macro='requirements' /> | |||
<version_command>usher --version</version_command> | |||
<command detect_errors='exit_code'><![CDATA[ | |||
## get correct extension filenames | |||
ln -sf '$mutation_annotation_file' '$mutation_annotation_file.name' && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ln -sf '$mutation_annotation_file' '$mutation_annotation_file.name' && | |
ln -sf '$mutation_annotation_file' '$mutation_annotation_file.element_identifier' && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into it.
I think it specifically needs the correct extension ...
tools/usher/matutils.xml
Outdated
@@ -195,7 +216,7 @@ | |||
<option value="write-mat">Write the selected subtree as a mutation annotated tree (--write-math)</option> | |||
<option value="write-mat-collapsed">Write the selected subtree as a collapsed mutation annotated tree (--write-mat --collapsed)</option> | |||
<option value="write-json">Write an Auspice-compatbile json representing the selected subtree (--write-json)</option> | |||
<option value="write-tree"> Write a newick string representing the selected subtree (--write-tree)</option> | |||
<option value="write-tree"> Write a newick strineg representing the selected subtree (--write-tree)</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that looks wrong now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️ it sure does 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upps forget to submit my review. Thanks @lsterck
tools/usher/matutils.xml
Outdated
@@ -1,4 +1,4 @@ | |||
<tool id='usher_matutils' name='UShER matUtils' version='@TOOL_VERSION@+@GALAXY_TOOL_VERSION@' profile='23.2'> | |||
<tool id='usher_matutils' name='UShER matUtils' version='@TOOL_VERSION@+@GALAXY_TOOL_VERSION@' profile='20.02'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why such an old profile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dunno
that was what was there before.
I thought this indicate the min version that was needed to run the software?
tools/usher/matutils.xml
Outdated
<output name="parent_placements" file="test_22_parent_placements.tabular" ftype="tabular"/> | ||
<output name="parent_placements" ftype="tabular"> | ||
<assert_contents> | ||
<has_size value="199899" delta="300"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size comparisons are not good tests. They are not very stingent, can you assert some content? Or assert the line count, or column count?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good thing you pointed me to change the test checks (though those tests were already there)
In the process of changing it to file checks it turned out there was a nasty bug hidden in one of the parameter processing causing that specific test to always fail (could technical not even be run) but since check on output size it passed the wrapper test.
]]> </command> | ||
<inputs> | ||
<param argument="--input-mat" type="data" format="protobuf3" label="Mutation-annotated tree object" help="Load a mutation annotated tree file, in protocol-buffers format (protobuf3)."/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please consider adding min/max to all integers/float params
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to, but have no idea what sensible ranges would be ...
As I understand it is very dependent from the input/output trees used and as such it does not really make sense to "fix" ranges
tools/usher/ripples.xml
Outdated
<param argument="--num-descendants" type="integer" value="10" label="Number of descendants" help="Minimum number of leaves that node should have to be considered for recombinatino. Default = 10." /> | ||
</inputs> | ||
<outputs> | ||
<data name="recombination" format="tabular" from_work_dir='recombination.tsv' label="${tool.name} on ${on_string}: recombinations" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to add metadata for the column names here?
one test failed with :
what does that mean actually? @bgruening anyway, maybe I should remove even more of those file_size checks |
Let me restart the CI |
FOR CONTRIBUTOR:
This pull request adds the RIPPLES tool to the usher suit.
Since usher version was a 0.2.1 and RIPPLES only added in v 0.4.0, the whole package was updated to the latest version (0.6.6)
Extra options were added that were released in the past 4-5y , but perhaps not all of them
linked to issue #7242