YYJMAY commited on
Commit
2b4a6ec
·
verified ·
1 Parent(s): 19b3208

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +137 -0
README.md ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-classification
5
+ tags:
6
+ - peptide
7
+ - mhc
8
+ - hla
9
+ - binding-prediction
10
+ - immunology
11
+ size_categories:
12
+ - n>1M
13
+ ---
14
+
15
+ # PM (Peptide-MHC) Binding Prediction Dataset
16
+
17
+ ## Dataset Description
18
+
19
+ This dataset is part of the SPRINT benchmark framework for TCR-pMHC binding prediction. It contains peptide-MHC binding data for training and in-distribution testing of binding prediction models.
20
+
21
+ ### Dataset Summary
22
+
23
+ The PM dataset focuses on peptide-MHC binding prediction without TCR information. It is reorganized and standardized from multiple sources to provide a clean benchmark for PM task evaluation.
24
+
25
+ ## Dataset Structure
26
+
27
+ ### Files
28
+
29
+ - `train.csv`: Training data
30
+ - `id_test.csv`: In-distribution test data
31
+
32
+ ### Data Format
33
+
34
+ Each CSV file contains the following columns:
35
+
36
+ | Column | Type | Description |
37
+ |--------|------|-------------|
38
+ | peptide | string | Peptide amino acid sequence |
39
+ | HLA | string | HLA allele (standardized format: A*02:01) |
40
+ | label | float | Binding affinity (continuous values) |
41
+ | HLA_sequence | string | HLA pseudo-sequence |
42
+
43
+ ### Dataset Statistics
44
+
45
+ **Training Set:**
46
+ - Total samples: 2098450
47
+ - Label type: Continuous (binding affinity)
48
+ - Label range: 0.0000 - 1.0000
49
+ - Unique HLAs: 112
50
+ - Unique peptides: 1834505
51
+ - Peptide length range: 8-14
52
+
53
+ **Test Set (In-Distribution):**
54
+ - Total samples: 171438
55
+ - Label type: Continuous (binding affinity)
56
+ - Label range: 0.0000 - 1.0000
57
+ - Unique HLAs: 112
58
+ - Unique peptides: 158145
59
+ - Peptide length range: 8-14
60
+
61
+ ## Usage
62
+
63
+ ### Load with Pandas
64
+
65
+ ```python
66
+ from huggingface_hub import hf_hub_download
67
+ import pandas as pd
68
+
69
+ # Download files
70
+ train_file = hf_hub_download(
71
+ repo_id="YYJMAY/pm-binding",
72
+ filename="train.csv",
73
+ repo_type="dataset"
74
+ )
75
+ test_file = hf_hub_download(
76
+ repo_id="YYJMAY/pm-binding",
77
+ filename="id_test.csv",
78
+ repo_type="dataset"
79
+ )
80
+
81
+ # Load data
82
+ train_df = pd.read_csv(train_file)
83
+ test_df = pd.read_csv(test_file)
84
+ ```
85
+
86
+ ### Use with SPRINT Framework
87
+
88
+ ```python
89
+ from sprint.core.dataset_manager import DatasetManager
90
+
91
+ manager = DatasetManager()
92
+ config = {
93
+ 'hf_repo': 'YYJMAY/pm-binding',
94
+ 'files': ['train.csv', 'id_test.csv']
95
+ }
96
+
97
+ files = manager.get_dataset('pm', config)
98
+ ```
99
+
100
+ ## Data Preparation
101
+
102
+ This dataset was prepared with the following steps:
103
+
104
+ 1. **Source Integration**: Combined data from multiple PM binding datasets
105
+ 2. **HLA Standardization**: Normalized HLA allele names to A*02:01 format
106
+ 3. **Quality Control**: Removed duplicates and incomplete entries
107
+ 4. **Column Standardization**: Unified column names and formats
108
+ 5. **Validation**: Checked for data consistency and quality
109
+
110
+ ## Tasks
111
+
112
+ This dataset is designed for:
113
+
114
+ - **Peptide-MHC Binding Prediction**: Predicting binding affinity between peptides and MHC molecules
115
+ - **In-Distribution Evaluation**: Testing model performance on similar data distribution as training
116
+ - **Baseline Comparison**: Standardized data for reproducible benchmarking
117
+
118
+ ## Citation
119
+
120
+ If you use this dataset, please cite:
121
+
122
+ ```bibtex
123
+ @dataset{pm_dataset_2024,
124
+ title={PM (Peptide-MHC) Binding Prediction Dataset},
125
+ author={SPRINT Framework Contributors},
126
+ year={2024},
127
+ url={https://huggingface.co/datasets/YYJMAY/pm-binding}
128
+ }
129
+ ```
130
+
131
+ ## License
132
+
133
+ MIT License
134
+
135
+ ## Contact
136
+
137
+ For questions or issues, please refer to the SPRINT framework repository.