minknow_api icon indicating copy to clipboard operation
minknow_api copied to clipboard

More examples, phisical device simulator

Open wkusmirek opened this issue 3 years ago • 5 comments

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

wkusmirek avatar Feb 20 '23 12:02 wkusmirek

I also would like to ask for adding physical simulator.

Strexas avatar Jun 05 '24 11:06 Strexas

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

0x55555555 avatar Jun 05 '24 13:06 0x55555555

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?

Strexas avatar Jun 19 '24 08:06 Strexas

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,

  • George

0x55555555 avatar Jun 19 '24 08:06 0x55555555