anybioimage
Skill by maartenpaul
Displays biological images with mask overlays, annotations and SAM segmentation in Jupyter and marimo notebooks. Built for people who work with microscopy and bioimage data in Python notebooks.
Install anybioimage
Built from the published package, never by AI.
git clone --depth 1 https://github.com/maartenpaul/anybioimage /tmp/anybioimage && mkdir -p ~/.claude/skills && cp -r /tmp/anybioimage/.claude/skills/anybioimage ~/.claude/skills/anybioimageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/maartenpaul/anybioimage /tmp/anybioimage && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/anybioimage/.claude/skills/anybioimage ~/.gemini/antigravity-cli/skills/anybioimageAntigravity 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
anybioimage provides BioImageViewer, an interactive widget for showing biological images in Jupyter and marimo notebooks. It accepts numpy arrays, BioImage files including 5D TCZYX data, and OME-Zarr. Masks can be overlaid with custom colors and opacity, and annotations can be drawn as rectangles, polygons and points. Visual settings such as brightness, contrast and canvas height can be set from code.
Annotations are available as DataFrames for export, and SAM (Segment Anything Model) can be enabled to segment from drawn rectangles or clicked points. The skill includes setup steps for Jupyter and marimo, plus reference files with full API details and workflow examples. It suits people who view and segment microscopy images in notebooks.
Written from the project's SKILL.md and checked against it.
What it can do
- Image displayShows numpy arrays, BioImage files and OME-Zarr images in an interactive widget.
- Mask overlaysAdds segmentation masks with custom colors, opacity and optional contour-only display.
- AnnotationsDraw rectangles, polygons and points, then read them as DataFrames.
- SAM segmentationEnables Segment Anything Model to auto-segment from drawn rectangles or clicked points.
- Multichannel and 5D dataLoads multi-dimensional TCZYX images with dimension controls for T, C and Z.
- Visual settingsSets image brightness, contrast, canvas height and annotation colors from code.
What you need
- Jupyter or marimo notebook
- uv for the install commands shown in the source
- Model download on first use for SAM
Try asking
- Show this TIFF in BioImageViewer and overlay my nuclei labels in red
- Enable mobile_sam in the viewer and segment the regions I draw
- Export the rectangles I drew on the image to a CSV file
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/anybioimage/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to anybioimage
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
anybioimage: common questions
Does anybioimage work with marimo as well as Jupyter?
Yes. The source gives a marimo example and notes that the viewer must be wrapped with mo.ui.anywidget.
Which SAM models can I use with anybioimage?
The source lists mobile_sam (the default), sam_b, sam_l and fast_sam. The mobile_sam model is recommended as about 40MB and fast.
Can I load a 5D multichannel microscopy file?
Yes. Passing a BioImage object to set_image loads full 5D data with lazy loading, and T, C and Z controls appear in the UI.
How do I install anybioimage?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is anybioimage free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is anybioimage safe to use?
It scores 55 of 100. Grades: maintenance A, licence A, quality C. 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 anybioimage?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
