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

fix hisat2 extra outputs #1497

Merged
merged 2 commits into from
Sep 30, 2017
Merged

Conversation

mblue9
Copy link
Contributor

@mblue9 mblue9 commented Sep 29, 2017

Sorry to be bringing hisat2 back again! but I just discovered that I accidentally left in a bracket that means that it's producing outputs that should be filtered out 😮 I left in the last bracket here:

<filter>(library['type'] == 'paired' or library['type'] == 'paired_collection') and (adv['output_options']['output_options_selector'] == "advanced" and adv['output_options']['unaligned_file'] is True) </filter>

I fixed it here. I also learnt that I can include to check that the correct number of outputs are produced so I've added that in.

(a slightly weird thing to me is that nothing complained about the stray bracket, not planemo lint, test or travis. I was wondering if something should or if I really do need to get myself some better 👀!)

@@ -567,23 +565,25 @@ hisat2

<!-- Define tests -->

<tests>
<test><!-- Ensure bam output works -->
<tests><!-- Ensure bam output works -->
Copy link
Member

Choose a reason for hiding this comment

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

    <tests>
        <!-- Ensure bam output works -->

@nsoranzo
Copy link
Member

I also learnt that I can include to check that the correct number of outputs are produced so I've added that in.

Good idea, thanks!

(a slightly weird thing to me is that nothing complained about the stray bracket, not planemo lint, test or travis. I was wondering if something should or if I really do need to get myself some better 👀!)

Unfortunately the behaviour of output filter is very weird: the expression is evaluated as Python code and if the result is True or an exception is raised, the filter is considered "passed" and the output dataset is added to the history.

@mblue9
Copy link
Contributor Author

mblue9 commented Sep 29, 2017

Thanks for the review and info @nsoranzo! I've fixed that comment position.

@nsoranzo nsoranzo merged commit 1281873 into galaxyproject:master Sep 30, 2017
@nsoranzo
Copy link
Member

Thanks @mblue9!

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.

2 participants