Commit ·
9db7bc0
1
Parent(s): 85ff58b
modified database structure
Browse filesFiles changed (12)
- .gitattributes+3-57
- README.md+46-144
- comps_smiles.pkl → compound_data/pdb_chembl/ligands.parquetRenamed+2-2
- comps_fps.npy → compound_data/pdb_chembl/reps/chemberta_zinc_base_768.datRenamed+2-2
- idx_to_id.pkl → compound_data/pdb_chembl/reps/chemberta_zinc_base_768.meta.jsonRenamed+2-2
- comps_embs.npy → compound_data/pdb_chembl/reps/morgan_1024_r2.datRenamed+2-2
- ligs_fams_curated.pkl → compound_data/pdb_chembl/reps/morgan_1024_r2.meta.jsonRenamed+2-2
- fam_prot_dict.pkl → rev_ligq/fam_prot_dict.pklRenamed
- ligand_lists.pkl → rev_ligq/ligand_lists.pklRenamed+2-2
- id_to_idx.pkl → rev_ligq/ligs_fams_curated.pklRenamed+2-2
- ligs_fams_possible.pkl → rev_ligq/ligs_fams_possible.pklRenamed+2-2
- prot_descriptions.pkl → rev_ligq/prot_descriptions.pklRenamed
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.lz4 filter=lfs diff=lfs merge=lfs -text*.mds filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text# Audio files - uncompressed*.pcm filter=lfs diff=lfs merge=lfs -text*.sam filter=lfs diff=lfs merge=lfs -text*.raw filter=lfs diff=lfs merge=lfs -text# Audio files - compressed*.aac filter=lfs diff=lfs merge=lfs -text*.flac filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text# Image files - uncompressed*.bmp filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text*.tiff filter=lfs diff=lfs merge=lfs -text# Image files - compressed*.jpg filter=lfs diff=lfs merge=lfs -text*.jpeg filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -text# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text12345*.parquet filter=lfs diff=lfs merge=lfs -text*.dat filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970718 unmodified lines8081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177---license: mit---# ReverseLigQ DatasetsThis repository contains the curated datasets used by **ReverseLigQ**, a platform designed to search for potential protein targets (molecular targets) of bioactive compounds.The data stored here includes ligand representations, mappings between internal indices and compound identifiers, and curated associations between ligands and Pfam domains derived from structural and sequence information.---## Contents### 1. Embeddings and Fingerprints- **`comps_embs.npy`**NumPy array containing **ChemBERTa embeddings** for ligands derived from **PDB** and **ChEMBL**.Each row corresponds to a ligand, and the position in the array is linked to the internal index (`idx`) used throughout ReverseLigQ.- **`comps_fps.npy`**NumPy array containing **Morgan fingerprints** (circular fingerprints, ECFP-like) for the same set of ligands from **PDB** and **ChEMBL**.As with `comps_embs.npy`, rows are aligned with the internal ligand index (`idx`).---### 2. Index–Identifier Mappings- **`id_to_idx.pkl`**Python dictionary mapping **ligand identifiers** (e.g., from PDB or ChEMBL) to the **internal index** (`idx`) used in the arrays `comps_embs.npy` and `comps_fps.npy`.This mapping allows you to go from an external ligand ID to the corresponding row in the embedding and fingerprint matrices.- **`idx_to_id.pkl`**Inverse mapping of `id_to_idx.pkl`.It is a Python dictionary mapping the internal index (`idx`) back to the **original ligand identifier**.This is useful, for example, when retrieving nearest neighbors in embedding space by index and then needing to recover the original IDs.---### 3. Ligand–Pfam Domain Associations- **`ligs_fams_curated.pkl`**Python dictionary mapping ligands to **Pfam domains they are known to bind**, based on **curated, high-confidence evidence**.This curated set includes ligands whose associated domain can be determined unambiguously from:- a **resolved 3D structure** (e.g., a PDB complex where the domain is clearly defined),- a **protein with a single domain**, or- **strong structural similarity** to another ligand whose interaction has been experimentally confirmed in a solved 3D structure.This file represents the **high-confidence (curated) ligand–domain associations** used by ReverseLigQ.- **`ligs_fams_possible.pkl`**Python dictionary mapping ligands to **possible Pfam domains they may bind**, in cases where the specific domain cannot be determined with certainty.Here, the reference protein:- often contains **multiple domains**,- does **not** have a resolved 3D structure for the ligand–protein complex, and therefore- it is unclear which of the possible domains is the true binding site.This file therefore represents **putative or ambiguous ligand–domain associations**, complementing the curated set.---### 4. Organism-Specific DatasetsReverseLigQ integrates multiple organisms, each identified by an integer key.The files in this section provide organism-level ligand lists, protein descriptions, and Pfam-based protein families.Organism keys and corresponding species:| Key | Organism ||-----|----------|| 1 | *Bartonella bacilliformis* || 2 | *Klebsiella pneumoniae* || 3 | *Mycobacterium tuberculosis* |8 unmodified lines| 12 | SARS-CoV-2 || 13 | *Homo sapiens* |#### Files:- **`ligand_lists.pkl`**Python dictionary containing the **list of ligands associated with each organism** included in the platform.Keys correspond to organism indices (1–13), and values are lists of ligand identifiers.- **`prot_descriptions.pkl`**Python dictionary containing **protein descriptions** (annotations, functional summaries, etc.) for each protein present in the integrated organisms.- **`fam_prot_dict.pkl`**Python dictionary mapping each organism to its **proteins grouped by Pfam families**.For each organism key, the value is another dictionary where:- keys are Pfam domain identifiers, and- values are lists of proteins belonging to that domain family.These files enable ReverseLigQ to perform organism-specific ligand searches, identify relevant targets, and reconstruct ligand–domain landscapes across diverse pathogens and host species.---## Usage Notes- The **internal index** (`idx`) is the key that ties together:- rows in `comps_embs.npy`- rows in `comps_fps.npy`- entries in `id_to_idx.pkl` / `idx_to_id.pkl`- The **Pfam-domain dictionaries** (`ligs_fams_curated.pkl` and `ligs_fams_possible.pkl`) can be used to:- build training or evaluation sets for ligand–target or ligand–domain prediction,- separate high-confidence from ambiguous associations,- benchmark methods that infer protein targets from ligand similarity.- The **organism-level dictionaries** (`ligand_lists.pkl`, `prot_descriptions.pkl`, `fam_prot_dict.pkl`) support:- organism-specific prioritization of targets,- analyses of Pfam family distribution across species,- integration of ligand knowledge with genomic and proteomic data.---## Example 1 (Python)```pythonimport numpy as npimport pickle# Load embeddings and fingerprintsembs = np.load("comps_embs.npy")fps = np.load("comps_fps.npy")# Load mappingswith open("id_to_idx.pkl", "rb") as f:id_to_idx = pickle.load(f)with open("idx_to_id.pkl", "rb") as f:idx_to_id = pickle.load(f)# Load curated ligand–Pfam associationswith open("ligs_fams_curated.pkl", "rb") as f:ligs_fams_curated = pickle.load(f)# Example: get embedding for a given ligand IDlig_id = "CHEMBL123456"idx = id_to_idx[lig_id]lig_emb = embs[idx]lig_fp = fps[idx]```## Example 2 (Python)```pythonimport pickle# Load curated and possible ligand–Pfam associationswith open("ligs_fams_curated.pkl", "rb") as f:ligs_fams_curated = pickle.load(f)with open("ligs_fams_possible.pkl", "rb") as f:ligs_fams_possible = pickle.load(f)lig_id = "CHEMBL123456"# High-confidence binding domains (if available)curated_domains = ligs_fams_curated.get(lig_id, [])# Possible (ambiguous) domainspossible_domains = ligs_fams_possible.get(lig_id, [])print("Curated Pfam domains:", curated_domains)print("Possible Pfam domains:", possible_domains)```## CitationIf you use these datasets, please cite:Schottlender G, Prieto JM, Palumbo MC, Castello FA, Serral F, Sosa EJ, Turjanski AG, Martí MA and Fernández Do Porto D (2022).From drugs to targets: Reverse engineering the virtual screening process on a proteomic scale.Front. Drug. Discov. 2:969983. doi: 10.3389/fddsv.2022.9699831234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162638 unmodified lines7273747576777879# ReverseLigQ dataset (Hugging Face)This repository contains the **ReverseLigQ** dataset files in a simplified layout designed to be loaded with a `LigandStore`/`Representation` interface (compound representations) plus organism-level auxiliary tables (ReverseLigQ metadata).## Directory layout```compound_data/pdb_chembl/ligands.parquetreps/chemberta_zinc_base_768.datchemberta_zinc_base_768.meta.jsonmorgan_1024_r2.datmorgan_1024_r2.meta.jsonrev_ligq/fam_prot_dict.pklligand_lists.pklligs_fams_curated.pklligs_fams_possible.pklprot_descriptions.pkl```## Compound data (`compound_data/pdb_chembl/`)### `ligands.parquet`Canonical ligand index table with a **dense integer index** (`lig_idx`) used to align all representations on disk.Typical columns:- `chem_comp_id`: unified ligand ID (PDB CCD or ChEMBL)- `smiles`: canonical SMILES- `inchikey`: optional (may be missing)- `lig_idx`: dense index **0..N-1** (row order for the `.dat` matrices)### Representations (`reps/`)Each representation is stored as:- `<rep_name>.dat`: memory-mapped matrix on disk- `<rep_name>.meta.json`: metadata (dtype, dim, packed_bits, etc.)Available representations:- `chemberta_zinc_base_768`: ChemBERTa embeddings (dim=768), dense float matrix.- `morgan_1024_r2`: Morgan fingerprints (1024 bits, radius=2), stored with `packed_bits=true`.## Organism-specific tables (`rev_ligq/`)These files provide organism-level ligand lists, Pfam-based protein families, and optional protein descriptions used to project ligand-level similarity hits into candidate protein targets.- `ligand_lists.pkl`: dict `{organism_key (str): [chem_comp_id, ...]}`- `ligs_fams_curated.pkl`: dict `{chem_comp_id: [pfam_id, ...]}` (curated evidence)- `ligs_fams_possible.pkl`: dict `{chem_comp_id: [pfam_id, ...]}` (possible/uncurated evidence)- `fam_prot_dict.pkl`: nested dict `{organism_key: {pfam_id: [uniprot_id, ...]}}`- `prot_descriptions.pkl`: protein descriptions (when available)### Organism keysReverseLigQ integrates multiple organisms, each identified by an integer key:| Key | Organism ||---:|---|| 1 | *Bartonella bacilliformis* || 2 | *Klebsiella pneumoniae* || 3 | *Mycobacterium tuberculosis* |8 unmodified lines| 12 | SARS-CoV-2 || 13 | *Homo sapiens* |## CitationIf you use these datasets, please cite:Schottlender G, Prieto JM, Palumbo MC, Castello FA, Serral F, Sosa EJ, Turjanski AG, Martí MA and Fernández Do Porto D (2022). *From drugs to targets: Reverse engineering the virtual screening process on a proteomic scale.* Front. Drug. Discov. 2:969983. doi: 10.3389/fddsv.2022.969983
123version https://git-lfs.github.com/spec/v1oid sha256:ec36aebd331dfe25dfe23edfedc5d1c7f2d81ee17fb1e30aa45136773b790862size 40481808123version https://git-lfs.github.com/spec/v1oid sha256:25aed4e04b4511006b86340fe8c9e8d577247ba8b4fa138f740a95c888cccf5esize 55410421
123version https://git-lfs.github.com/spec/v1oid sha256:e4ca1da0225466d89cab952b08d2e54584c995a383a8ab6a55a5fc1efaa15fa5size 509630592123version https://git-lfs.github.com/spec/v1oid sha256:a6fa24602f2f0346325e1eff59d2183a5eb35d9eb4498663430783674573167bsize 1531736064
123version https://git-lfs.github.com/spec/v1oid sha256:748841ac4bad3ba204a88dc828e1ae5171c719c6bbcc37eaa114a615a0f904d5size 7595477123version https://git-lfs.github.com/spec/v1oid sha256:cd4ec1159a18802b365e211d06f03d7c1497b814cb5688d1e47e29cf9df2fc5asize 284
123version https://git-lfs.github.com/spec/v1oid sha256:89f99649c8f6eb5fe5f8bafb414a5447d834da1381e55f983288d3bc3bd98c0esize 764445824123version https://git-lfs.github.com/spec/v1oid sha256:36dd64e4285c70f9b555f56be3b1681f34c07cbe7a16cedc1f5e850542799759size 127644672
123version https://git-lfs.github.com/spec/v1oid sha256:c8426f43872cae26908aa3cadca6e7d3c4583619b4bfcfbe655ac79b50f0227esize 8551407123version https://git-lfs.github.com/spec/v1oid sha256:090714ccad6ce77a3f84de46a23070e2397a90ce04f996c8ab0953d47e32cb4asize 179
123version https://git-lfs.github.com/spec/v1oid sha256:0e22d8bd30818dbf1c7b1aa491c2623ef3b66915664c3e71ede02477b51ff0absize 39096633123version https://git-lfs.github.com/spec/v1oid sha256:0ff1c803617f14b1c7cd23c3716f47d8c236f99e6b14aeeb2db9897d8efad66dsize 36075926
123version https://git-lfs.github.com/spec/v1oid sha256:5d179e09608b99f6cd82304f1c22eb82faa89793eec88e7757ec8126fe7759a2size 9952903123version https://git-lfs.github.com/spec/v1oid sha256:5f8c52c4dc860c302a94acf68fd5bc90603245be9e7fb3aae8b7934632983921size 16545203
123version https://git-lfs.github.com/spec/v1oid sha256:d2f4468669dff0808b5c8a1d207a9e7e20eb1585217584ad2375c23cd9e50fe2size 9145930123version https://git-lfs.github.com/spec/v1oid sha256:0dc58000499d514814f12c188ac2a9b4a02bdce45a1409f8d75888cfe5cb44bcsize 12026534
.gitattributes+3-57
README.md+46-144
comps_smiles.pkl → compound_data/pdb_chembl/ligands.parquetRenamed+2-2
comps_fps.npy → compound_data/pdb_chembl/reps/chemberta_zinc_base_768.datRenamed+2-2
idx_to_id.pkl → compound_data/pdb_chembl/reps/chemberta_zinc_base_768.meta.jsonRenamed+2-2
comps_embs.npy → compound_data/pdb_chembl/reps/morgan_1024_r2.datRenamed+2-2
ligs_fams_curated.pkl → compound_data/pdb_chembl/reps/morgan_1024_r2.meta.jsonRenamed+2-2
fam_prot_dict.pkl → rev_ligq/fam_prot_dict.pklRenamed
ligand_lists.pkl → rev_ligq/ligand_lists.pklRenamed+2-2
id_to_idx.pkl → rev_ligq/ligs_fams_curated.pklRenamed+2-2
ligs_fams_possible.pkl → rev_ligq/ligs_fams_possible.pklRenamed+2-2
prot_descriptions.pkl → rev_ligq/prot_descriptions.pklRenamed