File size: 3,884 Bytes
ba86455
 
 
 
 
 
 
 
0a2eafb
ba86455
0a2eafb
ba86455
 
 
0a2eafb
 
 
 
 
 
 
ba86455
0a2eafb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba86455
0a2eafb
ba86455
0a2eafb
ba86455
 
0a2eafb
ba86455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a2eafb
 
 
 
 
 
 
 
ba86455
 
0a2eafb
ba86455
0a2eafb
 
 
ba86455
0a2eafb
ba86455
0a2eafb
 
 
 
 
 
 
 
 
ba86455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
task_categories:
- text-classification
tags:
- biology
- chemistry
- peptide-ml
---

# PepBenchData_raw

This repository provides the **raw dataset** collected for **PepBenchmark: A Standardized Benchmark for Peptide Machine Learning**.

[**Paper**](https://huggingface.co/papers/2604.10531) | [**GitHub**](https://github.com/ZGCI-AI4S-Pep/PepBenchmark/) | [**Processed Dataset (PepBenchData)**](https://huggingface.co/datasets/jiahuizhang/PepBenchData)

---

## Difference Between `PepBenchData_raw` and `PepBenchData`

We provide two related but distinct datasets:

### 1. PepBenchData_raw (This Repository)

- Contains **raw peptide sequences** collected from various databases and published literature.
- Most samples are **experimentally validated**, ensuring high reliability.
- No extensive preprocessing or feature engineering is applied.
- Recommended for:
  - Generative modeling
  - Pretraining tasks
  - Studies requiring high-confidence biological sequences

---

### 2. PepBenchData

- A **processed dataset** designed for machine learning tasks.
- Includes:
  - Feature representations
  - Standardized train/validation/test splits
- Construction involves several preprocessing steps:
  - Data filtering
  - Redundancy removal among positive samples (e.g., via MMseqs2)
  - Negative sample construction and sampling

**Important Note:**  
During negative sample construction, some sequences are sampled from **UniRef50**.  
As a result, **not all negative samples are experimentally validated**.

---

## Sample Usage

You can use the `pepbenchmark` library to manage and load these datasets. Below is an example of how to load a dataset and its official splits:

```python
from pepbenchmark.dataset_manager.single_dataset import SinglePeptideDatasetManager

# Initialize the manager for a specific task (e.g., ACE inhibitory)
manager = SinglePeptideDatasetManager(
    "ace_inhibitory",
    official_feature_names=["fasta", "label"],
    dataset_dir="path/to/PepBenchData",
)

# Access sequences and labels
sequences = manager.get_feature("fasta")
labels = manager.get_feature("label")

# Load official splits
splits = manager.set_official_split_indices(
    split_type="hybrid_split",
    fold_seed=0
)

print(f"Train samples: {len(splits['train'])}")
print(f"Test samples: {len(splits['test'])}")
```

---

## Data Sources

The raw dataset is aggregated from multiple sources, including public biological databases and published scientific literature.

![Data Sources](https://huggingface.co/datasets/jiahuizhang/PepBenchData_raw/resolve/main/data_source.png)

---

## Dataset Statistics

### Classification Tasks

- `pos.csv`: Experimentally validated **positive samples**
- `neg.csv`: Experimentally validated **negative samples** (Note: For many datasets, `neg.csv` is not available.)
- `pos_filter_id_0.9_cov_f0.9.csv`: Positive samples after redundancy removal using **MMseqs2** (identity ≥ 0.9, coverage ≥ 0.9).

![Classification Statistics](https://huggingface.co/datasets/jiahuizhang/PepBenchData_raw/resolve/main/cls.png)

### Regression Tasks

Contains datasets with continuous labels for peptide-related properties.

![Regression Statistics](https://huggingface.co/datasets/jiahuizhang/PepBenchData_raw/resolve/main/reg.png)

---

## Directory Structure (Classification Datasets)

```text
dataset_name/
├── pos.csv
├── neg.csv (optional)
└── pos_filter_id_0.9_cov_f0.9.csv
```

## Citation

If you use PepBenchmark, please cite:

```bibtex
@inproceedings{zhang2026pepbenchmark,
  title={PepBenchmark: A Standardized Benchmark for Peptide Machine Learning},
  author={Zhang, Jiahui and Wang, Rouyi and Zhou, Kuangqi and Xiao, Tianshu and Zhu, Lingyan and Min, Yaosen and Wang, Yang},
  booktitle={International Conference on Learning Representations (ICLR)},
  year={2026},
  url={https://openreview.net/forum?id=NskQgtSdll}
}
```