Coder Social home page Coder Social logo

Comments (4)

jmchilton avatar jmchilton commented on July 21, 2024

@unode One substantial complication is that <discover_datasets> actually is tweaking existing logic that applies to every output of every tool. So any tool could be a A tool - not even Galaxy knows which type of tool it is until the job is complete.

In the test framework instead of waiting on the history or outputs, we wait on the job (thanks to @davebx) - this makes sure we collect all the outputs and avoid race conditions. I have not touched the objects code - but this would be my recommendation for what to do there as well.

from bioblend.

nsoranzo avatar nsoranzo commented on July 21, 2024

@jmchilton Tool.run() in BioBlend.objects presently returns a list of output HistoryDatasetAssociation objects created from rval['outputs'] of POST /api/tools. This should also probably be updated, if we move to waiting on the job. Suggestions?

from bioblend.

jmchilton avatar jmchilton commented on July 21, 2024

Maybe use

        * GET /api/jobs/{job_id}/outputs
            returns output datasets created by job

once the job is complete. Looks like there is not yet a bioblend entry point for that though - https://github.com/galaxyproject/bioblend/blob/master/bioblend/galaxy/jobs/__init__.py.

from bioblend.

nsoranzo avatar nsoranzo commented on July 21, 2024

There is JobsClient.show_job(job_id)['outputs'] which returns a dict instead of a list, but I don't think that's a problem.

from bioblend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.