Update README.md
Browse files
README.md
CHANGED
|
@@ -47,4 +47,68 @@ configs:
|
|
| 47 |
path: data/test-*
|
| 48 |
license: apache-2.0
|
| 49 |
pretty_name: Dataset for predicting protein-protein interactions in bacterial genomes
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
path: data/test-*
|
| 48 |
license: apache-2.0
|
| 49 |
pretty_name: Dataset for predicting protein-protein interactions in bacterial genomes
|
| 50 |
+
tags:
|
| 51 |
+
- biology
|
| 52 |
+
- protein
|
| 53 |
+
- PPI
|
| 54 |
+
- genomics
|
| 55 |
+
- STRING-DB
|
| 56 |
+
- bacteria
|
| 57 |
+
- interactome
|
| 58 |
+
size_categories:
|
| 59 |
+
- n<1K
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
# Dataset for protein-protein interaction prediction across bacteria (Protein sequences)
|
| 63 |
+
|
| 64 |
+
A dataset of 261 bacterial genomes across 215 genera with protein-protein interaction (PPI) scores for each genome.
|
| 65 |
+
|
| 66 |
+
The genome protein sequences and PPI scores have been extracted from [STRING DB](https://string-db.org/).
|
| 67 |
+
Each row contains a set of protein sequences from a genome, ordered by their location on the chromosome and plasmids and a set of associated PPI scores.
|
| 68 |
+
The PPI scores have been extracted using the `combined` score from STRING DB.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
The interaction between two proteins is represented by a triple: `[prot1_index, prot2_index, score]`. Where to get a probability score, you must divide the score by `1000`
|
| 72 |
+
(i.e. if the score is `721` then to get a true score do `721/1000=0.721`). The index of a protein refers to the index of the protein in the `protein_sequences` column of the
|
| 73 |
+
row. See example below in [Usage](#usage)
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
## Usage
|
| 77 |
+
We recommend loading the dataset in a streaming mode to prevent memory errors.
|
| 78 |
+
```python
|
| 79 |
+
from datasets import load_dataset
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
ds = load_dataset("macwiatrak/bacbench-ppi-stringdb-protein-sequences-small", split="validation", streaming=True)
|
| 83 |
+
item = next(iter(ds))
|
| 84 |
+
|
| 85 |
+
# select a contig_idx
|
| 86 |
+
contig_idx = 0
|
| 87 |
+
# fetch protein sequences from a genome (list of strings) for the contig_idx
|
| 88 |
+
prot_seqs = item["protein_sequence"][contig_idx]
|
| 89 |
+
# fetch PPI triples labels (i.e. [prot1_index, prot2_index, score])
|
| 90 |
+
ppi_triples = item["labels"][contig_idx]
|
| 91 |
+
|
| 92 |
+
# get protein seqs and label for one pair of proteins
|
| 93 |
+
prot1 = prot_seqs[ppi_triples[0][0]]
|
| 94 |
+
prot2 = prot_seqs[ppi_triples[0][1]]
|
| 95 |
+
score = ppi_triples[0][2] / 1000
|
| 96 |
+
|
| 97 |
+
# we recommend binarizing the labels based on the threshold of 0.6
|
| 98 |
+
binary_ppi_triples = [
|
| 99 |
+
(prot1_index, prot2_index, int((score / 1000) >= 0.6)) for prot1_index, prot2_index, score in ppi_triples
|
| 100 |
+
]
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## Split
|
| 104 |
+
|
| 105 |
+
We provide a phylogeny-aware `train`, `validation` and `test` split by genus with proportions of `60 / 10 / 20` (%) respectively as part of the dataset.
|
| 106 |
+
This means that the the genera in train, validation and test do not overlap.
|
| 107 |
+
|
| 108 |
+
See [github repository](https://github.com/macwiatrak/Bacbench) for details on how to embed the dataset with DNA and protein language models as well as code to predict
|
| 109 |
+
protein-protein interactions.
|
| 110 |
+
|
| 111 |
+
## Relevant resources:
|
| 112 |
+
|
| 113 |
+
* Equivalent dataset with DNA rather than protein sequences - https://huggingface.co/datasets/macwiatrak/bacbench-ppi-stringdb-dna-small
|
| 114 |
+
* Full dataset of bacterial organisms with associated PPI from STRING DB (10,533 genomes) - https://huggingface.co/datasets/macwiatrak/bacbench-ppi-stringdb-protein-sequences
|