-
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
Fix glimmer tools error handling #6641
Fix glimmer tools error handling #6641
Conversation
All the tools that call into python scripts wouldn't fail on non-zero exit codes. They also didn't write to stderr, so in fact they could never fail. Also fixes the remaining lint errors.
tools/glimmer/glimmer_gbk_to_orf.xml
Outdated
@@ -16,8 +16,8 @@ | |||
<param name="infile" type='data' format="genbank" label="gene bank file"/> | |||
</inputs> | |||
<outputs> | |||
<data name="aa_output" format="fasta" /> | |||
<data name="nc_output" format="fasta" /> | |||
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/> |
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 add on_string
?
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 absolutely think recording the input datasets in the dataset name is one of the worst ideas that still survives. Feel free to 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.
I guess we'll eventually figure out a better way to do this. I wish we'd just not fill in ${on_string}
and template that on the frontend ...
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.
100%
Sorry did not see you suggestions...
tools/glimmer/glimmer_gbk_to_orf.xml
Outdated
@@ -16,8 +16,8 @@ | |||
<param name="infile" type='data' format="genbank" label="gene bank file"/> | |||
</inputs> | |||
<outputs> | |||
<data name="aa_output" format="fasta" /> | |||
<data name="nc_output" format="fasta" /> | |||
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/> |
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.
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/> | |
<data name="aa_output" format="fasta" label="${tool.name} on ${on_string}: Amino acids"/> |
tools/glimmer/glimmer_gbk_to_orf.xml
Outdated
<data name="aa_output" format="fasta" /> | ||
<data name="nc_output" format="fasta" /> | ||
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/> | ||
<data name="nc_output" format="fasta" label="{tool.name}: Nucleotides"/> |
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.
<data name="nc_output" format="fasta" label="{tool.name}: Nucleotides"/> | |
<data name="nc_output" format="fasta" label="{tool.name} on ${on_string}: Nucleotides"/> |
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.
We should probably bump this one. Maybe also use the version macro token in the requirements.
All the tools that call into python scripts wouldn't fail on non-zero exit codes. They also didn't write to stderr, so in fact they could never fail. Also fixes the remaining lint errors.
FOR CONTRIBUTOR: