xiaohongshu
xiaohongshu
bidsapp-nidm-standards
Standards and tools for creating, maintaining, and refactoring NIDM-integrated BIDSapps that run through BABS. Use when working with sensein BIDSapp repositories (freesurfer_bidsapp, mriqc-nidm_bidsapp, ants_bidsapp) or creating new BIDSapps. Helps with repository structure consistency, NIDM inte...
Full skill instructions
Standardize BIDSapp repositories with NIDM integration for consistent structure, output formats, and BABS compatibility.
This skill defines standards for BIDSapp repositories that:
All BIDSapp repos follow this structure:
<bidsapp_name>/
├── src/
│ ├── <analysis_name>/ # Main analysis code
│ │ ├── __init__.py
│ │ ├── run.py # Entry point
│ │ └── <analysis>_runner.py
│ └── nidm/ # NIDM conversion (analysis-specific)
│ ├── __init__.py
│ ├── nidm_converter.py
│ └── data/
├── tests/
│ ├── test_<analysis>.py
│ └── test_nidm.py
├── examples/
├── Dockerfile
├── Singularity
├── setup.py
├── requirements.txt
├── VERSION
└── README.md
Standard BIDS arguments (required):
bids_dir - Input BIDS dataset pathoutput_dir - Output directory pathanalysis_level - Must be "participant"--participant-label - Subject ID(s) without "sub-" prefix--session-label - Session ID(s) without "ses-" prefix (optional)Standard NIDM arguments (required):
--nidm-input-dir - Path to existing NIDM files directory--skip-nidm - Skip NIDM conversion--skip-<analysis> - Skip analysis if already run (e.g., --skip-freesurfer, --skip-mriqc, --skip-ants)Analysis-specific arguments (optional):
--fs-license for FreeSurfer, --nprocs for MRIQC)See references/cli_arguments.md for complete specifications.
BIDS-compliant derivatives structure:
<output_dir>/
└── <bidsapp_name>/ # e.g., freesurfer_nidm, mriqc_nidm, ants_nidm
├── dataset_description.json
├── <analysis>/ # e.g., freesurfer, mriqc, ants
│ ├── dataset_description.json
│ └── sub-{id}/
│ └── ses-{session}/ # Optional
│ └── [analysis outputs]
└── nidm/
├── dataset_description.json
└── sub-{id}/
└── ses-{session}/ # Optional
└── sub-{id}_ses-{session}.ttl
The standard NIDM workflow:
--nidm-input-dir to output NIDM folder--skip-<analysis>)The NIDM input directory should contain:
nidm.ttl file at root, ORsub-{id}/ses-{session}/sub-{id}_ses-{session}.ttlFor complete NIDM integration specifications, see references/nidm_integration.md.
Verify a repo follows standards:
references/repo_structure.mdsrc/<analysis>/run.py for standard args<bidsapp_name>/{<analysis>, nidm}/ patternreferences/container_patterns.mdTo update a repo to match standards:
references/repo_structure.md--participant-label, --session-label--nidm-input-dir, --skip-nidm, --skip-<analysis>To create a new NIDM-integrated BIDSapp from scratch:
assets/template/ directory<analysis> placeholders throughoutsrc/<analysis>/<analysis>_runner.pysrc/nidm/nidm_converter.py for this analysisreferences/container_patterns.mdreferences/babs_config.md templateWhen changing standards that affect all BIDSapps:
src/nidm/nidm_converter.pysrc/<analysis>/run.pyAll reference files provide detailed specifications:
references/repo_structure.md - Complete repository structure template with explanationsreferences/nidm_integration.md - Full NIDM workflow, file formats, integration patternsreferences/babs_config.md - BABS YAML configuration template with examplesreferences/cli_arguments.md - Complete CLI argument specifications and validationreferences/container_patterns.md - Docker and Singularity build patternsreferences/testing_patterns.md - Test structure and coverage requirementsBoth Dockerfile and Singularity should:
vnmd/freesurfer_8.0.0)See references/container_patterns.md for complete specifications.
Standard test coverage:
Use pytest with fixtures for test data. See references/testing_patterns.md.
All BIDSapps must work with BABS for HPC deployment. Key requirements:
Generate BABS YAML configs using references/babs_config.md template.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience