Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,53 +1,113 @@
|
|
| 1 |
---
|
| 2 |
license: gpl-3.0
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
dtype: int64
|
| 18 |
-
- name: prompt
|
| 19 |
-
dtype: string
|
| 20 |
-
- name: input_smiles
|
| 21 |
-
dtype: string
|
| 22 |
-
- name: output_smiles
|
| 23 |
-
dtype: string
|
| 24 |
-
- name: action_type
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: edit
|
| 27 |
-
dtype: string
|
| 28 |
-
- name: target_delta
|
| 29 |
-
dtype: float64
|
| 30 |
-
- name: SA_delta
|
| 31 |
-
dtype: float64
|
| 32 |
-
- name: MW_delta
|
| 33 |
-
dtype: float64
|
| 34 |
-
- name: QED_delta
|
| 35 |
-
dtype: float64
|
| 36 |
-
- name: murcko_scaffold_retained
|
| 37 |
-
dtype: bool
|
| 38 |
-
splits:
|
| 39 |
-
- name: train
|
| 40 |
-
num_bytes: 175802626
|
| 41 |
-
num_examples: 469852
|
| 42 |
-
- name: validation
|
| 43 |
-
num_bytes: 19536864
|
| 44 |
-
num_examples: 52206
|
| 45 |
-
- name: train_neg
|
| 46 |
-
num_bytes: 171239483
|
| 47 |
-
num_examples: 469852
|
| 48 |
-
- name: validation_neg
|
| 49 |
-
num_bytes: 19031960
|
| 50 |
-
num_examples: 52206
|
| 51 |
-
download_size: 101199006
|
| 52 |
-
dataset_size: 385610933
|
| 53 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: gpl-3.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- text2text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- chemistry
|
| 10 |
+
- molecular-editing
|
| 11 |
+
- drug-discovery
|
| 12 |
+
- smiles
|
| 13 |
+
- molecule-generation
|
| 14 |
+
pretty_name: MEGA Molecular Editing Dataset (522K)
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
+
|
| 19 |
+
# MEGA-Small-v2-522K: Molecular Editing Dataset
|
| 20 |
+
|
| 21 |
+
This dataset contains 522K examples for training molecular editing models using the MEGA (Molecular Editor Guided by Action) framework.
|
| 22 |
+
|
| 23 |
+
## Dataset Description
|
| 24 |
+
|
| 25 |
+
This dataset supports molecular editing tasks where models learn to modify molecular structures (represented as SMILES strings) based on natural language instructions. The dataset includes both positive and negative examples across training and validation splits.
|
| 26 |
+
|
| 27 |
+
### Features
|
| 28 |
+
|
| 29 |
+
Each example contains:
|
| 30 |
+
- `task_id`: Unique identifier for the task
|
| 31 |
+
- `prompt`: Natural language instruction describing the desired molecular edit
|
| 32 |
+
- `input_smiles`: Input molecule in SMILES format
|
| 33 |
+
- `output_smiles`: Target molecule after editing
|
| 34 |
+
- `action_type`: Type of molecular edit operation
|
| 35 |
+
- `edit`: Specific edit operation applied
|
| 36 |
+
- `target_delta`: Change in target property
|
| 37 |
+
- `SA_delta`: Change in Synthetic Accessibility score
|
| 38 |
+
- `MW_delta`: Change in Molecular Weight
|
| 39 |
+
- `QED_delta`: Change in Quantitative Estimate of Drug-likeness
|
| 40 |
+
- `murcko_scaffold_retained`: Boolean indicating if the molecular scaffold is preserved
|
| 41 |
+
|
| 42 |
+
### Dataset Splits
|
| 43 |
+
|
| 44 |
+
- `train`: Training set with positive examples
|
| 45 |
+
- `validation`: Validation set with positive examples
|
| 46 |
+
- `train_neg`: Training set with negative examples
|
| 47 |
+
- `validation_neg`: Validation set with negative examples
|
| 48 |
+
|
| 49 |
+
## Usage
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from datasets import load_dataset
|
| 53 |
+
|
| 54 |
+
# Load the dataset
|
| 55 |
+
dataset = load_dataset("nfsrulesFR/mega-moledit-522K")
|
| 56 |
+
|
| 57 |
+
# Access different splits
|
| 58 |
+
train_data = dataset["train"]
|
| 59 |
+
val_data = dataset["validation"]
|
| 60 |
+
train_neg_data = dataset["train_neg"]
|
| 61 |
+
val_neg_data = dataset["validation_neg"]
|
| 62 |
+
|
| 63 |
+
# Example: access a single instance
|
| 64 |
+
example = train_data[0]
|
| 65 |
+
print(f"Prompt: {example['prompt']}")
|
| 66 |
+
print(f"Input SMILES: {example['input_smiles']}")
|
| 67 |
+
print(f"Output SMILES: {example['output_smiles']}")
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## Citation
|
| 71 |
+
|
| 72 |
+
If you use this dataset, please cite our paper:
|
| 73 |
+
|
| 74 |
+
```bibtex
|
| 75 |
+
@inproceedings{
|
| 76 |
+
fernandez2025mega,
|
| 77 |
+
title={MEGA: Molecular Editor Guided by Action},
|
| 78 |
+
author={Nelson Fernandez and Maxime Illouz and Luis Pinto and Entao Yang and Habiboulaye Amadou Boubacar},
|
| 79 |
+
booktitle={International Conference on Learning Representations},
|
| 80 |
+
year={2025},
|
| 81 |
+
url={https://openreview.net/pdf?id=MaS7e2EVFm}
|
| 82 |
+
}
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
**Paper**: [MEGA: Molecular Editor Guided by Action](https://openreview.net/pdf?id=MaS7e2EVFm)
|
| 86 |
+
|
| 87 |
+
**Published**: 24 September 2025
|
| 88 |
+
**Last Modified**: 07 November 2025
|
| 89 |
+
|
| 90 |
+
## Code
|
| 91 |
+
|
| 92 |
+
The code for training and using MEGA models is available at: [https://github.com/nfsrules/MEGA](https://github.com/nfsrules/MEGA)
|
| 93 |
+
|
| 94 |
+
## License
|
| 95 |
+
|
| 96 |
+
This dataset is released under the [GNU General Public License v3.0 (GPL-3.0)](https://www.gnu.org/licenses/gpl-3.0.en.html).
|
| 97 |
+
|
| 98 |
+
## Authors
|
| 99 |
+
|
| 100 |
+
- Nelson Fernandez
|
| 101 |
+
- Maxime Illouz
|
| 102 |
+
- Luis Pinto
|
| 103 |
+
- Entao Yang
|
| 104 |
+
- Habiboulaye Amadou Boubacar
|
| 105 |
+
|
| 106 |
+
## Applications
|
| 107 |
+
|
| 108 |
+
This dataset can be used for:
|
| 109 |
+
- Training molecular editing models
|
| 110 |
+
- Drug discovery and optimization
|
| 111 |
+
- Learning structure-property relationships
|
| 112 |
+
- Molecular generation with constraints
|
| 113 |
+
- Multi-objective molecular optimization
|