Skip to content

Rapidtide interface #9

@tsalo

Description

@tsalo

I'm trying to figure out the best way to create a rapidtide nipype interface for the workflow. Unfortunately, the way it's structured on rapidtide's end makes that difficult. Here are a few options I'm considering:

  1. A BaseInterface: basically call rapidtide as a Python function.
    • The biggest problem here is that rapidtide_main just isn't structured in a way that would work with this, AFAICT. The input to rapidtide_main is an argparse function, so it's really only set up to be called as a command-line interface.
    • I need to know the individual parameters for this kind of interface.
    • Also, passing along a massive dictionary makes it hard to keep track of what parameters are actually used and where. @bbfrederick how would you feel about splitting up optiondict and theprefilter into individual parameters?
  2. A Function interface: call rapidtide as a Python function with minimal knowledge of inputs and outputs.
    • In this approach we can pass in the parameters are keyword arguments, which means the function still needs to have individual parameters, but we don't need to define all those parameters in an InputSpec.
  3. A command-line interface: Call rapidtide as a command-line interface.
    • I need to define all of the individual parameters that we might need, but other than that this seems like the most doable option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions