Coder Social home page Coder Social logo

Comments (6)

nsoranzo avatar nsoranzo commented on July 21, 2024

I think it should be:

params = {
    'bowtie2': {
        'reference_genome': {
            'source': 'indexed',
            'index': 'hg19'
        }
    }
}

This will affect all steps having 'bowtie2' as tool id.
To modify only a specific bowtie2 step, you can just substitute 'bowtie2' with the step id, which is also the recommended syntax.

from bioblend.

nsoranzo avatar nsoranzo commented on July 21, 2024

@LongTianPy: do my suggestions work for you? If yes, I'd like to improve the method documentation.

from bioblend.

LongTianPy avatar LongTianPy commented on July 21, 2024

@nsoranzo Hi, sorry I missed your previous reply. I have solved my problem in another approach but haven't tried your suggestions. My question about your suggestions is when I'm trying to figure out the parameter, should I go to the tool's XML wrapper to find out the keys of the dictionary?

from bioblend.

nsoranzo avatar nsoranzo commented on July 21, 2024

@LongTianPy: Looking at the XML is one option, the other is:

w = gi.workflows.show_workflow('<workflow_id>')
step = [_ for _ in w['steps'].itervalues() if _['tool_id'] == '<tool_id>'][0]
print step['tool_inputs']

but this will give you the parameters only for the current selection of <conditional>s.

from bioblend.

LongTianPy avatar LongTianPy commented on July 21, 2024

@nsoranzo Thanks, this really helped me.

from bioblend.

nsoranzo avatar nsoranzo commented on July 21, 2024

Documentation has been improved in d3911bf, thanks for your question!

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.