Skip to content

uwmisl/cas9-similarity-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Carina Imburgia
Feb 25, 2024
505bf38 · Feb 25, 2024

History

89 Commits
Sep 15, 2022
Sep 15, 2022
Jul 19, 2022
Feb 25, 2024
Sep 15, 2022
Jun 8, 2022
Jun 18, 2021
Aug 16, 2022
May 18, 2021
May 6, 2021
Sep 7, 2022
May 5, 2021
Apr 5, 2022
Jun 18, 2021
May 6, 2021
May 6, 2021

Repository files navigation

cas9-similarity-search

DNA similarity search using Cas9

A visual overview

You are currently in the Cas9 Similarity Search repository. The feature vectors we start with come from the preceding Open Images repository: https://github.com/uwmisl/primo-openimages

Image here

Connecting to jupyterlab in a docker

SSH Port Forwarding

On your local machine: Pick a port, P: anything unused; a large number. When connecting with ssh: ssh -L localhost:P:localhost:P brinstar.cs.washington.edu. This forwards port P on your local workstation to port P on brinstar.

Run docker

On brinstar: Launch the docker using the script in the cas9-similarity-search repository: sudo ./docker.sh -d <path to primo-openimages dir> -p P, where P is the port you forwarded when connecting via SSH. The path is /home/kstwrt/HDD/kendall/datasets/primo-openimages/

So an example command is: sudo ./docker.sh -d /home/kstwrt/HDD/kendall/datasets/primo-openimages/ -p 9000

Launch browser

Once you launch jupter notebook in the docker, you can connect in your browser. Copy the /?token=<secret token> bit from the jupyter output, and point your browser to: http://localhost:P/?token=<secret token>.

Launch shell in docker

sudo docker exec -it <docker id> /bin/bash You can find your docker id by doing sudo docker ps

In docker, find Jupyter token to connect to

jupyter notebook list

MISC Helpful Commands

For monitoring GPU: watch -n 1 nvidia-smi