macwiatrak commited on
Commit
80aa0a7
·
verified ·
1 Parent(s): baa3052

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md CHANGED
@@ -1,3 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  dataset_info:
3
  features:
 
1
+ # Dataset for protein-protein interaction prediction (Protein sequences)
2
+
3
+ A dataset of 10,533 bacterial genomes across 6,956 species with protein-protein interaction (PPI) scores for each genome.
4
+
5
+ The genome protein sequences and PPI scores have been extracted from [STRING DB](https://string-db.org/).
6
+ 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.
7
+ The PPI scores have been extracted using the `combined` score from STRING DB.
8
+
9
+
10
+ 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`
11
+ (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
12
+ row. See example below in [Usage](#usage)
13
+
14
+
15
+ ## Usage
16
+ We recommend loading the dataset in a streaming mode to prevent memory errors.
17
+ ```python
18
+ from datasets import load_dataset
19
+
20
+
21
+ ds = load_dataset("macwiatrak/bacbench-ppi-stringdb-protein-sequences", split="validation", streaming=True)
22
+ item = next(iter(ds))
23
+
24
+ # fetch protein sequences from a genome (list of strings)
25
+ prot_seqs = item["protein_sequences"]
26
+ # fetch PPI triples labels (i.e. [prot1_index, prot2_index, score])
27
+ ppi_triples = item["triples_combined_score"]
28
+
29
+ # get protein seqs and label for one pair of proteins
30
+ prot1 = prot_seqs[ppi_triples[0]]
31
+ prot2 = prot_seqs[ppi_triples[1]]
32
+ score = ppi_triples[2] / 1000
33
+
34
+ # we recommend binarizing the labels based on the threshold of 0.6
35
+ binary_ppi_triples = [
36
+ (prot1_index, prot2_index, (score / 1000) >= 0.6) for prot1_index, prot2_index, score in ppi_triples
37
+ ]
38
+ ```
39
+
40
+ ## Split
41
+
42
+ We provide `train`, `validation` and `test` splits with proportions of `70 / 10 / 20` (%) respectively as part of the dataset. The split was performed randomly at genome level.
43
+
44
+ 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 antibiotic
45
+ resistance from sequence.
46
+
47
  ---
48
  dataset_info:
49
  features: