Update README.md
Browse files
README.md
CHANGED
|
@@ -1,187 +1,184 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
- split: unknown
|
| 186 |
-
path: data/unknown-*
|
| 187 |
-
---
|
|
|
|
| 1 |
+
# SNOOPPI
|
| 2 |
+
|
| 3 |
+
SNOOPPI is a curated protein–protein interaction dataset containing positive, negative, and unknown interaction annotations.
|
| 4 |
+
|
| 5 |
+
The dataset preserves protein sequences, identifiers, species information, PSI-MI interaction terms, experimental evidence, publications, feature relationships, and annotation provenance where available.
|
| 6 |
+
|
| 7 |
+
## Dataset splits
|
| 8 |
+
|
| 9 |
+
SNOOPPI is distributed in three splits:
|
| 10 |
+
|
| 11 |
+
| Split | Description |
|
| 12 |
+
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
| 13 |
+
| `positive` | Protein pairs retained as positive interactions under the SNOOPPI annotation criteria |
|
| 14 |
+
| `negative` | Protein pairs retained as negative interactions under the SNOOPPI annotation criteria |
|
| 15 |
+
| `unknown` | Protein pairs present in the source interaction records but not assigned a definitive positive or negative label under the SNOOPPI criteria |
|
| 16 |
+
|
| 17 |
+
The `unknown` split should not automatically be interpreted as a negative or as a set of experimentally tested non-interactions. These entries represent interactions for which the available evidence was insufficient, conflicting, or otherwise unresolved under the annotation framework.
|
| 18 |
+
|
| 19 |
+
## Installation
|
| 20 |
+
|
| 21 |
+
Install the Hugging Face `datasets` package:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
pip install -U datasets
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## Load the complete dataset
|
| 28 |
+
|
| 29 |
+
```python
|
| 30 |
+
from datasets import load_dataset
|
| 31 |
+
|
| 32 |
+
snooppi = load_dataset("ChatterjeeLab/SNOOPPI")
|
| 33 |
+
|
| 34 |
+
print(snooppi)
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
This returns a `DatasetDict` containing the `positive`, `negative`, and `unknown` splits.
|
| 38 |
+
|
| 39 |
+
Access an individual split from the resulting object:
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
snooppi_positive = snooppi["positive"]
|
| 43 |
+
snooppi_negative = snooppi["negative"]
|
| 44 |
+
snooppi_unknown = snooppi["unknown"]
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
## Load one split directly
|
| 48 |
+
|
| 49 |
+
Load only the positive interactions:
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from datasets import load_dataset
|
| 53 |
+
|
| 54 |
+
snooppi_positive = load_dataset(
|
| 55 |
+
"ChatterjeeLab/SNOOPPI",
|
| 56 |
+
split="positive",
|
| 57 |
+
)
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
Load only the negative interactions:
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
snooppi_negative = load_dataset(
|
| 64 |
+
"ChatterjeeLab/SNOOPPI",
|
| 65 |
+
split="negative",
|
| 66 |
+
)
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
Load only the unknown interactions:
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
snooppi_unknown = load_dataset(
|
| 73 |
+
"ChatterjeeLab/SNOOPPI",
|
| 74 |
+
split="unknown",
|
| 75 |
+
)
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Convert a split to pandas
|
| 79 |
+
|
| 80 |
+
```python
|
| 81 |
+
from datasets import load_dataset
|
| 82 |
+
|
| 83 |
+
snooppi_pos = load_dataset(
|
| 84 |
+
"ChatterjeeLab/SNOOPPI",
|
| 85 |
+
split="positive",
|
| 86 |
+
).to_pandas()
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
Converting a complete split to pandas loads that split into memory. Users working in memory-constrained environments may prefer to filter the Hugging Face `Dataset` before calling `.to_pandas()`.
|
| 90 |
+
|
| 91 |
+
## Example queries
|
| 92 |
+
|
| 93 |
+
### Retrieve direct human positive interactions
|
| 94 |
+
|
| 95 |
+
The PSI-MI term `MI:0407` denotes a direct interaction. The NCBI taxonomy identifier for humans is `9606`.
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
from datasets import load_dataset
|
| 99 |
+
|
| 100 |
+
snooppi_pos = load_dataset(
|
| 101 |
+
"ChatterjeeLab/SNOOPPI",
|
| 102 |
+
split="positive",
|
| 103 |
+
).to_pandas()
|
| 104 |
+
|
| 105 |
+
direct_human_positive = snooppi_pos.loc[
|
| 106 |
+
snooppi_pos[
|
| 107 |
+
"unique_interaction_mi_terms"
|
| 108 |
+
].fillna("").str.contains(
|
| 109 |
+
"MI:0407",
|
| 110 |
+
regex=False,
|
| 111 |
+
)
|
| 112 |
+
& snooppi_pos[
|
| 113 |
+
"partner_A_species"
|
| 114 |
+
].fillna("").str.contains(
|
| 115 |
+
"9606",
|
| 116 |
+
regex=False,
|
| 117 |
+
)
|
| 118 |
+
& snooppi_pos[
|
| 119 |
+
"partner_B_species"
|
| 120 |
+
].fillna("").str.contains(
|
| 121 |
+
"9606",
|
| 122 |
+
regex=False,
|
| 123 |
+
)
|
| 124 |
+
].copy()
|
| 125 |
+
|
| 126 |
+
print(
|
| 127 |
+
f"Direct human positive interactions: "
|
| 128 |
+
f"{len(direct_human_positive):,}"
|
| 129 |
+
)
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
### Find all positive interactions involving a UniProt accession
|
| 133 |
+
|
| 134 |
+
```python
|
| 135 |
+
from datasets import load_dataset
|
| 136 |
+
|
| 137 |
+
snooppi_pos = load_dataset(
|
| 138 |
+
"ChatterjeeLab/SNOOPPI",
|
| 139 |
+
split="positive",
|
| 140 |
+
).to_pandas()
|
| 141 |
+
|
| 142 |
+
uniprot_accession = "P00734"
|
| 143 |
+
|
| 144 |
+
uniprot_ppis = snooppi_pos.loc[
|
| 145 |
+
snooppi_pos[
|
| 146 |
+
"partner_A_uniprot_ids"
|
| 147 |
+
].fillna("").str.contains(
|
| 148 |
+
uniprot_accession,
|
| 149 |
+
regex=False,
|
| 150 |
+
)
|
| 151 |
+
| snooppi_pos[
|
| 152 |
+
"partner_B_uniprot_ids"
|
| 153 |
+
].fillna("").str.contains(
|
| 154 |
+
uniprot_accession,
|
| 155 |
+
regex=False,
|
| 156 |
+
)
|
| 157 |
+
].copy()
|
| 158 |
+
|
| 159 |
+
print(
|
| 160 |
+
f"Positive interactions involving {uniprot_accession}: "
|
| 161 |
+
f"{len(uniprot_ppis):,}"
|
| 162 |
+
)
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
## Notes on identifier searches
|
| 166 |
+
|
| 167 |
+
Identifier fields may contain multiple source identifiers or annotations within one string. The examples therefore use literal substring matching with `regex=False`.
|
| 168 |
+
|
| 169 |
+
For analyses requiring exact identifier membership, users should parse the relevant identifier field according to its delimiter structure before testing membership.
|
| 170 |
+
|
| 171 |
+
## Intended use
|
| 172 |
+
|
| 173 |
+
SNOOPPI may support:
|
| 174 |
+
|
| 175 |
+
* Evaluation of protein–protein interaction prediction methods
|
| 176 |
+
* Analysis of positive and negative interaction evidence
|
| 177 |
+
* Study of sequence and feature relationships between interacting proteins
|
| 178 |
+
* Retrieval of interactions by UniProt accession, species, or PSI-MI term
|
| 179 |
+
|
| 180 |
+
Users should preserve the distinction among positive, negative, and unknown annotations when constructing evaluation or training datasets.
|
| 181 |
+
|
| 182 |
+
## Citation
|
| 183 |
+
|
| 184 |
+
Citation information will be added upon publication of the accompanying manuscript.
|
|
|
|
|
|
|
|
|