Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu51k · #3431

bids

Skill này làm gì

Công cụ này giúp sắp xếp và kiểm tra dữ liệu nghiên cứu thần kinh và y sinh. Nó đảm bảo các tệp của bạn ở đúng định dạng (BIDS) để những nhà nghiên cứu và phần mềm khác dễ dàng hiểu và sử dụng.

Khi nào nên dùng

  • ✓Khi bạn có dữ liệu quét não thô (MRI, EEG, v.v.) và cần sắp xếp lại.
  • ✓Khi bạn muốn đảm bảo dữ liệu theo đúng định dạng chuẩn (BIDS) trước khi chia sẻ.
  • ✓Khi bạn cần chuyển dữ liệu quét (như DICOM) sang định dạng BIDS.

Liên kết skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/bids/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/bids/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Sắp xếp dữ liệu MRI của đối tượng 01 của tôi theo cấu trúc BIDS.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ dùng tiêu chuẩn BIDS để sắp xếp các tệp vào những thư mục và tên cụ thể. Nó cũng có thể kiểm tra xem dữ liệu có tuân theo tiêu chuẩn này không và chuyển các định dạng khác sang BIDS.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Brain Imaging Data Structure (BIDS)

Overview

The Brain Imaging Data Structure (BIDS) is a community standard for organizing and describing neuroscience and biomedical research datasets. It defines a consistent file naming convention, directory hierarchy, and metadata schema so that datasets are immediately understandable by humans and software tools alike. BIDS is governed by the BIDS Specification (reviewed against v1.11.2, released 2026-09-29) and is maintained by the community via the BIDS-Standard GitHub organization.

While BIDS originated for MRI, it has grown well beyond neuroimaging. The specification now covers 11 modalities spanning imaging, electrophysiology, and behavioral data:

  • Imaging: MRI (structural, functional, diffusion, fieldmaps, perfusion/ASL), PET, microscopy
  • Electrophysiology: EEG, MEG, iEEG (intracranial EEG), EMG
  • Other: NIRS (near-infrared spectroscopy), motion capture, behavioral data (without imaging), MR spectroscopy

Active BEPs are extending BIDS further — notably BEP032 (microelectrode electrophysiology) proposes support for extracellular recordings including Neuropixels probes, bringing BIDS to a prevalent methodology in animal neuroscience research (see also the neuropixels-analysis skill).

Repository submission requirements vary by modality and archive; check the target archive before preparing a deposit.

The Python ecosystem for BIDS centers on PyBIDS (pybids) for querying and indexing BIDS datasets, and the bids-validator (Deno-based, available as PyPI package bids-validator-deno or via Deno directly) for compliance checking. Conversion from DICOM is typically done with HeuDiConv, dcm2bids, or BIDScoin.

When to Use This Skill

Apply this skill when:

  • Organizing raw neuroscience data (imaging, electrophysiology, behavioral) into BIDS-compliant directory structures
  • Querying an existing BIDS dataset to find specific files by subject, session, task, run, or modality
  • Validating a dataset against the BIDS specification before sharing or submission
  • Converting DICOM data from scanners into BIDS format
  • Writing or editing JSON sidecar metadata files
  • Creating BIDS-compliant derivatives (preprocessed data, analysis outputs)
  • Setting up a dataset_description.json for a new dataset
  • Working with BIDS entities (subject, session, task, acquisition, run, etc.)
  • Configuring .bidsignore to exclude files from validation
  • Preparing data for upload to OpenNeuro, DANDI, or other BIDS-aware repositories

Installation

# Core BIDS querying library
uv pip install pybids

# BIDS validator (Deno-based, installed via PyPI wrapper)
uv pip install bids-validator-deno
# Alternative: install directly via Deno
# deno install -ERWN -g -n bids-validator jsr:@bids/validator

# DICOM-to-BIDS converters (install as needed)
uv pip install heudiconv       # HeuDiConv - heuristic-based DICOM conversion
uv pip install dcm2bids        # dcm2bids - config-file-based conversion
# BIDScoin: uv pip install bidscoin

# Useful companions
uv pip install nibabel          # NIfTI/other neuroimaging file I/O
uv pip install pydicom          # DICOM file reading (used by converters)

Core Workflows

Twelve workflow areas, each with worked code, are documented in references/core_workflows.md:

  1. BIDS directory structure — the required layout and where each modality belongs.
  2. dataset_description.json — the required fields and how to generate it.
  3. Querying with PyBIDS — BIDSLayout, entity filters, sidecar metadata with automatic inheritance, and building paths from entities.
  4. Validation — bids-validator via the PyPI wrapper (recommended), via Deno directly, the legacy Node validator, and using .bidsignore to exclude files.
  5. Entities and file naming — the entity order and naming grammar.
  6. DICOM to BIDS conversion — HeuDiConv (including the turnkey ReproIn path and the reconnaissance → heuristic → convert sequence) and dcm2bids (config-file based).
  7. Metadata sidecars — required and recommended JSON fields per modality.
  8. Events files — task fMRI event timing and column conventions.
  9. Participants file — participants.tsv and its data dictionary.
  10. Derivatives — the derivatives layout and its dataset_description.json.
  11. Advanced PyBIDS — index caching, including derivatives, confound regressors, and DataFrame output.

…

Câu hỏi thường gặp

BIDS là gì?

BIDS là tiêu chuẩn sắp xếp dữ liệu nghiên cứu thần kinh và y sinh, giúp cả người lẫn máy tính dễ hiểu và sử dụng.

Tôi có thể sắp xếp những loại dữ liệu nào bằng công cụ này?

Bạn có thể sắp xếp dữ liệu từ MRI, EEG, MEG, PET, kính hiển vi, dữ liệu hành vi và nhiều loại khác.

Tôi có cần biết lập trình để dùng công cụ này không?

Không cần. Công cụ được thiết kế để dùng ngay cả khi bạn không biết lập trình. Nó giúp đơn giản hóa việc sắp xếp và kiểm tra dữ liệu.

Chi tiết

Mô tả gốc của tác giả

Organizes, queries, validates, and converts Brain Imaging Data Structure (BIDS) datasets. Supports organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives.

repo: K-Dense-AI/scientific-agent-skills

Độ phổ biến

Sao GitHub
51k
Vị trí xếp hạng
#3431
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự