nwb-conversion
Skill by K-Dense-AI
Converts two-photon TIFF imaging and timestamped position CSV files into validated Neurodata Without Borders (NWB) files. Intended for neuroscientists using NeuroConv, PyNWB and NWB Inspector on single-channel, single-plane sessions. It does not perform spike sorting.
Install nwb-conversion
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/nwb-conversion ~/.claude/skills/nwb-conversionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/nwb-conversion ~/.gemini/antigravity-cli/skills/nwb-conversionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
nwb-conversion is an agent skill from K-Dense-AI that converts neuroscience acquisition data to Neurodata Without Borders (NWB) files using NeuroConv and PyNWB. It handles two explicit streams in one session: a single-channel, single-plane grayscale multi-page TIFF with frame timestamps, and a calibrated position CSV with time, x and y columns. It preserves metadata and timebases and does not perform spike sorting.
The workflow checks clock alignment using acquisition evidence, such as matched synchronization pulses. It fits one affine clock transform, checks the residual against a tolerance, and refuses extrapolation beyond the pulse range. It then writes the NWB file and produces schema validation, NWB Inspector findings and round-trip checks in a validation report. It is aimed at researchers who need this specific conversion, not arbitrary acquisition formats.
Written from the project's SKILL.md and checked against it.
What it can do
- TIFF imaging conversionConverts a multi-page TIFF with frame timestamps into an acquisition TwoPhotonSeries named Imaging.
- Position conversionWrites a calibrated position CSV as a Behavior Position SpatialSeries, converting cm or mm to meters.
- Clock alignmentFits one affine clock transform from matched synchronization pulses and checks its residual.
- Validation reportProduces schema validation, NWB Inspector findings and round-trip checks in a .validation.json file.
- Provenance recordsOutputs source and converter checksums, package versions and supplied metadata with the report.
What you need
- Python 3.12
- neuroconv[tiff] 0.10.2 with the pinned PyNWB, NWB Inspector, roiextractors, tifffile, zarr and hdmf-zarr versions
- Local HDF5 file access
Try asking
- Convert my two-photon TIFF and position CSV session into an NWB file.
- Check clock alignment using these matched sync pulses before converting.
- Run schema validation and NWB Inspector on my converted session.
Good to know
- Supports one channel and one plane for TIFF imaging only.
- Does not perform spike sorting or decode SpikeGLX, Open Ephys or multichannel TIFF.
- Position CSV loads fully into memory; TIFF writes are iterative.
- Successful validation does not confirm anatomical labels, pulse pairing or calibration.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/nwb-conversion/SKILL.md, skills/nwb-conversion/scripts/convert_session.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
assets/session-template.json1 KB -
references/input-contract.md5 KB -
references/upstream-review.md4 KB -
scripts/convert_session.py16 KB
Alternatives to nwb-conversion
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
nwb-conversion: common questions
Does it support SpikeGLX or Open Ephys data?
No. The source says the helper does not decode SpikeGLX, Open Ephys, multichannel TIFF, volumetric TIFF or compressed video.
Does it perform spike sorting?
No. The source states that this skill does not perform spike sorting.
Does it resample position data in time?
No. Position coordinates are converted to meters without temporal resampling.
How do I install nwb-conversion?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nwb-conversion free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is nwb-conversion safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to nwb-conversion?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
