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

HISAT2 in workflows: renaming output is broken #1478

Closed
NCEichner opened this issue Sep 15, 2017 · 3 comments
Closed

HISAT2 in workflows: renaming output is broken #1478

NCEichner opened this issue Sep 15, 2017 · 3 comments

Comments

@NCEichner
Copy link

Hallo, iuc-team!
HISAT2 has a problem with renaming outputs when the tool is used within workflows.

In two seperate workflows I use HISAT2 with either paired or single-end inputs (fastq-files e.g. "libname.R1" and "libname.R2"). The bam-output should be renamed to "libname.bam" and therfore I set the rule for rename output_alignments to "#{forward|basename}.bam" (similar to bowtie2). But I always get output named ".bam" (The name of the input-datafile is missing completely).
I played around with other variables from the workflow window (alone or in combination) and even tried to use variable names directly from the .xml-files (wrapper or macros). In some cases I also left out the "basename"-option but nothing changed - I always get ".bam"
The automatic naming ("HISAT2 on data 2 and data1") works fine but then I have to rename all output files manually before starting the downstream analysis within a seperate workflow.
Would be nice if this could be fixed.

@mblue9
Copy link
Contributor

mblue9 commented Sep 18, 2017

Hi @NCEichner,

I took a look to see if the changes I've added in the PR to fix the strandedness bug will fix this issue, but unfortunately they won't :(

I think I can see what the problem is - it looks like nested inputs don't work with Rename Datasets?

In the Workflow Editor Rename Dataset section, for paired reads you get these "Valid Inputs" listed:

for Bowtie2:
library|input_1, library|input_2
(renaming works using #{input_1|basename}.bam)

for HISAT2:
input_format|paired|collection|forward, input_format|paired|collection|reverse.
(renaming does not work using #{forward|basename}.bam)

for HISAT2 new PR:
reads|library|input_1, reads|library|input_2
(renaming does not work using #{input_1|basename}.bam, but does work if I remove the section called "reads", a section I added for cosmetic purposes)

So I think to fix this issue the options are:

If anyone in IUC has a suggestion would be great to hear as it would be really good to get this renaming outputs working.

@mblue9
Copy link
Contributor

mblue9 commented Sep 27, 2017

@NCEichner, this issue should also be fixed now in the newest HISAT2 from the toolshed here: https://toolshed.g2.bx.psu.edu/repository?repository_id=c864c7c00326f71d&changeset_revision=d5fe9aead222

@nsoranzo
Copy link
Member

Fixed in #1470.

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

No branches or pull requests

3 participants