Skip to content

Instantly share code, notes, and snippets.

@TomHarrop
Last active June 3, 2019 10:21
Show Gist options
  • Save TomHarrop/cb26d9ed04a913a47833a4b5aaca057f to your computer and use it in GitHub Desktop.
Save TomHarrop/cb26d9ed04a913a47833a4b5aaca057f to your computer and use it in GitHub Desktop.
Run MinKNOW with Singularity in a ubuntu 16.04 instance

Give devices with the ONT vendor id write access.

add the following to /etc/udev/rules.d/ont.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="2a1d", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="2a1d", MODE="0666"

Reload the rules

sudo udevadm control --reload-rules

make sure the run and var directories have been created, e.g.

mkdir ./var ./run

run the singularity instance with bindings to the tmp and run directories

singularity instance start \
    -B "${PWD}",./run:/run,./var:/var \
    minknow_19.05.0.sif \
    minknow

reads will be output to ./var/lib/MinKNOW/data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment