Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Libraries:
Datasets
Dask
License:
ligeti commited on
Commit
9de9ff9
1 Parent(s): 56eecdc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +130 -49
README.md CHANGED
@@ -1,49 +1,130 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- dataset_info:
4
- features:
5
- - name: segment_id
6
- dtype: int64
7
- - name: sequence_id
8
- dtype: int64
9
- - name: label
10
- dtype: string
11
- - name: y
12
- dtype: int64
13
- - name: orientation
14
- dtype: string
15
- - name: Ls
16
- dtype: int64
17
- - name: segment_start
18
- dtype: int64
19
- - name: segment_end
20
- dtype: int64
21
- - name: segment
22
- dtype: string
23
- splits:
24
- - name: Training_segmentdb_512
25
- num_bytes: 1385206088
26
- num_examples: 2358018
27
- - name: Training_segmentdb_1022
28
- num_bytes: 1287349982
29
- num_examples: 1173108
30
- - name: Validation_segmentdb_512
31
- num_bytes: 227525368
32
- num_examples: 387468
33
- - name: Validation_segmentdb_1022
34
- num_bytes: 211472614
35
- num_examples: 192745
36
- download_size: 501454572
37
- dataset_size: 3111554052
38
- configs:
39
- - config_name: default
40
- data_files:
41
- - split: Training_segmentdb_512
42
- path: data/Training_segmentdb_512-*
43
- - split: Training_segmentdb_1022
44
- path: data/Training_segmentdb_1022-*
45
- - split: Validation_segmentdb_512
46
- path: data/Validation_segmentdb_512-*
47
- - split: Validation_segmentdb_1022
48
- path: data/Validation_segmentdb_1022-*
49
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ dataset_info:
4
+ features:
5
+ - name: segment_id
6
+ dtype: int64
7
+ - name: sequence_id
8
+ dtype: int64
9
+ - name: label
10
+ dtype: string
11
+ - name: y
12
+ dtype: int64
13
+ - name: orientation
14
+ dtype: string
15
+ - name: Ls
16
+ dtype: int64
17
+ - name: segment_start
18
+ dtype: int64
19
+ - name: segment_end
20
+ dtype: int64
21
+ - name: segment
22
+ dtype: string
23
+ splits:
24
+ - name: Training_segmentdb_512
25
+ num_bytes: 1385206088
26
+ num_examples: 2358018
27
+ - name: Training_segmentdb_1022
28
+ num_bytes: 1287349982
29
+ num_examples: 1173108
30
+ - name: Validation_segmentdb_512
31
+ num_bytes: 227525368
32
+ num_examples: 387468
33
+ - name: Validation_segmentdb_1022
34
+ num_bytes: 211472614
35
+ num_examples: 192745
36
+ download_size: 501454572
37
+ dataset_size: 3111554052
38
+ configs:
39
+ - config_name: default
40
+ data_files:
41
+ - split: Training_segmentdb_512
42
+ path: data/Training_segmentdb_512-*
43
+ - split: Training_segmentdb_1022
44
+ path: data/Training_segmentdb_1022-*
45
+ - split: Validation_segmentdb_512
46
+ path: data/Validation_segmentdb_512-*
47
+ - split: Validation_segmentdb_1022
48
+ path: data/Validation_segmentdb_1022-*
49
+ ---
50
+ # Dataset Card for PhageStyle-BACPHLIP
51
+
52
+
53
+ ## Dataset Summary:
54
+
55
+ The PhageStyle-BACPHLIP dataset was created to predict phage lifestyles, classifying them as either **virulent** or **temperate**. This dataset is split into training and validation sets, where the training set includes phages from various species (excluding Escherichia coli) and the validation set consists solely of **Escherichia coli** phages. The segmentation of sequences into 512bp and 1022bp fragments allows models to simulate real-world scenarios where metagenomic and viromic assemblies are often highly fragmented.
56
+
57
+ The dataset is particularly important for training machine learning models to generalize across different species and environments, providing robust predictions for phage lifestyle classification. This dataset was used to train the ProkBERT PhaStyle model.
58
+
59
+ ### Dataset Structure:
60
+
61
+ The dataset is segmented into 512bp and 1022bp fragments for both the training and validation sets:
62
+
63
+ | Split Name | Number of Rows | Dataset Size (bytes) |
64
+ |-------------------------|----------------|----------------------|
65
+ | Training_segmentdb_512 | 2,358,018 | 1,385,206,088 |
66
+ | Training_segmentdb_1022 | 1,173,108 | 1,287,349,982 |
67
+ | Validation_segmentdb_512 | 387,468 | 227,525,368 |
68
+ | Validation_segmentdb_1022| 192,745 | 211,472,614 |
69
+
70
+ - **Training Segments**: Contain phages from various species (excluding **Escherichia coli**) segmented into 512bp and 1022bp lengths. These fragments are used to train the model to predict the phage lifestyle, simulating short sequence fragments.
71
+ - **Validation Segments**: Consist exclusively of **Escherichia coli** phages and are segmented into 512bp and 1022bp fragments. These are used to validate the model's performance, especially its ability to generalize to **Escherichia coli** phages, a key bacterial species in many environments.
72
+
73
+ ### Dataset Splitting:
74
+
75
+ The dataset is split according to phage species, ensuring that **Escherichia coli** sequences are only present in the validation set. This ensures robust model generalization across other species during training.
76
+
77
+ ---
78
+
79
+ ## Data Fields:
80
+
81
+ - **segment_id**: A unique identifier for each segmented entry.
82
+ - **sequence_id**: The ID of the original sequence from which the segment is derived.
83
+ - **label**: The lifestyle prediction for the phage (either virulent or temperate).
84
+ - **y**: Numeric encoding of the lifestyle label (1 for virulent, 0 for temperate).
85
+ - **orientation**: Indicates the orientation (forward or reverse-complement) of the sequence.
86
+ - **Ls**: The length of the segment in base pairs (512 or 1022).
87
+ - **segment_start**: The start position of the segment within the original sequence.
88
+ - **segment_end**: The end position of the segment within the original sequence.
89
+ - **segment**: The nucleotide sequence of the segmented portion.
90
+
91
+ ---
92
+
93
+ ## Dataset Details:
94
+
95
+ The **Training_segmentdb_512** split contains 512 base pair segments, with approximately 2.36 million rows, and is primarily used for training the phage lifestyle prediction models. The **Training_segmentdb_1022** split contains 1022 base pair segments, with over 1.17 million rows. These larger segments provide more context for the model, potentially improving classification accuracy.
96
+
97
+ For model validation, the **Validation_segmentdb_512** split includes 387,468 512bp segments, while the **Validation_segmentdb_1022** split contains 192,745 1022bp segments. These validation splits allow for the evaluation of the model’s performance on both short and long fragments, mimicking fragmented phage sequences in real-world metagenomic assemblies. The validation set is exclusively composed of **Escherichia coli** phages, making it an important set for testing model generalization.
98
+
99
+ ---
100
+
101
+ ## Dataset Structure:
102
+
103
+ The structure of the dataset is explained visually in the following figure:
104
+
105
+ ![Dataset Structure](https://github.com/nbrg-ppcu/PhaStyle/blob/main/assets/figure_01.jpg?raw=true)
106
+
107
+ *Figure 1: The dataset used in the ProkBERT PhaStyle study. Phage sequences from multiple independent data sources were segmented into 512bp and 1022bp fragments for training and testing models on phage lifestyle prediction. The dataset consists of the BACPHLIP training and validation sets, Escherichia phages (from the Guelin collection), and phages from extreme environments.*
108
+
109
+ ---
110
+
111
+
112
+ ## Licensing
113
+
114
+ This dataset is provided under the same license as the ProkBERT PhaStyle repository. Please refer to the [license](https://github.com/nbrg-ppcu/PhaStyle) for more details.
115
+
116
+
117
+ ## Citation
118
+
119
+ ```bibtex
120
+ @Article{ProkBERT2024,
121
+ author = {Ligeti, Balázs and Szepesi-Nagy, István and Bodnár, Babett and Ligeti-Nagy, Noémi and Juhász, János},
122
+ journal = {Frontiers in Microbiology},
123
+ title = {{ProkBERT} family: genomic language models for microbiome applications},
124
+ year = {2024},
125
+ volume = {14},
126
+ URL={https://www.frontiersin.org/articles/10.3389/fmicb.2023.1331233},
127
+ DOI={10.3389/fmicb.2023.1331233},
128
+ ISSN={1664-302X}
129
+ }
130
+ ```