The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'Compound::DB00514\tCompound:Gene\tGene::1136'}) and 1 missing columns ({'drug_id\tsmiles'}).
This happened while the csv dataset builder was generating data using
hf://datasets/FengJiang02/GRAM-DTI/downstream/Hetionet/dti.csv (at revision 504efc8ef0e147e6aeade928055526f719108d3c), ['hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/drug_smiles.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/protein_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/retrieval.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/drug_smi.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/retrieval.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/tar_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/drug_smi.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/retrieval.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/tar_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/drug_smiles.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/protein_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/retrieval.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
Compound::DB00514 Compound:Gene Gene::1136: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 469
to
{'drug_id\tsmiles': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'Compound::DB00514\tCompound:Gene\tGene::1136'}) and 1 missing columns ({'drug_id\tsmiles'}).
This happened while the csv dataset builder was generating data using
hf://datasets/FengJiang02/GRAM-DTI/downstream/Hetionet/dti.csv (at revision 504efc8ef0e147e6aeade928055526f719108d3c), ['hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/drug_smiles.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/protein_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/Hetionet/retrieval.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/drug_smi.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/retrieval.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/activation/tar_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/drug_smi.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/retrieval.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/inhibition/tar_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/drug_smiles.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/dti.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/protein_seq.csv', 'hf://datasets/FengJiang02/GRAM-DTI@504efc8ef0e147e6aeade928055526f719108d3c/downstream/yamanishi_08/retrieval.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
drug_id smiles string |
|---|
Compound::DB00514 [H][C@]12CCCC[C@]11CCN(C)[C@H]2CC2=C1C=C(OC)C=C2 |
Compound::DB00686 O[C@@H]1CO[C@@H](O[C@@H]2CO[C@@H](O)[C@H](OS(O)(=O)=O)[C@H]2OS(O)(=O)=O)[C@H](OS(O)(=O)=O)[C@H]1OS(O)(=O)=O |
Compound::DB00786 CNC(=O)[C@@H](NC(=O)[C@H](CC(C)C)[C@H](O)C(=O)NO)C(C)(C)C |
Compound::DB01209 [H][C@@]12CC3=CC=C(O)C=C3[C@@](C)(CCCCC1)[C@H]2N |
Compound::DB01588 ClC1=CC2=C(C=C1)N(CC1CC1)C(=O)CN=C2C1=CC=CC=C1 |
Compound::DB00175 [H][C@]12[C@H](C[C@H](O)C=C1C=C[C@H](C)[C@@H]2CC[C@@H](O)C[C@@H](O)CC(O)=O)OC(=O)[C@@H](C)CC |
Compound::DB00813 CCC(=O)N(C1CCN(CCC2=CC=CC=C2)CC1)C1=CC=CC=C1 |
Compound::DB00869 CCN[C@H]1C[C@H](C)S(=O)(=O)C2=C1C=C(S2)S(N)(=O)=O |
Compound::DB00172 OC(=O)[C@@H]1CCCN1 |
Compound::DB01250 OC(=O)C1=CC(=CC=C1O)\N=N\C1=CC=C(O)C(=C1)C(O)=O |
Compound::DB00313 CCCC(CCC)C(O)=O |
Compound::DB00217 CN\C(NCC1=CC=CC=C1)=N/C |
Compound::DB06262 N[C@@H]([C@H](O)C1=CC(O)=C(O)C=C1)C(O)=O |
Compound::DB01115 COC(=O)C1=C(C)NC(C)=C(C1C1=CC=CC=C1[N+]([O-])=O)C(=O)OC |
Compound::DB00213 COC1=C(OC)C(CS(=O)C2=NC3=C(N2)C=C(OC(F)F)C=C3)=NC=C1 |
Compound::DB00203 CCCC1=NN(C)C2=C1N=C(NC2=O)C1=CC(=CC=C1OCC)S(=O)(=O)N1CCN(C)CC1 |
Compound::DB00150 N[C@@H](CC1=CNC2=C1C=CC=C2)C(O)=O |
Compound::DB00909 NS(=O)(=O)CC1=NOC2=CC=CC=C12 |
Compound::DB00847 NCCS |
Compound::DB00451 N[C@@H](CC1=CC(I)=C(OC2=CC(I)=C(O)C(I)=C2)C(I)=C1)C(O)=O |
Compound::DB00575 ClC1=CC=CC(Cl)=C1NC1=NCCN1 |
Compound::DB01218 CCCCN(CCCC)CCC(O)C1=C2C=CC(=CC2=C2C=C(Cl)C=C(Cl)C2=C1)C(F)(F)F |
Compound::DB06716 CC(C)C1=CC=CC(C(C)C)=C1OCOP(O)(O)=O |
Compound::DB01364 CN[C@@H](C)[C@H](O)C1=CC=CC=C1 |
Compound::DB01559 CCC1=CC2=C(S1)N(C)C(=O)CN=C2C1=CC=CC=C1Cl |
Compound::DB00502 OC1(CCN(CCCC(=O)C2=CC=C(F)C=C2)CC1)C1=CC=C(Cl)C=C1 |
Compound::DB00715 FC1=CC=C(C=C1)[C@@H]1CCNC[C@H]1COC1=CC2=C(OCO2)C=C1 |
Compound::DB01133 OP(O)(=O)C(SC1=CC=C(Cl)C=C1)P(O)(O)=O |
Compound::DB00390 [H][C@]12CC[C@]3([H])[C@]([H])(C[C@@H](O)[C@]4(C)[C@H](CC[C@]34O)C3=CC(=O)OC3)[C@@]1(C)CC[C@@H](C2)O[C@H]1C[C@H](O)[C@H](O[C@H]2C[C@H](O)[C@H](O[C@H]3C[C@H](O)[C@H](O)[C@@H](C)O3)[C@@H](C)O2)[C@@H](C)O1 |
Compound::DB01086 CCOC(=O)C1=CC=C(N)C=C1 |
Compound::DB00334 CN1CCN(CC1)C1=NC2=CC=CC=C2NC2=C1C=C(C)S2 |
Compound::DB00975 OCCN(CCO)C1=NC2=C(N=C(N=C2N2CCCCC2)N(CCO)CCO)C(=N1)N1CCCCC1 |
Compound::DB01332 [H][C@]12SCC=C(N1C(=O)[C@H]2NC(=O)C(=N/OC)\C1=CSC(N)=N1)C(O)=O |
Compound::DB00381 CCOC(=O)C1=C(COCCN)NC(C)=C(C1C1=CC=CC=C1Cl)C(=O)OC |
Compound::DB00536 NC(N)=N |
Compound::DB01065 COC1=CC2=C(NC=C2CCNC(C)=O)C=C1 |
Compound::DB00594 NC(=N)NC(=O)C1=NC(Cl)=C(N)N=C1N |
Compound::DB00194 NC1=NC=NC2=C1N=CN2[C@@H]1O[C@H](CO)[C@@H](O)[C@@H]1O |
Compound::DB01236 FCOC(C(F)(F)F)C(F)(F)F |
Compound::DB00907 [H][C@]12CC[C@]([H])([C@H]([C@H](C1)OC(=O)C1=CC=CC=C1)C(=O)OC)N2C |
Compound::DB00289 CNCC[C@@H](OC1=CC=CC=C1C)C1=CC=CC=C1 |
Compound::DB00619 CN1CCN(CC2=CC=C(C=C2)C(=O)NC2=CC(NC3=NC=CC(=N3)C3=CN=CC=C3)=C(C)C=C2)CC1 |
Compound::DB00323 CC1=CC=C(C=C1)C(=O)C1=CC(=C(O)C(O)=C1)[N+]([O-])=O |
Compound::DB00568 C(C=CC1=CC=CC=C1)N1CCN(CC1)C(C1=CC=CC=C1)C1=CC=CC=C1 |
Compound::DB00655 [H][C@@]12CCC(=O)[C@@]1(C)CC[C@]1([H])C3=C(CC[C@@]21[H])C=C(O)C=C3 |
Compound::DB01123 NC1=CC2=NC3=C(C=CC(N)=C3)C=C2C=C1 |
Compound::DB01032 CCCN(CCC)S(=O)(=O)C1=CC=C(C=C1)C(O)=O |
Compound::DB00316 CC(=O)NC1=CC=C(O)C=C1 |
Compound::DB01233 CCN(CC)CCNC(=O)C1=CC(Cl)=C(N)C=C1OC |
Compound::DB04855 CCCCN(CCCC)CCCOC1=CC=C(C=C1)C(=O)C1=C(CCCC)OC2=C1C=C(NS(C)(=O)=O)C=C2 |
Compound::DB00917 CCCCC[C@H](O)\C=C\[C@H]1[C@H](O)CC(=O)[C@@H]1C\C=C/CCCC(O)=O |
Compound::DB04877 [H][C@@]12C[C@H](CC)[C@]3([H])N(C1)CCC1=C(NC4=CC(=C(OC)C=C14)[C@@]1([H])C[C@]4([H])C(C(=O)OC)[C@@]([H])(CC5=C1NC1=CC=CC=C51)N(C)C\C4=C\C)[C@@]3(C2)C(=O)OC |
Compound::DB08877 N#CC[C@H](C1CCCC1)N1C=C(C=N1)C1=C2C=CNC2=NC=N1 |
Compound::DB06287 OCC(C)(CO)C(=O)O[C@@H]1CC[C@@H](C[C@@H](C)[C@]2([H])CC(=O)[C@H](C)\C=C(C)\[C@@H](O)[C@@H](OC)C(=O)[C@H](C)C[C@H](C)\C=C\C=C\C=C(C)\[C@@H](OC)C[C@]3([H])CC[C@@H](C)[C@@](O)(O3)C(=O)C(=O)N3CCCC[C@H]3C(=O)O2)C[C@H]1OC |
Compound::DB00215 CN(C)CCCC1(OCC2=C1C=CC(=C2)C#N)C1=CC=C(F)C=C1 |
Compound::DB01144 NS(=O)(=O)C1=CC(=C(Cl)C(Cl)=C1)S(N)(=O)=O |
Compound::DB00115 C[C@H](CNC(=O)CC[C@]1(C)[C@@H](CC(N)=O)[C@H]2N=C1\C(C)=C1/N=C(/C=C3\N=C(\C(\C)=C4\[C@@H](CCC(N)=O)[C@](C)(CC(N)=O)[C@@]2(C)N4[Co+]C#N)[C@@](C)(CC(N)=O)[C@@H]3CCC(N)=O)C(C)(C)[C@@H]1CCC(N)=O)OP([O-])(=O)O[C@@H]1[C@@H](CO)O[C@@H]([C@@H]1O)N1C=NC2=C1C=C(C)C(C)=C2 |
Compound::DB01268 CCN(CC)CCNC(=O)C1=C(C)NC(\C=C2/C(=O)NC3=C2C=C(F)C=C3)=C1C |
Compound::DB00327 [H][C@@]12OC3=C(O)C=CC4=C3[C@@]11CCN(C)[C@]([H])(C4)[C@]1([H])CCC2=O |
Compound::DB01015 CC1=CC(NS(=O)(=O)C2=CC=C(N)C=C2)=NO1 |
Compound::DB00673 C[C@@H](O[C@H]1OCCN(CC2=NNC(=O)N2)[C@H]1C1=CC=C(F)C=C1)C1=CC(=CC(=C1)C(F)(F)F)C(F)(F)F |
Compound::DB01296 N[C@H]1C(O)O[C@H](CO)[C@@H](O)[C@@H]1O |
Compound::DB06616 COC1=CC(NC2=C(C=NC3=CC(OCCCN4CCN(C)CC4)=C(OC)C=C23)C#N)=C(Cl)C=C1Cl |
Compound::DB00738 NC(=N)C1=CC=C(OCCCCCOC2=CC=C(C=C2)C(N)=N)C=C1 |
Compound::DB00440 COC1=CC(CC2=CN=C(N)N=C2N)=CC(OC)=C1OC |
Compound::DB01151 CNCCCN1C2=CC=CC=C2CCC2=CC=CC=C12 |
Compound::DB01110 ClC1=CC(Cl)=C(COC(CN2C=CN=C2)C2=C(Cl)C=C(Cl)C=C2)C=C1 |
Compound::DB00703 CN1N=C(S\C1=N\C(C)=O)S(N)(=O)=O |
Compound::DB00300 [H][C@@](C)(CN1C=NC2=C(N)N=CN=C12)OCP(=O)(OCOC(=O)OC(C)C)OCOC(=O)OC(C)C |
Compound::DB00751 NC1=NCC2N1C1=CC=CC=C1CC1=CC=CC=C21 |
Compound::DB01254 CC1=NC(NC2=NC=C(S2)C(=O)NC2=C(C)C=CC=C2Cl)=CC(=N1)N1CCN(CCO)CC1 |
Compound::DB00492 CCC(=O)O[C@@H](OP(=O)(CCCCC1=CC=CC=C1)CC(=O)N1C[C@@H](C[C@H]1C(O)=O)C1CCCCC1)C(C)C |
Compound::DB00404 CC1=NN=C2CN=C(C3=CC=CC=C3)C3=C(C=CC(Cl)=C3)N12 |
Compound::DB01242 CN(C)CCCN1C2=CC=CC=C2CCC2=C1C=C(Cl)C=C2 |
Compound::DB00233 NC1=CC(O)=C(C=C1)C(O)=O |
Compound::DB08795 [H][C@]12SC(C)(C)[C@@H](N1C(=O)[C@H]2NC(=O)[C@H](N=[N+]=[N-])C1=CC=CC=C1)C(O)=O |
Compound::DB00255 CC\C(=C(\CC)C1=CC=C(O)C=C1)C1=CC=C(O)C=C1 |
Compound::DB01087 COC1=CC(NC(C)CCCN)=C2N=CC=CC2=C1 |
Compound::DB00471 OC(=O)CC1(CC1)CS[C@H](CCC1=CC=CC=C1C(O)(C)C)C1=CC=CC(\C=C\C2=NC3=C(C=CC(Cl)=C3)C=C2)=C1 |
Compound::DB00371 CCCC(C)(COC(N)=O)COC(N)=O |
Compound::DB00130 N[C@@H](CCC(N)=O)C(O)=O |
Compound::DB00915 NC12CC3CC(CC(C3)C1)C2 |
Compound::DB00583 C[N+](C)(C)C[C@H](O)CC([O-])=O |
Compound::DB04842 FC1=CC=C(C=C1)C(CCCN1CCC2(CC1)N(CNC2=O)C1=CC=CC=C1)C1=CC=C(F)C=C1 |
Compound::DB01173 CN(C)CCOC(C1=CC=CC=C1)C1=CC=CC=C1C |
Compound::DB01149 CCC1=NN(CCCN2CCN(CC2)C2=CC(Cl)=CC=C2)C(=O)N1CCOC1=CC=CC=C1 |
Compound::DB00669 CNS(=O)(=O)CC1=CC=C2NC=C(CCN(C)C)C2=C1 |
Compound::DB00570 [H][C@@]12N(C)C3=CC(OC)=C(C=C3[C@@]11CCN3CC=C[C@@](CC)([C@@H](OC(C)=O)[C@]2(O)C(=O)OC)[C@@]13[H])[C@]1(C[C@@]2([H])CN(C[C@](O)(CC)C2)CCC2=C1NC1=C2C=CC=C1)C(=O)OC |
Compound::DB00228 FC(F)OC(F)(F)C(F)Cl |
Compound::DB01576 C[C@H](N)CC1=CC=CC=C1 |
Compound::DB00537 OC(=O)C1=CN(C2CC2)C2=CC(N3CCNCC3)=C(F)C=C2C1=O |
Compound::DB00723 COC1=CC(C(O)C(C)N)=C(OC)C=C1 |
Compound::DB01198 CN1CCN(CC1)C(=O)OC1N(C(=O)C2=NC=CN=C12)C1=NC=C(Cl)C=C1 |
Compound::DB01248 [H][C@@]1(C[C@@]2(O)[C@@H](OC(=O)C3=CC=CC=C3)[C@]3([H])[C@@]4(CO[C@@H]4C[C@H](O)[C@@]3(C)C(=O)[C@H](O)C(=C1C)C2(C)C)OC(C)=O)OC(=O)[C@H](O)[C@@H](NC(=O)OC(C)(C)C)C1=CC=CC=C1 |
Compound::DB00983 COC1=CC=C(CC(C)NCC(O)C2=CC(NC=O)=C(O)C=C2)C=C1 |
Compound::DB00867 C[C@H](NCCC1=CC=C(O)C=C1)[C@H](O)C1=CC=C(O)C=C1 |
Compound::DB00549 COC1=CC(=CC=C1CC1=CN(C)C2=C1C=C(NC(=O)OC1CCCC1)C=C2)C(=O)NS(=O)(=O)C1=CC=CC=C1C |
Compound::DB00093 NCCCC[C@H](NC(=O)[C@@H]1CCCN1C(=O)[C@@H]1CSSC[C@H](N)C(=O)N[C@@H](CC2=CC=CC=C2)C(=O)N[C@@H](CC2=CC=CC=C2)C(=O)N[C@@H](CCC(N)=O)C(=O)N[C@@H](CC(N)=O)C(=O)N1)C(=O)NCC(N)=O |
Compound::DB01094 COC1=C(O)C=C(C=C1)[C@@H]1CC(=O)C2=C(O)C=C(O)C=C2O1 |
Compound::DB01594 OC1N=C(C2=CC=CC=C2F)C2=C(C=CC(Cl)=C2)N(CCC#N)C1=O |
GRAM-DTI Data
Pre-training and downstream evaluation data for GRAM-DTI: Adaptive Multimodal Representation Learning for Drug-Target Interaction Prediction (ICLR 2026).
Paper: https://arxiv.org/abs/2509.21971
Code: https://github.com/uta-smile/GRAM-DTI
Contents
| File | Size | Description |
|---|---|---|
embeddings/embeddings.h5 |
256 MB | Pre-computed embeddings for the four modalities, 50,968 rows each |
embeddings/metadata.json |
168 MB | The raw text and labels for the same 50,968 pairs, in the same row order |
cleaned_pretrain_after_rdk.json |
146 MB | The source records the embeddings were computed from, keyed by PubChem CID |
downstream/ |
65 MB | The four downstream evaluation datasets, and make_splits.py to generate their cross-validation folds |
The pre-training data covers 50,968 molecule–protein pairs, built from 6,545 molecules and 4,418 protein sequences.
embeddings/embeddings.h5
| Dataset | Shape | Encoder |
|---|---|---|
smiles_embeddings |
(50968, 768) | ibm/MoLFormer-XL-both-10pct |
text_embeddings |
(50968, 768) | laituan245/molt5-base (encoder), on the molecule description |
hta_embeddings |
(50968, 768) | laituan245/molt5-base (encoder), on the hierarchical taxonomic annotation |
protein_embeddings |
(50968, 1280) | facebook/esm2_t33_650M_UR50D |
All arrays are float32. Each embedding is the first-token hidden state of the encoder's last layer. Inputs were truncated to 512 tokens (1,024 for proteins).
embeddings/metadata.json
A list of 50,968 objects. Row i matches row i of every array in embeddings.h5.
| Field | Description |
|---|---|
CID |
PubChem compound ID |
smiles |
SMILES string |
description |
Text description of the molecule |
hta |
Hierarchical taxonomic annotation text |
protein_sequence |
Target protein amino-acid sequence |
protein_name, organism, function_description |
Target protein annotations |
ic50_value |
Mean IC50 in nM, or null |
ic50_label |
0 if IC50 < 10 nM, 1 if < 1000 nM, 2 otherwise; null when no IC50 is available |
has_ic50 |
Whether the pair has a measured IC50 |
16,035 pairs have a measured IC50 (1,529 / 4,396 / 10,110 in classes 0 / 1 / 2). The remaining 34,933 pairs have no IC50 label.
cleaned_pretrain_after_rdk.json
A dictionary keyed by CID with 6,546 entries. Each entry holds:
smiles_info:SMILES,Description,HTAbindingdb_info:targets, a list of protein targets, each withtarget_name,organism,sequence,uniprot_ids,function_descriptionandbinding_datasmiles_validation: the result of matching the SMILES against BindingDB
downstream/
Four evaluation datasets, one directory each:
| Directory | Task | Interactions | Drugs | Proteins |
|---|---|---|---|---|
downstream/yamanishi_08/ |
DTI prediction | 5,127 | 791 | 989 |
downstream/Hetionet/ |
DTI prediction | 49,942 | 1,440 | 18,935 |
downstream/activation/ |
Mechanism of action | 1,913 | 1,426 | 281 |
downstream/inhibition/ |
Mechanism of action | 21,055 | 14,049 | 1,088 |
Each directory holds four files:
| File | Description |
|---|---|
dti.csv |
Positive drug–target pairs, by ID (tab-separated) |
drug_smiles.csv (drug_smi.csv for the MoA sets) |
Drug ID to SMILES (tab-separated) |
protein_seq.csv (tar_seq.csv for the MoA sets) |
Protein ID to amino-acid sequence (tab-separated) |
retrieval.csv |
The positive pairs with SMILES and sequence filled in, used by the retrieval task (comma-separated) |
The ID, SMILES and sequence files are unchanged copies of the data released with DTIAM. retrieval.csv was derived from them for this work.
Cross-validation folds are not included. downstream/make_splits.py generates them from the three ID, SMILES and sequence files, for three settings:
| Setting | How the pairs are split |
|---|---|
split_warm |
At random |
split_drug_cold |
By drug, so test drugs are unseen in training |
split_protein_cold |
By protein, so test proteins are unseen in training |
Negative pairs are sampled at a 10:1 ratio to the positives, from the unobserved pairs between the drugs and proteins listed in the files. The seed is fixed (42), so the script writes the same folds every time. The paper uses 10 folds for the DTI datasets and 5 for the MoA datasets.
Usage
Download the pre-training data into the directory the training script expects:
hf download FengJiang02/GRAM-DTI --repo-type dataset \
--include "embeddings/*" "cleaned_pretrain_after_rdk.json" --local-dir pretrain_data
Then run pre-training from the directory that contains pretrain_data/:
python pretraining/run.py --embedding_dir pretrain_data/embeddings
To read the embeddings directly:
import h5py, json
with h5py.File("pretrain_data/embeddings/embeddings.h5", "r") as f:
smiles = f["smiles_embeddings"][:]
protein = f["protein_embeddings"][:]
with open("pretrain_data/embeddings/metadata.json") as f:
metadata = json.load(f)
The downstream scripts read from data/<dataset>/:
hf download FengJiang02/GRAM-DTI --repo-type dataset --include "downstream/*" --local-dir .
mv downstream data
Then generate the folds, which are written to data/<dataset>/data_folds/<setting>/:
python data/make_splits.py data/yamanishi_08 data/Hetionet
python data/make_splits.py data/activation data/inhibition --n_splits 5
The script needs numpy, pandas and scikit-learn. The folds store the full SMILES and sequence on every row, so they are large: about 11 GB for Hetionet and 15 GB for all four datasets.
Sources
The molecules, with their descriptions and hierarchical taxonomic annotations, come from the TRIDENT dataset of 47,269 PubChem molecules. Protein targets and IC50 measurements come from BindingDB (the May 2025 release, BindingDB_All_202505).
To prevent leakage, every (SMILES, protein) pair that appears as a positive in a downstream evaluation set (Yamanishi_08, Hetionet, and the activation and inhibition MoA sets) was removed before pre-training. Individual molecules and proteins from those sets can still appear in the pre-training data, in other pairs.
The downstream datasets come from DTIAM; please cite it as well if you use them.
Citation
If you use this data, please cite:
@article{jiang2025gramdti,
title={GRAM-DTI: adaptive multimodal representation learning for drug target interaction prediction},
author={Jiang, Feng and Mollaysa, Amina and Ma, Hehuan and Mansi, Tommaso and Huang, Junzhou and Prakash, Mangal and Liao, Rui},
journal={arXiv preprint arXiv:2509.21971},
year={2025}
}
- Downloads last month
- 84