minknow_api icon indicating copy to clipboard operation
minknow_api copied to clipboard

Custom output folder as part of extra_args in start_protocol

Open alexandervogel opened this issue 2 years ago • 1 comments

Is there a possibility to set a custom output folder as part of the extra_args (args=args.extra_args) as part of the start_protocol example?

I'm aware of the get_ and set_output_directories function as part of the instance and the base variable in the user_conf but it would be much simpler to pass the output_folder along during the protocol start.

Thanks!

alexandervogel avatar Jun 02 '23 08:06 alexandervogel

Hi @alexandervogel,

You can set offload_location_path in OffloadLocationInfo, as part of the StartProtocolRequest message sent to start_protocol:

https://github.com/nanoporetech/minknow_api/blob/master/proto/minknow_api/protocol.proto#LL343C25-L343C25

You would need to modify the start_protocol call built into the tools, as it doesn't currently let you set the offload_location_info field.

As you say, the other way to achieve this is using the other API calls.

Hope this helps - I'll look at exposing this variable as part of the built in tools too.

  • George

0x55555555 avatar Jun 05 '23 07:06 0x55555555