Files changed (1) hide show
  1. README.md +262 -3
README.md CHANGED
@@ -1,3 +1,262 @@
1
- ---
2
- license: cc0-1.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-3.0
3
+ language:
4
+ - en
5
+ pretty_name: Character Similarity Dataset
6
+ description: "Collection of textual trait descriptions of vertebrates (primarily fish) along with the corresponding ontology based similarity measures between trait description pairs. The distance is estimated using the Phenoscape Knowledgebase as the ontology."
7
+ task_categories:
8
+ - feature-extraction
9
+ tags:
10
+ - biology
11
+ - organism
12
+ - animals
13
+ - fish
14
+ - traits
15
+ - ontology
16
+ - phenoscape
17
+ size_categories: 10K<n<100K
18
+ configs:
19
+ - config_name: full_data
20
+ data_files:
21
+ - split: train
22
+ path: all/*_TRAINING.tsv.gz
23
+ - split: test
24
+ path: all/*_ALL_NON_TRAIN.tsv.gz
25
+ default: true
26
+ - config_name: characiformes
27
+ data_files:
28
+ - split: train
29
+ path: characiformes/*_TRAINING.tsv.gz
30
+ - split: test
31
+ path: characiformes/*_ALL_NON_TRAIN.tsv.gz
32
+ - config_name: cypriniformes
33
+ data_files:
34
+ - split: train
35
+ path: cypriniformes/*_TRAINING.tsv.gz
36
+ - split: test
37
+ path: cypriniformes/*_ALL_NON_TRAIN.tsv.gz
38
+ - config_name: gymnotiformes
39
+ data_files:
40
+ - split: train
41
+ path: gymnotiformes/*_TRAINING.tsv.gz
42
+ - split: test
43
+ path: gymnotiformes/*_ALL_NON_TRAIN.tsv.gz
44
+ - config_name: siluriformes
45
+ data_files:
46
+ - split: train
47
+ path: siluriformes/*_TRAINING.tsv.gz
48
+ - split: test
49
+ path: siluriformes/*_ALL_NON_TRAIN.tsv.gz
50
+ ---
51
+
52
+ # Dataset Card for Character Similarity Dataset
53
+
54
+ <!-- Provide a quick summary of what the dataset is or can be used for. -->
55
+
56
+ ## Dataset Details
57
+ The Character Similarity Dataset is a collection of textual trait descriptions along with the corresponding ontology based similarity measures between trait description pairs. The distance is estimated using the [Phenoscape Knowledgebase](https://kb.phenoscape.org/) as the ontology. The Knowledgebase is built upon a number of OBO ontologies, most importantly the Uberon anatomy ontology.
58
+
59
+ ### Dataset Description
60
+
61
+ - **Curated by:** Jim Balhoff, Soumyashree Kar, Juan Garcia, Hilmar Lapp
62
+ - **Language(s) (NLP):** English
63
+ - **Repository:** [Imageomics/char-sim](https://github.com/Imageomics/char-sim)
64
+ - **Paper:** Coming soon!
65
+
66
+ The Character Similarity Dataset is a collection of 19K textual trait descriptions of fish and other vertebrates collected from the [Phenoscape Knowledgebase](https://kb.phenoscape.org/). The dataset also contains the corresponding pairwise similarity measures between trait descriptors (i.e., maxIC, Jaccard, SimGIC). These metrics estimate semantic similarity between the ontological representation of the traits descriptions per the Phenoscape Knowledgebase. The goal is to use this pairwise similarities to inform an embedding space that preserves the structure of the underlying ontology.
67
+
68
+ ### Supported Tasks and Leaderboards
69
+ Task: Aligned feature extraction. Metric: Spearman's correlation coefficient.
70
+
71
+ | Model | Test set |
72
+ |:-------------------|:-----------|
73
+ | [**Trait2Vec**](https://huggingface.co/imageomics/trait2vec) | **0.7057** |
74
+
75
+ <!-- Provide benchmarking results -->
76
+
77
+
78
+ ## Dataset Structure
79
+
80
+ ```
81
+ raw-source/
82
+ phenex-data-merged.ofn.gz
83
+ phenoscape-kb-tbox-classified.ttl.gz
84
+ processed-data/
85
+ all/
86
+ data_{percentage}p_TRAINING.tsv.gz
87
+ data_{percentage}p_ALL_NON_TRAIN.tsv.gz
88
+ data_{percentage}p_NON_OVERLAP.tsv.gz
89
+ characiformes/
90
+ data_{percentage}p_TRAINING.tsv.gz
91
+ data_{percentage}p_ALL_NON_TRAIN.tsv.gz
92
+ data_{percentage}p_NON_OVERLAP.tsv.gz
93
+ cypriniformes/
94
+ data_{percentage}p_TRAINING.tsv.gz
95
+ data_{percentage}p_ALL_NON_TRAIN.tsv.gz
96
+ data_{percentage}p_NON_OVERLAP.tsv.gz
97
+ gymnotiformes/
98
+ data_{percentage}p_TRAINING.tsv.gz
99
+ data_{percentage}p_ALL_NON_TRAIN.tsv.gz
100
+ data_{percentage}p_NON_OVERLAP.tsv.gz
101
+ siruliformes/
102
+ data_{percentage}p_TRAINING.tsv.gz
103
+ data_{percentage}p_ALL_NON_TRAIN.tsv.gz
104
+ data_{percentage}p_NON_OVERLAP.tsv.gz
105
+
106
+ ```
107
+
108
+ `phenex-data-merged.ofn.gz` and `phenoscape-kb-tbox-classified.ttl.gz` are raw data files built as part of the [Phenoscape Knowledgebase](https://kb.phenoscape.org/) construction pipeline. Running the processing script creates the four subset folders (`characiformes/`, `cypriniformes/`, `gymnotiformes/`, and `siruliformes/`, each an order of fish), then combines their data into the `all/` directory to create the training and test datasets.
109
+
110
+ Note: `percentage` is the parameter passed for the percentage of the data to use for training; in this case, `percentage = 80`.
111
+
112
+ ### Data Instances
113
+ Percentage is the proportion of data that will be used for training (i.e. data_{percentage}p_TRAINING.tsv.gz). In case the percentage is smaller than 100, the remaining proportion of the dataset is stored in data{percentage}p_ALL_NON_TRAIN.tsv.gz and a subset of this in data_{percentage}p_NON_OVERLAP.tsv.gz. Each of this files corresponds to a
114
+
115
+ <!--
116
+ Describe data files
117
+
118
+ Ex: All images are named <img_id>.png, each within a folder named for the species. They are 1024 x 1024, and the color has been standardized using <link to color standardization package>.
119
+ -->
120
+
121
+ ### Data Fields
122
+
123
+ **data_{percentage}p_TRAINING.tsv.gz**: [ADD SUMMARY HERE + descriptions of columns below]
124
+ - `id_1`:
125
+ - `id_2`:
126
+ - `maxIC`: Ontology based measure
127
+ - `jaccard`: Ontology based measure
128
+ - `simGIC`: Ontology based measure
129
+ - `order`: Pairwise score indices
130
+ - `character_1`:
131
+ - `desc_1`: Textual trait description.
132
+ - `character_2`:
133
+ - `desc_2`: Textual trait description.
134
+ [More Information Needed]
135
+ <!--
136
+ Describe the types of the data files or the columns in a CSV with metadata.
137
+
138
+ Ex:
139
+ **metadata.csv**:
140
+ - `img_id`: Unique identifier for the dataset.
141
+ - `specimen_id`: ID of specimen in the image, provided by museum data source. There are multiple images of a single specimen.
142
+ - `species`: Species of the specimen in the image. There are N different species of <genus> of <animal>.
143
+ - `view`: View of the specimen in the image (e.g., `ventral` or `dorsal` OR `top` or `bottom`, etc.; specify options where reasonable).
144
+ - `file_name`: Relative path to image from the root of the directory (`<species>/<img_id>.png`); allows for image to be displayed in the dataset viewer alongside its associated metadata.
145
+ -->
146
+
147
+ ### Data Splits
148
+
149
+ None. Split is determined by the user. [NEEDS UPDATING to reflect change to train/test split]
150
+
151
+ ## Dataset Creation
152
+
153
+ ### Curation Rationale
154
+ The overall objective of the Phenoscape Project is to create a scalable infrastructure that enables linking descriptive phenotype observations across different fields of biology by the semantic similarity of their free-text descriptions. This linking is manual and labor intensive; see https://doi.org/10.1093/database/bav040. The dataset created by the Phenoscape project is used here to train a model which produces text embeddings aligned with ontology-derived similarity values.
155
+
156
+ ### Source Data
157
+ Data was collected from the [Phenoscape Knowledgebase](https://kb.phenoscape.org/). `phenoscape-kb-tbox-classified.ttl.gz` contains the classified terminology composed of several OBO ontologies as well as generated class expressions materializing various axes of classification. `phenex-data-merged.ofn.gz` contains links from textual character trait descriptions to ontology class expressions.
158
+
159
+ #### Data Collection and Processing
160
+ The raw data is directly generated by the [Phenoscape build pipeline](https://github.com/phenoscape/pipeline). Further processing to compute ontology-based similarity scores, and to create derived files for model training, is defined by the workflow at https://github.com/Imageomics/char-sim.
161
+
162
+ #### Who are the source data producers?
163
+ The source data was originally created by the curators of the [Phenoscape Project](https://phenoscape.org), a collaborative NSF-funded project.
164
+
165
+ ### Personal and Sensitive Information
166
+
167
+ None
168
+
169
+ ## Considerations for Using the Data
170
+ The distribution of SimGIC scores is skewed towards smaller values. This imbalance may cause the similarity of embeddings to follow the same bias. Consider subsampling to ensure uniform representation of distances.
171
+
172
+ ### Bias, Risks, and Limitations
173
+ This dataset has the biases of the Phenoscape ontology. This means the estimated models embeddings will inherit the ontology's inductive biases, coverage gaps, and evolving definitions. Biological conclusions may differ under alternative similarity metrics or other phenotype ontologies.
174
+
175
+ ## Licensing Information
176
+ This dataset is licensed using a [Creative Commons Attribution 3.0 Unported license](http://creativecommons.org/licenses/by/3.0/) for the benefit of scientific pursuits. We ask that you cite the dataset and original source data using the below citations if you make use of it in your research.
177
+
178
+ ## Citation
179
+
180
+ We ask that you cite the dataset and original source data using the below citations if you make use of it in your research.
181
+
182
+ **Data**
183
+ ```
184
+ @misc{char-sim-data-2025,
185
+ author = {Jim Balhoff and Soumyashree Kar and Juan Garcia and Hilmar Lapp},
186
+ title = {Character Similarity Dataset},
187
+ year = {2025},
188
+ url = {https://huggingface.co/datasets/imageomics/char-sim-data},
189
+ doi = {<doi once generated>},
190
+ publisher = {Hugging Face}
191
+ }
192
+ ```
193
+ <!--
194
+ -for an associated paper:
195
+ **Paper**
196
+ ```
197
+ @article{<ref_code>,
198
+ title = {<title>},
199
+ author = {<author1 and author2>},
200
+ journal = {<journal_name>},
201
+ year = <year>,
202
+ url = {<DOI_URL>},
203
+ doi = {<DOI>}
204
+ }
205
+ ```
206
+ -->
207
+
208
+ Please be sure to also cite the original data source:
209
+
210
+ ```bibtext
211
+ @ARTICLE{Balhoff2016-aw,
212
+ title = "The Phenoscape Knowledgebase: tools and {APIs} for computing
213
+ across phenotypes from evolutionary diversity and model organisms",
214
+ author = "Balhoff, James P and {Phenoscape project team}",
215
+ journal = "bioRxiv",
216
+ pages = 071951,
217
+ abstract = "The Phenoscape Knowledgebase (KB) is an ontology-driven database
218
+ that combines existing phenotype annotations from model organism
219
+ databases with new phenotype annotations from the evolutionary
220
+ literature. Phenoscape curators have created phenotype annotations
221
+ for more than 5,000 species and higher taxa, by defining
222
+ computable phenotype concepts for more than 20,000 character
223
+ states from over 160 published phylogenetic studies. These
224
+ phenotype concepts are in the form of Entity-Quality (EQ)
225
+ compositions which incorporate terms from the Uberon anatomy
226
+ ontology, the Biospatial Ontology (BSPO), and the Phenotype and
227
+ Trait Ontology (PATO). Taxonomic concepts are drawn from the
228
+ Vertebrate Taxonomy Ontology (VTO). This knowledge of comparative
229
+ biodiversity is linked to potentially relevant developmental
230
+ genetic mechanisms by importing associations of genes to
231
+ phenotypic effects and gene expression locations from zebrafish
232
+ (ZFIN), mouse (MGI), Xenopus (Xenbase), and human (Human Phenotype
233
+ Ontology project). Thus far, the Phenoscape KB has been used to
234
+ identify candidate genes for evolutionary phenotypes, to match
235
+ profiles of ancestral evolutionary variation with gene phenotype
236
+ profiles, and to combine data across many evolutionary studies by
237
+ inferring indirectly asserted values within synthetic
238
+ supermatrices. Here we describe the software architecture of the
239
+ Phenoscape KB, including data ingestion, integration of OWL
240
+ reasoning, web service interface, and application features.",
241
+ month = jan,
242
+ year = 2016,
243
+ url = "http://biorxiv.org/cgi/content/short/071951",
244
+ doi = "10.1101/071951",
245
+ language = "en"
246
+ }
247
+ ```
248
+
249
+
250
+ ## Acknowledgements
251
+
252
+ This work was supported by the [Imageomics Institute](https://imageomics.org), which is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) program under [Award #2118240](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118240) (Imageomics: A New Frontier of Biological Information Powered by Knowledge-Guided Machine Learning). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
253
+
254
+ <!-- You may also want to credit the source of your data, i.e., if you went to a museum or nature preserve to collect it. -->
255
+
256
+ ## Dataset Card Authors
257
+
258
+ Juan Garcia, Jim Balhoff, and Elizabeth Campolongo
259
+
260
+ ## Dataset Card Contact
261
+
262
+ Please open a [Discussion on the Community Tab](https://huggingface.co/datasets/imageomics/char-sim-data/discussions) with any questions on the dataset.