nanoporetech / minknow_api

Protobuf and gRPC specifications for the MinKNOW API
Other
50 stars 12 forks source link

Custom output folder as part of extra_args in start_protocol #54

Open alexandervogel opened 1 year ago

alexandervogel commented 1 year ago

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!

0x55555555 commented 1 year ago

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.