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

gffcompare: fix for creating extra files in database/files/ #2127

Merged
merged 6 commits into from
Nov 5, 2018

Conversation

bernt-matthias
Copy link
Contributor

@bernt-matthias bernt-matthias commented Oct 10, 2018

gffcompare creates extra files in the basedir of the input files. This leads to an error when jobs run as real user and is unwanted anyway.

For instance, for the input database/files/001/295/dataset_1295486.dat the files

  • database/files/001/295/gffcmp.dataset_1295486.dat.tmap
  • database/files/001/295/gffcmp.dataset_1295486.dat.tloc

would be created.

My solution is to create links, since this offers the possibility to add these files to an output collection. Alternatively with -T the creation could be forbidden.

General question: would it be a good idea to link all input data to the working directory by default?

FOR CONTRIBUTOR:

  • - I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • - License permits unrestricted use (educational + commercial)
  • - This PR adds a new tool or tool collection
  • - This PR updates an existing tool or tool collection
  • - This PR does something else (explain below)

FOR REVIEWER:

  • .shed.yml file ok
    • Toolshed user iuc has access to associated toolshed repo(s)
  • Indentation is correct (4 spaces)
  • Tool version/build ok
  • <command/>
    • Text parameters, input and output files 'single quoted'
    • Use of <![CDATA[ ... ]]> tags
    • Parameters of type text or having optional="true" attribute are checked with if str($param) before being used
  • Data parameters have a format attribute containing datatypes recognised by Galaxy
  • Tests
    • Parameters are reasonably covered
    • Test files are appropriate
  • Help
    • Valid restructuredText and uses <![CDATA[ ... ]]> tags
  • Complies with other best practice in Best Practices Doc

@bernt-matthias bernt-matthias requested a review from davebx October 10, 2018 16:39
tools/gffcompare/gffcompare.xml Outdated Show resolved Hide resolved
tools/gffcompare/gffcompare.xml Outdated Show resolved Hide resolved
@nsoranzo nsoranzo mentioned this pull request Oct 11, 2018
20 tasks
- added output collections for refmap and tmap
- fixed filter for annotated and combined
@bernt-matthias
Copy link
Contributor Author

bernt-matthias commented Oct 12, 2018

This should be nearly it:

  • also fixed wrong filter statements for the annotated and combined outputs

Tests are not working for me locally: Exception: Incorrect number of outputs - expected 6, found 4. and Exception: Incorrect number of outputs - expected 4, found 5.

When I try manually (planemo s) the number or outputs is correct. Also the tests without expect_num_outputs work.

@bernt-matthias
Copy link
Contributor Author

Anyone has an idea why the number of outputs seems to be wrong. For me the planemo tests seem to be correct. Do I count wrong or is planemo?

@mblue9
Copy link
Contributor

mblue9 commented Oct 26, 2018

@bernt-matthias the collection outputs don't get counted by planemo (don't know why) so the first test should be just 4 expect_num_outputs="4".

Don't know why the second test is counting 5 as looks like should be 4 to me.

@bernt-matthias
Copy link
Contributor Author

Tests work now against this: galaxyproject/galaxy#6931

Indeed galaxy counted wrong.

Additionally the number of gffinputs is a list of HDAs in case of multiple inputs and a single HDA otherwise. Which is why the filters previously did not work.

@bernt-matthias
Copy link
Contributor Author

Something is odd with the testing. The errors are related to different tools. Any ideas.

The tests of the tools should work now, since galaxyproject/galaxy#6931 was just merged into dev.

@nsoranzo
Copy link
Member

Something is odd with the testing. The errors are related to different tools. Any ideas.

@bernt-matthias See #2160

The tests of the tools should work now, since galaxyproject/galaxy#6931 was just merged into dev.

We use release_18.09 at the moment, not dev, see .travis.yml

@nsoranzo
Copy link
Member

@bernt-matthias The linting issue has been fixed. Now the first test fails with "Exception: Incorrect number of outputs - expected 6, found 4." because your fix is only in Galaxy dev, do you want to backport it to 18.09?

@bernt-matthias
Copy link
Contributor Author

@bernt-matthias
Copy link
Contributor Author

hooray. all tests passed after galaxyproject/galaxy#6951 was merged.

@mvdbeek mvdbeek merged commit 7760ff6 into galaxyproject:master Nov 5, 2018
@bernt-matthias bernt-matthias deleted the topic/gffcompare-fix branch March 8, 2020 10:38
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.

4 participants