Skip to content

MicrobesNG/mingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mingo

Run manager and status tools for Oxford Nanopore P2 Solo sequencers.

Contents

  • mingo/run_manager.py - interactive CLI to start runs from SLIMS
  • mingo/gridion_status.py - show the current run status of all of the active flowcell positions in a local gridion (requires local guest mode enabled)
  • mingo/flowcell_health.py - show latest pore count for a flowcell and on which hosts it has been checked
  • mingo/watch_gridion.py - dynamic monitoring of sequencer status

Get Hacking

We use direnv and pip-tools for environment management.

  1. Ensure python 3.12 is available.
  2. direnv allow to set up the venv in .direnv/python-3.12.
  3. pip install -r requirements.txt
  4. Run the manager in mock mode to test:
    ./.direnv/python-3.12/bin/python3 mingo/run_manager.py --mock

Testing

You can simulate a flowcell using the MinKnow API, which is quite fun!

First, install MinKnow, best done on (ONT offer packages for Ubuntu and MacOS).

Configure RPC access. If you have asecure env you can do:

/opt/ont/minknow/bin/config_editor --conf user --filename /opt/ont/minknow/conf/user_conf --set network_security.guest_rpc_enabled=enabled
/opt/ont/minknow/bin/config_editor --conf user --filename /opt/ont/minknow/conf/user_conf --set network_security.local_connection_only=all_open

Add a fake device

# set up venv - feel free to do it differently, e.g. I use direnv for this
python -m venv .env
. .env/bin/activate
pip install -r requirements.txt

# create fake device
python -m minknow_api.examples.manage_simulated_devices --prom --host <host|localhost> --port 9502 --add S0

# list fake devices
python -m minknow_api.examples.manage_simulated_devices --host <host|localhost> --port 9502 --list

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages