Coder Social home page Coder Social logo

partial workflow invocation about bioblend HOT 9 CLOSED

lstrgar avatar lstrgar commented on July 26, 2024
partial workflow invocation

from bioblend.

Comments (9)

simonbray avatar simonbray commented on July 26, 2024

Can you provide some code please? (if it's possible to share the workflow, that would be helpful as well)

Are you able to run the workflow successfully in the UI?

Best wishes,

Simon

from bioblend.

lstrgar avatar lstrgar commented on July 26, 2024
    gi = bioblend.galaxy.GalaxyInstance(url=config["galaxyUrl"], key=config["apikey"])
    ## workflow_args is a generator yielding tuples of history_id and hdca data description 
    workflow_args = upload_dir(config['datapath'], config['libraryId'], config['folderId'], config['workflow'], gi)
    wfdesc = get_workflow_description(gi, config['workflow'])
    workflow_id = wfdesc["uuid"]

    for hid, data in workflow_args:
        inputs = {
            '0': {
                "src": data['src'],
                "id": data['id'],
            },
        }
        res = gi.workflows.invoke_workflow(workflow_id, inputs, history_id=hid, import_inputs_to_history=False)

from bioblend.

lstrgar avatar lstrgar commented on July 26, 2024

Does this link work for you?

https://galaxydev.ohsu.edu/u/strgar/w/crc-r01

Invoking the workflow in the browser successfully completes the entire pipeline.

from bioblend.

simonbray avatar simonbray commented on July 26, 2024

I cannot access that link - I get Server Not Found.

If you can invoke it in the UI, I would suggest looking up the successful invocation id with gi.invocations.show_invocations() and checking that the inputs and input_step_parameters fields match what you are submitting via the API.

from bioblend.

lstrgar avatar lstrgar commented on July 26, 2024

I had previously check input but I'll look at input_step_parameters.

If they differ how can I adjust the invocation to specify step parameters?

from bioblend.

simonbray avatar simonbray commented on July 26, 2024

You should be able to add params=input_step_parameters to gi.workflows.invoke_workflow().

from bioblend.

lstrgar avatar lstrgar commented on July 26, 2024

There are no differences in the input fields for jobs invoked from the command line and those invoked from the GUI.

from bioblend.

simonbray avatar simonbray commented on July 26, 2024

If you could share the workflow and some test data with me (either via a public Galaxy instance, or a chat like gitter or matrix, or in this issue, whatever you prefer) I can have a look. Not sure what else to suggest right now.

from bioblend.

lstrgar avatar lstrgar commented on July 26, 2024

Sure gitter works. Thanks for your offer. Presumably your handle is gitter.im/simonbray? Message sent.

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.