Similar protein search interface showing usecase of DS569k dataset deployed live at https://ocular.cc.gatech.edu/DS569k/.
viewer-demo.mov
First install https://github.com/astral-sh/uv then run
cd viewer
cd server
uv venv
uv sync
uv run src/server.pyto install backend packages.
Then in another terminal, use https://pnpm.io/ to install and run the frontend
cd ..
cd website
pnpm install
pnpm devThen open http://localhost:5173.
Take a look at how we embed sequences into ProteinCLIP: https://github.com/xnought/DS569k-viewer/blob/main/viewer/server/src/embed_proteinclip.py#L107
Most of the code in that file is copied from https://github.com/wukevin/proteinclip. Credit to them!
You need to run the backend server and transfer the static files over.
Backend:
cd viewer/server
# install dependencies
virtualenv --python=python3 venv
source venv/bin/activate
pip3 install -r requirements.noversion.txt
# run the server in the backround (port 4322)
nohup python3 src/server.py runserver > logfile.out &Frontend
cp -R viewer/website/dist /var/www/html/DS569k/All credit for the data goes to https://www.uniprot.org/ and https://www.expasy.org/resources/uniprotkb-swiss-prot and to the original authors of each protein. I directly took the data from them.
Large pieces of code were copied from https://github.com/wukevin/proteinclip to embed both ESM and ProteinCLIP. Without their pretrained models and code, I could not have produced the embeddings.
And credit to Fair ESM for the pretrained ESM2 models https://github.com/facebookresearch/esm.