Dataset Viewer
Auto-converted to Parquet Duplicate
pmid
int64
22
39.8M
sent_id
int64
13
232M
cell_a_id
stringlengths
10
10
cell_b_id
stringlengths
10
10
sentence_start
int64
0
15.8k
sentence_end
int64
41
16k
cell0_spans
stringlengths
3
241
cell1_spans
stringlengths
3
135
sha256
stringlengths
16
16
22
13
CL:0000542
CL:0000738
1,561
1,717
44:54
29:38
0a4bc53904049db9
92
611
CL:0000232
CL:0000738
649
762
70:81
102:111
8a88554a09613960
92
612
CL:0000232
CL:0000738
763
1,098
122:133;322:333
250:259
3565a1cbc41fa637
325
1,212
CL:0000084
CL:0000236
900
1,105
122:128
184:190
cd826b1a9ad2ca8e
325
1,213
CL:0000235
CL:0000084
1,106
1,337
19:29
97:103;197:203
6254d094d22204be
325
1,213
CL:0000235
CL:0000236
1,106
1,337
19:29
123:129
eeb8951b16b3407f
325
1,213
CL:0000084
CL:0000236
1,106
1,337
97:103;197:203
123:129
2717d5e98608b66a
450
1,929
CL:0000771
CL:0000094
0
198
61:71;122:132
84:95
14afb83de8ba3dbf
789
2,825
CL:0000232
CL:0000738
317
539
61:75
89:98
5fab2bc054722c8a
985
3,358
CL:0002573
CL:0000125
316
616
286:298
172:182
c1d4335c0bc75f68
985
3,358
CL:0002573
CL:0000540
316
616
286:298
250:256
76483cbdadfd274f
985
3,358
CL:0000125
CL:0000540
316
616
172:182
250:256
e9ca70c7c46ba81b
1,164
4,018
CL:0000232
CL:0000081
458
658
74:85
172:182
8a96292c7eee2a55
1,164
4,018
CL:0000232
CL:0000738
458
658
74:85
91:107
380890d55005ada3
1,164
4,018
CL:0000081
CL:0000738
458
658
172:182
91:107
49031eaf95c842b5
1,166
4,025
CL:0000084
CL:0000236
589
671
42:48
49:55
11ec3e411d30fa10
1,345
4,712
CL:0000084
CL:0000542
426
563
99:105
86:96
29eb853870741bba
1,444
5,118
CL:0000232
CL:0000235
356
688
36:47;133:144
244:254
bbaebca2bda3deae
1,444
5,125
CL:0000542
CL:0000786
1,740
1,992
213:223
69:80
ff7fac387e01f1f1
1,748
6,345
CL:0000738
CL:0000010
0
260
43:52
245:258
adddd1825724363e
1,752
6,369
CL:0000094
CL:0000233
0
244
231:242
16:24
2bf2e6308dfca81f
1,755
6,388
CL:0000423
CL:0000849
0
112
7:15
21:31
003b2e2c19b9b4f2
1,755
6,390
CL:0000423
CL:0000849
231
413
11:19
94:104
0dc4136eaf80df97
1,755
6,392
CL:0000423
CL:0000849
593
776
142:150
4:14
b8176f791b819a43
1,757
6,406
CL:0000057
CL:0000524
404
569
77:87
152:163
fdd7a413f9cd0c32
1,757
6,406
CL:0000057
CL:0000371
404
569
77:87
136:146
6f08c174910720a0
1,757
6,406
CL:0000057
CL:0000233
404
569
77:87
35:49
9ca0dea3b7428f5b
1,757
6,406
CL:0000524
CL:0000371
404
569
152:163
136:146
ae357c0a1a2cb79e
1,757
6,406
CL:0000524
CL:0000233
404
569
152:163
35:49
fd956dd12993faf4
1,757
6,406
CL:0000371
CL:0000233
404
569
136:146
35:49
49ae6f3a01f5d2ab
1,868
6,784
CL:0000771
CL:0000738
363
554
156:166
56:65
bc96280cd728f115
1,953
6,930
CL:0000192
CL:0002494
304
481
101:119
165:175
5722c8435a7ae895
1,979
7,032
CL:0000542
CL:0000738
844
1,114
237:247
214:223
e881fffc24dd2e9e
1,979
7,033
CL:0000738
CL:0000097
1,115
1,358
232:241
211:220
63e6429264c03645
1,991
7,088
CL:0000031
CL:0000540
140
352
57:67
45:51
31bb9dd41a83b386
1,991
7,090
CL:0000232
CL:0000738
503
656
102:113
135:151
61c28d2aaf606922
2,075
7,407
CL:0000235
CL:0000125
230
454
212:222
196:206
2ada0e7436b9df52
2,379
8,594
CL:0001061
CL:0011108
165
324
22:35
58:81
7e1dbf96bf0f82d0
2,398
8,691
CL:0000583
CL:0000738
0
99
78:97
45:54
cead700081d4fd77
2,398
8,694
CL:0000583
CL:0000738
336
564
188:207
217:226
cf9cb7be38922a69
2,404
8,710
CL:0000232
CL:4030030
0
142
6:20
104:131
82d14094a3b251d9
2,404
8,714
CL:0000232
CL:0000542
510
742
33:47
107:117
d568e24d04ce4c8e
2,404
8,715
CL:0000232
CL:4030030
743
1,015
30:44;62:76
158:185
15324761ea076615
2,458
8,759
CL:0000700
CL:0000540
831
1,012
135:154
101:107
649c232d0fc615b1
2,633
9,612
CL:0000084
CL:0000236
745
1,102
24:30;181:187
316:322
008d3dc4a949790d
2,635
9,626
CL:0000084
CL:0000236
0
191
116:122
105:111
c302f5509f0124c7
2,635
9,629
CL:0000084
CL:0000542
642
826
98:104
14:24
444e574330cc75f5
2,637
9,642
CL:0000232
CL:2000074
159
420
154:165;221:232
192:202
cf6387246e0f6de0
2,637
9,642
CL:0000232
CL:0000234
159
420
154:165;221:232
47:56
950c7c6a4d84e8d3
2,637
9,642
CL:2000074
CL:0000234
159
420
192:202
47:56
36bf3c36f006103e
2,637
9,643
CL:0000084
CL:0000542
421
630
126:138
78:88
de06a18eb818e1c8
2,637
9,643
CL:0000084
CL:0000236
421
630
126:138
43:55
f5331a51410f4e63
2,637
9,643
CL:0000542
CL:0000236
421
630
78:88
43:55
0a951bc4925eb160
2,651
9,730
CL:0000187
CL:0000540
1,255
1,507
214:225
168:174
d2b2c84f207e6d29
2,936
10,250
CL:0001063
CL:4030031
119
363
227:242
113:130
7e5745aed7b65e3b
3,084
10,660
CL:0000057
CL:0008019
0
166
153:163
127:143
ebf1a19e4103ffdb
3,085
10,671
CL:4023004
CL:0008039
333
494
142:159
7:25
2ba43f4f9999cd22
3,085
10,671
CL:4023004
CL:4023003
333
494
142:159
99:118
30243651c54a7d25
3,085
10,671
CL:0008039
CL:4023003
333
494
7:25
99:118
03a66dd59d9e9b3d
3,085
10,672
CL:4023004
CL:4023003
495
590
40:57
74:93
b92268eb27f64525
3,240
11,411
CL:0000581
CL:0000235
371
607
213:234
13:23
e79630cdf3676629
3,240
11,412
CL:0000581
CL:0000235
608
860
229:250
62:72
e5cb5609ea83f5ac
3,240
11,413
CL:0000581
CL:0000010
861
1,190
306:327
229:242
c4a027ae0e53f985
3,280
11,600
CL:0000066
CL:0000542
517
675
113:128
134:144
42ff1025a399a32d
3,509
12,270
CL:0000556
CL:0000233
118
348
41:54
220:228
b08b344703dd9a2e
3,509
12,271
CL:0000556
CL:0000233
349
465
56:69
106:114
b150a807b40970f9
3,609
12,400
CL:0000912
CL:0000236
679
850
156:169
76:82
929dfe93339d1e48
3,618
12,465
CL:0000767
CL:0000233
0
164
140:148
47:55;72:80
73dfbd2abe9356aa
3,619
12,475
CL:0000767
CL:0000233
0
212
137:145
28:36;49:57
242e5ef418359b8c
3,620
12,486
CL:0000094
CL:0000576
0
254
37:48
13:21
4683dcd1ccae51dd
3,620
12,486
CL:0000094
CL:0000233
0
254
37:48
54:62
c09266f8ce62f27d
3,620
12,486
CL:0000576
CL:0000233
0
254
13:21
54:62
f79ebe15abfb5acc
3,737
12,844
CL:0000084
CL:0000236
311
385
26:32
50:56
be2244ecdee89c4f
3,812
12,979
CL:0002293
CL:0000542
512
664
33:58
113:123
4fc8b3e328235cdc
3,812
12,979
CL:0002293
CL:0000893
512
664
33:58
126:135
be7dd9ab17f1277a
3,812
12,979
CL:0000542
CL:0000893
512
664
113:123
126:135
279d2ef6e24c507e
3,900
13,171
CL:0000084
CL:0000542
0
410
296:308
198:208;377:387
95939774bc243a8a
4,115
13,957
CL:0000084
CL:0000542
205
532
150:156
315:325
d3343d6fe81f7e66
4,220
14,547
CL:0000988
CL:0000786
342
471
59:77
116:127
0f2023a140fdb6a4
4,251
14,672
CL:0000542
CL:0000738
376
715
144:154
309:318
305b9abfd7287a75
4,299
14,825
CL:0000232
CL:0000738
150
293
29:40
44:53
07501ea020ea7829
4,299
14,827
CL:0000094
CL:0000233
376
823
168:179;434:445
97:105
17a9918ccde311e4
4,468
15,830
CL:0000771
CL:0000094
0
209
50:60
61:88
96643c9108a8c2f2
4,468
15,830
CL:0000771
CL:0000738
0
209
50:60
111:120
c7418d189b3f5e34
4,468
15,830
CL:0000094
CL:0000738
0
209
61:88
111:120
687e45041a600155
4,575
15,942
CL:0000893
CL:0011026
608
755
82:91
121:136
1299e4167355f90f
4,676
16,218
CL:0000568
CL:0011012
0
150
139:148
10:27
826f290722d58e8b
4,728
16,277
CL:0000542
CL:0000786
219
497
114:124
78:89;248:258
a920435e080e4f20
4,760
16,323
CL:0000771
CL:0000235
862
999
82:92
52:62
5b0b652fe6a3821b
4,760
16,323
CL:0000771
CL:0000786
862
999
82:92
65:76
f66d0f7b85e06f2c
4,760
16,323
CL:0000235
CL:0000786
862
999
52:62
65:76
228a13fc7ea5ddc2
5,039
17,213
CL:0000084
CL:4030030
1,085
1,276
0:6
162:189
b8d2ea87e98d5dc0
5,039
17,213
CL:0000084
CL:0000542
1,085
1,276
0:6
31:41
880daecbf3148b94
5,039
17,213
CL:4030030
CL:0000542
1,085
1,276
162:189
31:41
4e6546826d5903cc
5,039
17,214
CL:0000084
CL:4030030
1,277
1,599
14:20
144:171
f1f8fb36f9f81cd1
5,434
18,667
CL:0000576
CL:0000542
143
424
105:113
134:144
50fbda5feada1709
5,562
18,996
CL:0000084
CL:0000542
1,038
1,224
44:50
165:175
481b11e787b23ffe
5,562
18,996
CL:0000084
CL:0000236
1,038
1,224
44:50
85:91
90732879551931ea
5,562
18,996
CL:0000542
CL:0000236
1,038
1,224
165:175
85:91
e043f513085029a8
5,576
19,118
CL:0000700
CL:0000540
488
657
144:161
47:53
bfe9630b61476345
End of preview. Expand in Data Studio

cell-cell-communication

Dataset for cell–cell relation extraction from biomedical literature, used by the Cell-Cell BERT project. It distributes manually annotated (sentence, cell pair, label) rows from PubMed (800, the benchmark) and SemMed (1,500, auxiliary training data), the train/dev/test splits used in the paper, and the pool of PubMed cell pairs used for continued pretraining and for the cell–cell communication (CCC) comparison. Sentence text is not included: every row is given as character offsets with a SHA-256 of the sentence, and the GitHub repository rebuilds and checks the text.

Links

Citation

@article{Yoshikawa2025CCBERT,
  title   = {Designing Cell-Cell Relation Extraction Models: A Systematic Evaluation of Entity Representation and Pre-training Strategies},
  author  = {Yoshikawa Mei and Mizuno Tadahaya and Ohto Yohei and Fujimoto Hiromi and Kusuhara Hiroyuki},
  journal = {bioRxiv},
  year    = {2025},
  doi     = {10.64898/2025.12.01.691726}
}

Quick start

git clone https://github.com/mizuno-group/cell-cell-bert.git && cd cell-cell-bert && uv sync
# benchmark: downloads pubmed/semmed offsets, fetches PubMed abstracts, reads your SemMedDB SENTENCE table
uv run python scripts/01_reconstruct_dataset.py --semmed_sentence_csv /path/to/semmedVER43_R_SENTENCE.csv
uv run python scripts/02_make_splits.py --split_seeds 22 24 42      # writes the released splits
# cell-pair pool for the CCC comparison (~940,000 abstracts; a few hours with NCBI_API_KEY)
uv run python scripts/01_reconstruct_dataset.py --ccc
from datasets import load_dataset
pubmed = load_dataset("DevWithKaiju/cell-cell-communication", "pubmed_offsets")["train"]
splits = load_dataset("DevWithKaiju/cell-cell-communication", "splits")["train"]

Files

pubmed/offsets.csv (800 rows, benchmark)

column description
pmid, sent_id PubMed ID and sentence ID
cell_a_id, cell_b_id, cell_a, cell_b Cell Ontology IDs and names of the two cells (cell_a is [CELL0])
label 1 = cell–cell relation, 0 = no relation
vitro, relationship in vitro flag; relation type (no, change, unidirectional, bidirectional)
sentence_start, sentence_end offsets of the sentence in the abstract (see "Abstract text" below)
cell0_spans, cell1_spans start:end of each mention relative to the sentence, ;-separated if a cell is mentioned more than once
sha256 first 16 hex digits of the SHA-256 of the annotated sentence (mentions replaced by [CELL0]/[CELL1])

semmed/offsets.csv (1,500 rows)

column description
pred_id, sentence_id, pmid SemMedDB PREDICATION_ID, SENTENCE_ID and PMID
subject, object, predicate SemMedDB subject / object names and predicate
label, vitro, relationship as above
insertions markup inserted into the SemMedDB sentence (<E0>, </E0>, <E1>, </E1>, 【, 】, 「, 」) as a JSON list of [position, text]
sha256 as above, of the annotated sentence

SemMed sentences come from SemMedDB VER43_R (requires a UMLS license).

splits.csv

The splits of the paper: dataset (pubmed / semmed), split_seed, part, id (PubMed: pmid-sent_id-cell_a_id-cell_b_id; SemMed: pred_id), in the order of the split files.

  • PubMed: rows sharing a PMID, a sentence ID or a sentence are kept in the same part; test 300 (150 per label), dev 50 (25 per label) and train 450, for the split seeds 22 (main), 24 and 42.
  • SemMed: test 300 and train/val (stratified, seed 22); train/val rows whose sentence also occurs in PubMed are removed. Train + val is the "+SemMed" training data. The SemMed split is the same for every PubMed split.

scripts/02_make_splits.py recomputes the splits with the published algorithm, checks that they equal this file and writes the files used by the training scripts.

pool/cell_pair_pool.csv (2,121,113 rows)

Every PubMed sentence (2025 baseline) with two cells linked to the Cell Ontology, one row per cell pair. It is the input of the continued pretraining of ccbert-R-pretrained and of the CCC comparison.

column description
pmid, sent_id PubMed ID and sentence ID
cell_a_id, cell_b_id Cell Ontology IDs; cell_a is [CELL0], cell_b is [CELL1]
sentence_start, sentence_end offsets of the sentence in the abstract (pool convention, see below)
cell0_spans, cell1_spans as in pubmed/offsets.csv (a plural s is outside the span: [CELL0]s)
sha256 first 16 hex digits of the SHA-256 of the sentence with the mentions replaced by [CELL0]/[CELL1]

In 45587 row(s) the sentence used for training differed from the abstract only in whitespace (e.g. NO-BREAK SPACE instead of a space, or a space at the start or end of the sentence) or in the brackets 【】, which had been removed; the hash is that of the sentence rebuilt from the abstract (with the abstract's characters). The continued pretraining additionally replaced a random half of the rows (sample(frac=0.5, random_state=42), keyed by (pmid, sent_id)) with a sentence from a broader, unpublished cell-mention corpus; that substitution cannot be reproduced from this dataset.

Abstract text

Offsets count Unicode code points in the abstract built from the <AbstractText> elements of the PubMed record (E-utilities efetch, XML), each element's text stripped, empty elements skipped, the elements joined by one space, and Unicode space characters replaced by a plain space.

  • pubmed/offsets.csv: each element is written as LABEL: text when it has a Label attribute.
  • pool/cell_pair_pool.csv: the element texts only, without labels.

A record revised after the 2025 baseline fails the hash check; the reconstruction scripts list such rows.

Downloads last month
13