Skip to content
Back to skills

Data And Molnet

ASecurity

"Load user data into DeepChem datasets, split datasets, apply

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
datapythondebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-and-molnet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data And Molnet?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data And Molnet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-and-molnet/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-and-molnet)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-and-molnet
description: "Load user data into DeepChem datasets, split datasets, apply
  transformers, and use MoleculeNet loaders safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# DeepChem Data And MoleculeNet

Use this sub-skill when the task is about `deepchem.data`, `deepchem.splits`, `deepchem.trans`, or `deepchem.molnet`: loading CSV/SDF/FASTA/image/numpy data, debugging loader columns, creating train/valid/test splits, applying transformers, or choosing MoleculeNet loader options.

Route elsewhere when the user asks for:
- Featurizer internals or molecular representation choices: `../featurization/`.
- Model fitting, metrics, prediction, or evaluation loops: `../model-training/`.
- Docking, protein complexes, PDBBind structure preparation, or structural biology workflows: `../docking-and-structure/`.

## Fast Path

1. Identify the source format: CSV table, SDF properties, FASTA sequences, image files, in-memory arrays, or MoleculeNet.
2. Confirm the task column names, feature column (`smiles` by default for molecular CSV), id column, and whether missing labels should become zero weights.
3. Load into a `dc.data.Dataset` with `CSVLoader`, `SDFLoader`, `NumpyDataset`, or `DiskDataset.from_numpy`.
4. Split with `dc.splits.RandomSplitter()` for generic ML baselines or `dc.splits.ScaffoldSplitter()` for molecular generalization tests.
5. Fit transformers on the training dataset only, then apply the same transformers to valid/test.
6. For MoleculeNet, decide whether network downloads and disk cache writes are acceptable before calling a loader.

## Common APIs

```python
import deepchem as dc

loader = dc.data.CSVLoader(
    tasks=["activity"],
    feature_field="smiles",
    id_field="compound_id",
    featurizer=dc.feat.CircularFingerprint(size=1024),
)
dataset = loader.create_dataset("data.csv")

splitter = dc.splits.ScaffoldSplitter()
train, valid, test = splitter.train_valid_test_split(dataset, seed=123)

transformer = dc.trans.NormalizationTransformer(transform_y=True, dataset=train)
train = transformer.transform(train)
valid = transformer.transform(valid)
test = transformer.transform(test)
```

For detailed parameter notes, see `references/api-reference.md`.
For complete recipes, see `references/workflows.md`.
For column and shape assumptions, see `references/data-formats.md`.
For failure symptoms and fixes, see `references/troubleshooting.md`.

## Bundled Helpers

- `scripts/load_tiny_csv_dataset.py` creates or loads a tiny CSV and converts it to a DeepChem dataset.
- `scripts/split_tiny_dataset.py` builds deterministic tiny splits with `RandomSplitter` or `ScaffoldSplitter`.

Run either helper with `--help` first. They create tiny local demo data by default and do not depend on repository examples.

Files in this skill

  • SKILL.md2.8 KB
  • references/api-reference.md6.2 KB
  • references/data-formats.md4.2 KB
  • references/troubleshooting.md4.5 KB
  • references/workflows.md5 KB
  • scripts/load_tiny_csv_dataset.py2.2 KB
  • scripts/split_tiny_dataset.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.