PocketVina Atlas¶
The PocketVina Atlas is a public database of
docking results computed in advance: a library of drugs docked with PocketVina against the whole human proteome (the
AlphaFold models of human proteins). pocketvina.Atlas reads these results from Python. You can search them, rank
them, look at a protein–drug pair in 3D, save its poses and download a part of the Atlas. You run no docking yourself,
so no GPU is needed. The website describes the data and how it was made.
To try it in your browser, open the Colab notebook.
Step by step¶
Each step below shows its output, from the public Atlas. In a table, long text is cut short.
Open the Atlas¶
Atlas() reads the public database over the internet. It fetches only what a call needs, and keeps the files it
fetched for the next time (see Where files are kept):
from pocketvina import Atlas
atlas = Atlas()
atlas
PocketVina Atlas v1.1: 18,713 proteins, 2,559 drugs, 48,406,051 pairs [https://bimsbstatic.mdc-berlin.de/akalin/asarigun/pocketvina_atlas/data/v1.1/]
Search¶
search finds proteins and drugs by any of their names or identifiers, best match first:
atlas.search("ABL1")
kind id name matched value
0 protein P00519 ABL1: Tyrosine-protein k... gene ABL1
1 protein Q8TDN4 CABLES1: CDK5 and ABL1 e... protein name CDK5 and ABL1 enzyme sub...
2 protein Q9BTV7 CABLES2: CDK5 and ABL1 e... protein name CDK5 and ABL1 enzyme sub...
Part of a name works too:
atlas.search("tinib", top=5)
kind id name matched value
0 drug PVL00043 Masitinib (AB1010) name Masitinib (AB1010)
1 drug PVL00079 Infigratinib Phosphate name Infigratinib Phosphate
2 drug PVL00105 Pemigatinib (INCB054828) name Pemigatinib (INCB054828)
3 drug PVL00119 Axitinib name Axitinib
4 drug PVL00121 Selumetinib (AZD6244) name Selumetinib (AZD6244)
A protein and a drug¶
protein shows what the Atlas knows about a protein:
atlas.protein("ABL1")
ProteinInfo P00519 (ABL1): Tyrosine-protein kinase ABL1
AlphaFold model AF-P00519-F1-model_v6, mean pLDDT 63.4
class Enzyme > Kinase
5 pockets (P2Rank)
10 associated diseases (Open Targets)
drug shows the identifiers of a drug:
atlas.drug("imatinib")
DrugInfo PVL00129: Imatinib (STI571)
ChEMBL ID: CHEMBL1642
catalogue numbers: S1026, S2475
InChIKey: KTUFNOKKBVMGRW-UHFFFAOYSA-N
parent SMILES: Cc1ccc(NC(=O)c2ccc(CN3CCN(C)CC3)cc2)cc1Nc1nccc(-c2cccnc2)n1
library SMILES: CN1CCN(CC1)CC2=CC=C(C=C2)C(=O)NC3=CC=C(C)C(=C3)NC4=NC=CC(=N4)C5=CC=CN=C5.C[S](O)(=O)=O
docked SMILES: Cc1ccc(NC(=O)c2ccc(CN3CCN(C)CC3)cc2)cc1Nc1nccc(-c2cccnc2)n1
synonyms: Glamox, Imatinib
ATC: L01EA01
In Jupyter, Colab or VS Code both are small cards, with links to UniProt, AlphaFold DB and Open Targets for the protein, and to ChEMBL for the drug.
Best scores¶
The drugs with the lowest Vina score on a protein, highest-affinity first (in kcal/mol: lower is better):
atlas.best_scores(protein="ABL1", top=5)
protein_id gene ligand_id name vina best_pocket best_mode ligand_efficiency
0 P00519 ABL1 PVL00898 Hypericin -13.4 1 1 0.353
1 P00519 ABL1 PVL01982 Midostaurin (PKC412) -11.4 1 1 0.265
2 P00519 ABL1 PVL00250 Drospirenone -11.0 1 1 0.407
3 P00519 ABL1 PVL02025 Sanguinarine -10.8 1 1 0.432
4 P00519 ABL1 PVL00271 Staurosporine -10.7 1 1 0.306
The proteins on which a drug has its lowest Vina score:
atlas.best_scores(ligand="imatinib", top=5)
protein_id gene ligand_id name vina best_pocket best_mode ligand_efficiency
0 Q9H9P8 L2HGDH PVL00129 Imatinib (STI571) -12.0 1 1 0.324
1 Q9BZH6 WDR11 PVL00129 Imatinib (STI571) -11.9 1 1 0.322
2 Q7KZN9 COX15 PVL00129 Imatinib (STI571) -11.7 1 1 0.316
3 Q8WZ60 KLHL6 PVL00129 Imatinib (STI571) -11.7 1 1 0.316
4 O75908 SOAT2 PVL00129 Imatinib (STI571) -11.6 2 1 0.314
Without top, you get every row.
One protein–drug pair¶
select takes the poses of one pair. With pocket="all" it takes the highest-affinity pose in each pocket. The
star marks the pocket of the pair's highest-affinity pose:
pair = atlas.select(protein="ABL1", ligand="imatinib", pocket="all")
pair
Selection PV_P00519_PVL00129: protein P00519, ligand PVL00129, the highest-affinity pose in each pocket: 5 poses
SMILES: CN1CCN(CC1)CC2=CC=C(C=C2)C(=O)NC3=CC=C(C)C(=C3)NC4=NC=CC(=N4)C5=CC=CN=C5.C[S](O)(=O)=O
pocket lowest Vina score (kcal/mol) modes
1 * -8.5 1
2 -6.9 1
3 -7.8 1
4 -7.7 1
5 -6.8 1
show draws the pair in 3D. In Jupyter, Colab or VS Code the page appears below the cell. In a script it is saved as
an HTML file, and its path is printed:
pair.show()
The page is interactive: rotate the protein, switch pockets, or pick another drug in Top hits.
bust runs the PoseBusters checks on these poses. It gives one row per pose, with one column per check; these are
the summary columns:
checks = pair.bust()
checks[["pocket", "mode", "vina", "pb_valid", "pb_status", "failed_checks"]]
pocket mode vina pb_valid pb_status failed_checks
0 1 1 -8.5 True valid None
1 2 1 -6.9 True valid None
2 3 1 -7.8 True valid None
3 4 1 -7.7 True valid None
4 5 1 -6.8 True valid None
export saves the poses as an SDF file and returns its path:
pair.export()
'/path/to/PV_P00519_PVL00129_pocketall_top.sdf'
With protein=True, it also saves the protein (its AlphaFold model) as a PDB file, and returns both paths:
pair.export(protein=True)
['/path/to/PV_P00519_PVL00129_pocketall_top.sdf', '/path/to/PV_P00519.pdb']
select and the pair's methods are the same as for your own docking results: see
Selecting poses and PoseBusters checks.
The 3D page¶
atlas.show(protein="ABL1") shows the protein's page, as show() does for a run. pair.show() shows the same page
with the pair selected. Top hits lists the highest-affinity drugs with a PoseBusters-valid pose, as on the website.
Selected pair also has the drug's identifiers, and the page has the protein's information. path="ABL1.html" saves
the page to that file. 3D views describes the parts of the page.
Each drug in Top hits has the website's two ChEMBL values. Click a value to open it in ChEMBL. The website explains how both are made.
ChEMBL Strict: ChEMBL evidence for this protein–drug pair, by the exact structure (mechanisms also from its salt forms) and strict rules. MoA: a known mechanism-of-action target. assay: strict binding-assay evidence. weak: permissive assay evidence only. –: none, which is not the same as no binding.
ChEMBL Complete: every ChEMBL record of this drug on this protein, also from its salt forms and from records of the same structure without stereo; not filtered. Other drugs of the same structure (stereoisomers, the racemate) are not counted. MoA: a mechanism of action; assay n · p: n activity records of any assay, p the best pChEMBL where measured.
ChEMBL Complete comes from the release's chembl_any/ folder, which the public Atlas has. A release folder or a
download without it, such as one made by PocketVina 0.4.2 or older, shows ChEMBL Strict only.
As on the website, ChEMBL Strict also counts mechanisms that ChEMBL records on a salt or alternative form of the
drug (key "moa" of chembl_any/strict.json.gz); the release's own files keep the original labels. A download made
before the website added "moa" (19 November 2026), or one without chembl_any/, shows the original labels; running
download() into it again adds it.
Identifiers¶
protein= takes any identifier of a protein: its gene ("ABL1"), UniProt accession ("P00519"), entry name
("ABL1_HUMAN"), Entrez, HGNC or Ensembl gene ID, a gene synonym or the protein name.
ligand= takes any identifier of a drug: its name or a synonym ("imatinib"), its PVL ID (the Atlas ID of a docked
structure), ChEMBL ID, catalogue number, InChIKey (or its first block) or a SMILES of the same molecule.
Case is ignored. If an identifier belongs to several proteins or drugs, the error lists them; then use the UniProt
accession or the PVL ID. atlas.search also finds part of a name.
Command line¶
The pocketvina atlas commands do the same in a shell. search lists the matches:
pocketvina atlas search imatinib
kind id name matched value
drug PVL00129 Imatinib (STI571) name Imatinib (STI571)
show writes the 3D page of a protein, here with a drug selected, and prints its path:
pocketvina atlas show ABL1 --ligand imatinib --out ABL1_imatinib.html
/path/to/ABL1_imatinib.html
download copies proteins for offline use (see below):
pocketvina atlas download ABL1 EGFR --out my_atlas
PocketVina Atlas v1.1: 2,777 files, 295.1 MB, for 2 proteins into /path/to/my_atlas
/path/to/my_atlas
See the command line reference for every option.
Offline use¶
download copies what the Atlas has on some proteins into a folder. The pose files are large: before it starts, it
says how many files and MB it copies, then it shows a progress bar. It returns the folder:
atlas.download(proteins=["ABL1", "EGFR"], out="my_atlas")
PocketVina Atlas v1.1: 2,777 files, 295.1 MB, for 2 proteins into /path/to/my_atlas
'/path/to/my_atlas'
Atlas then reads that folder, without internet:
offline = Atlas("my_atlas")
offline.best_scores(protein="ABL1", top=5)
protein_id gene ligand_id name vina best_pocket best_mode ligand_efficiency
0 P00519 ABL1 PVL00898 Hypericin -13.4 1 1 0.353
1 P00519 ABL1 PVL01982 Midostaurin (PKC412) -11.4 1 1 0.265
2 P00519 ABL1 PVL00250 Drospirenone -11.0 1 1 0.407
3 P00519 ABL1 PVL02025 Sanguinarine -10.8 1 1 0.432
4 P00519 ABL1 PVL00271 Staurosporine -10.7 1 1 0.306
A download that stopped goes on where it stopped when you run it again.
The files are checked against the release's MANIFEST.json (size and sha256; the few files it does not list, by size, P2Rank's SAS points against sas/MANIFEST.json and the ChEMBL records of ChEMBL Complete against chembl_any/MANIFEST.json).
In the folder,
searchandbest_scores(ligand=...)list only its proteins.
To read the folder by default, set POCKETVINA_ATLAS to its full path, for example
export POCKETVINA_ATLAS=/path/to/my_atlas in a shell. Atlas() and pocketvina atlas then read it.
Where files are kept¶
Files read over the internet are kept in ~/.cache/pocketvina/atlas/ (or $XDG_CACHE_HOME/pocketvina/atlas/), so
the second look is fast. The lists of the SAS point files and ChEMBL files are checked with the server once for each
Atlas(), so updates of the site show up without deleting the folder. You can delete this folder at any time.
Citing¶
If you use the Atlas, cite it as its citation page says. For PocketVina, see Citing and acknowledgements.