-
Notifications
You must be signed in to change notification settings - Fork 441
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 Quicktree tool #6583
Add Quicktree tool #6583
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.
Great! Just one comment, not sure if useful. Feel free to merge if not.
<command detect_errors="exit_code"><![CDATA[ | ||
|
||
## convert alignment to stockholm before quicktree if needed | ||
#if $input_type.format == "align" |
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.
You could also do this if/else dance based on the filetype $input_type.ext
and avoid the conditional. But maybe explicit is better than implicit here.
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.
yeah, I did it this way because "phylip" format can unhelpfully refer to either a distance matrix format or an alignment format in this tool so I figured I would make it explicit for the user which they are supplying. But I will check if Galaxy has a sniffer for phylip and which format it assumes when a file is marked as phylip and see if I can streamline that part.
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.
ok, looks like Galaxy's definition of phylip is the alignment version, but that still leaves the issue that distance matrices and some of the supported alignment file types will both be 'txt' in Galaxy currently so I think the conditional is still good here
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.
Thanks. Ship it if your like I will make sure its installed on Monday.
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.
Independent of this PR, esl-reformat
might be cool as extra tool.
tools/quicktree/quicktree.xml
Outdated
<param name="input_file" type="data" format="fasta,stockholm,phylip,txt" label="Alignment file" /> | ||
</when> | ||
<when value="dist"> | ||
<param name="input_file" type="data" format="mothur.dist,txt" label="Distance Matrix" /> |
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.
maybe describe a bit this distance matrix format ... I'm super lost with those formats :(
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.
will do 👍
tools/quicktree/quicktree.xml
Outdated
<outputs> | ||
<data name="output_file" format="newick" label="${tool.name} on ${on_string}: stockholm format"> | ||
<change_format> | ||
<when input="output_type" value="dist_out" format="dist" /> |
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.
What is dist
?
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 catch, I thought there was a dist format but I guess only mothur.dist exists currently. mothur.dist is the correct format here, but the mothur prefix might be confusing
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.
ok, we currently have mothur.dist
and if you want to distinguish between a square matrix or a lower triangle matrix there are mothur.lower.dist
or mothur.square.dist
. But mothur uses the phylip format, so maybe it would be good to make aliases in Galaxy for these formats (e.g. phylip.dist
, phylip.dist.square
etc)
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.
Sounds like a very good good idea.
<command detect_errors="exit_code"><![CDATA[ | ||
|
||
## convert alignment to stockholm before quicktree if needed | ||
#if $input_type.format == "align" |
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.
Independent of this PR, esl-reformat
might be cool as extra tool.
tools/quicktree/quicktree.xml
Outdated
@@ -56,7 +56,7 @@ input.quicktree | |||
<param name="input_file" type="data" format="fasta,stockholm,phylip,txt" label="Alignment file" /> | |||
</when> | |||
<when value="dist"> | |||
<param name="input_file" type="data" format="mothur.dist,txt" label="Distance Matrix" /> | |||
<param name="input_file" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dixt,txt" label="Distance Matrix" help="A distance matrix in phylip format (see help below for details). Can be a square distance matrix or a lower triangle distance matrix." /> |
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.
- mothur.square.dixt -> mothur.square.dist
- txt can / should we replace this by tabular? Or at least add it?
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.
should we replace this by tabular
I answer this myself: No :)
tools/quicktree/quicktree.xml
Outdated
<outputs> | ||
<data name="output_file" format="newick" label="${tool.name} on ${on_string}: stockholm format"> | ||
<change_format> | ||
<when input="output_type" value="dist_out" format="dist" /> |
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.
Sounds like a very good good idea.
thanks @bernt-matthias and @bgruening for the review 👍 |
Add Quicktree tool wrapper
FOR CONTRIBUTOR: