nanoporetech / minknow_api

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

More examples, phisical device simulator #50

Open wkusmirek opened 1 year ago

wkusmirek commented 1 year ago

Hello,

I'm working with minknow_api right now, but unfortunately I don't currently have access to a physical sequencer.

I have a request if it would be possible to expand the example section, such as test_extract_run_statistics.py Such files are very helpful in understanding how the api works.

Alternatively, would there be an option to add a physical device simulator that could be queried using minknow_api and would return a set of statistics, e.g. random temperature values?

Best, Wiktor

Strexas commented 1 month ago

I also would like to ask for adding physical simulator.

0x55555555 commented 1 month ago

Hello,

In the latest versions of minknow (24.02), you can run:

> {minknow_install_dir}/bin/add_simulated_minion.sh # (there is also a bat file for windows)

This will create a simulated minion on your running instance of minknow.

Thanks,

Strexas commented 2 weeks ago

Hello,

In the latest versions of minknow (24.02), you can run:

> {minknow_install_dir}/bin/add_simulated_minion.sh # (there is also a bat file for windows)

This will create a simulated minion on your running instance of minknow.

Thanks,

  • George

Hello, Thank you for reply. Is it possible to run protocol on simulated device and get simulated data?

0x55555555 commented 2 weeks ago

You can run a sequencing protocol on a simulated device, you can select playback data during run setup in the UI:

image

You can also start a run from the API using a --simulation extra argument passed to the sequencing script.

You can generate data for playback by writing out additional debug information from the UI:

image

Hope that helps,