svincoff commited on
Commit
f6063ec
·
verified ·
1 Parent(s): 4cb1bd6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +184 -187
README.md CHANGED
@@ -1,187 +1,184 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: SNOOPPI_final_label
5
- dtype: string
6
- - name: MI0915_final_label
7
- dtype: string
8
- - name: SNOOPPI_Partner_A_ID
9
- dtype: string
10
- - name: SNOOPPI_Partner_B_ID
11
- dtype: string
12
- - name: SNOOPPI_Pair_ID
13
- dtype: string
14
- - name: SNOOPPI_Labeled_Pair_ID
15
- dtype: string
16
- - name: seq_sort
17
- dtype: string
18
- - name: unique_interaction_mi_terms
19
- dtype: string
20
- - name: partner_A_sequence
21
- dtype: string
22
- - name: partner_B_sequence
23
- dtype: string
24
- - name: partner_A_length
25
- dtype: string
26
- - name: partner_B_length
27
- dtype: string
28
- - name: partner_A_mol_type
29
- dtype: string
30
- - name: partner_B_mol_type
31
- dtype: string
32
- - name: intact_interaction_ids
33
- dtype: string
34
- - name: n_intact_interaction_ids
35
- dtype: string
36
- - name: partner_A_intact_interactor_ids
37
- dtype: string
38
- - name: partner_B_intact_interactor_ids
39
- dtype: string
40
- - name: partner_A_n_intact_interactor_ids
41
- dtype: string
42
- - name: partner_B_n_intact_interactor_ids
43
- dtype: string
44
- - name: partner_A_uniprot_ids
45
- dtype: string
46
- - name: partner_B_uniprot_ids
47
- dtype: string
48
- - name: partner_A_gene_names
49
- dtype: string
50
- - name: partner_B_gene_names
51
- dtype: string
52
- - name: partner_A_species
53
- dtype: string
54
- - name: partner_B_species
55
- dtype: string
56
- - name: mi_scores_all
57
- dtype: string
58
- - name: mi_score_mean
59
- dtype: string
60
- - name: mi_score_min
61
- dtype: string
62
- - name: mi_score_max
63
- dtype: string
64
- - name: assays_unique
65
- dtype: string
66
- - name: n_assays_unique
67
- dtype: string
68
- - name: n_papers
69
- dtype: string
70
- - name: pubmed_ids
71
- dtype: string
72
- - name: publication_years_all
73
- dtype: string
74
- - name: publication_year_min
75
- dtype: string
76
- - name: publication_year_max
77
- dtype: string
78
- - name: feature_relationship_types
79
- dtype: string
80
- - name: feature_relationship_summary
81
- dtype: string
82
- - name: has_mutation_relationship
83
- dtype: string
84
- - name: has_ptm_relationship
85
- dtype: string
86
- - name: has_binding_site_relationship
87
- dtype: string
88
- - name: partner_A_wildtype_sequence_if_feature_modified
89
- dtype: string
90
- - name: partner_B_wildtype_sequence_if_feature_modified
91
- dtype: string
92
- - name: wildtype_seq_sort_if_feature_modified
93
- dtype: string
94
- - name: wildtype_SNOOPPI_final_label
95
- dtype: string
96
- - name: wildtype_MI0915_final_label
97
- dtype: string
98
- - name: exact_sequence_pair_intact_label_summary
99
- dtype: string
100
- - name: snooppi_label_transition_from_intact
101
- dtype: string
102
- - name: seq_sort_origin_categories
103
- dtype: string
104
- - name: unique_expansions
105
- dtype: string
106
- - name: partner_A_go_terms
107
- dtype: string
108
- - name: partner_B_go_terms
109
- dtype: string
110
- - name: partner_A_dip
111
- dtype: string
112
- - name: partner_B_dip
113
- dtype: string
114
- - name: partner_A_ensg
115
- dtype: string
116
- - name: partner_B_ensg
117
- dtype: string
118
- - name: partner_A_ense
119
- dtype: string
120
- - name: partner_B_ense
121
- dtype: string
122
- - name: partner_A_enst
123
- dtype: string
124
- - name: partner_B_enst
125
- dtype: string
126
- - name: partner_A_interpro
127
- dtype: string
128
- - name: partner_B_interpro
129
- dtype: string
130
- - name: partner_A_rcsb_pdb
131
- dtype: string
132
- - name: partner_B_rcsb_pdb
133
- dtype: string
134
- - name: partner_A_reactome
135
- dtype: string
136
- - name: partner_B_reactome
137
- dtype: string
138
- - name: partner_A_host_context
139
- dtype: string
140
- - name: partner_B_host_context
141
- dtype: string
142
- - name: partner_A_sequence_snooppi_degree_by_label
143
- dtype: string
144
- - name: partner_B_sequence_snooppi_degree_by_label
145
- dtype: string
146
- - name: partner_A_sequence_modified_role_counts
147
- dtype: string
148
- - name: partner_B_sequence_modified_role_counts
149
- dtype: string
150
- - name: partner_A_sequence_partner_modified_role_counts
151
- dtype: string
152
- - name: partner_B_sequence_partner_modified_role_counts
153
- dtype: string
154
- - name: partner_A_gene_snooppi_degree_by_label
155
- dtype: string
156
- - name: partner_B_gene_snooppi_degree_by_label
157
- dtype: string
158
- - name: partner_A_gene_modified_role_counts
159
- dtype: string
160
- - name: partner_B_gene_modified_role_counts
161
- dtype: string
162
- - name: partner_A_gene_partner_modified_role_counts
163
- dtype: string
164
- - name: partner_B_gene_partner_modified_role_counts
165
- dtype: string
166
- splits:
167
- - name: positive
168
- num_bytes: 153392772
169
- num_examples: 33625
170
- - name: negative
171
- num_bytes: 34725795
172
- num_examples: 5378
173
- - name: unknown
174
- num_bytes: 4648675404
175
- num_examples: 835084
176
- download_size: 1460575565
177
- dataset_size: 4836793971
178
- configs:
179
- - config_name: default
180
- data_files:
181
- - split: positive
182
- path: data/positive-*
183
- - split: negative
184
- path: data/negative-*
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.