neuropixels-analysis
ما الذي تفعله
تحلل هذه المهارة تسجيلات الخلايا العصبية التي تُجرى بتقنية Neuropixels. تحمّل البيانات وتجهزها، وتصحح الحركة، وتحدد الإشارات الكهربائية للخلايا العصبية وتنظمها (فرز الذروات)، وتفحص جودة هذه الإشارات.
متى تستخدمها
- ✓عندما تملك بيانات تسجيل خلايا عصبية بتقنية Neuropixels.
- ✓عندما تحتاج إلى تنظيم الإشارات الكهربائية للخلايا العصبية وتحليلها.
- ✓عندما تريد فحص جودة البيانات العصبية بعد التسجيل.
رابط المهارة
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/neuropixels-analysis/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حلّل تسجيلات Neuropixels من التجربة X، ونظّم الإشارات، وأخبرني بالإشارات ذات الجودة الجيدة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تستخدم المهارة مجموعة من التعليمات تسمى SpikeInterface لقراءة بياناتك الخام. ثم تطبق المرشحات، وتصحح الانحرافات المحتملة، وتستخدم خوارزميات لإيجاد قمم النشاط العصبي وتصنيفها، مما يتيح التحليل.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Neuropixels Data Analysis
Overview
Toolkit for analyzing Neuropixels high-density neural recordings using current best practices from SpikeInterface, the Allen Institute, and the International Brain Laboratory (IBL). It covers the full workflow from raw data to reviewed, curated units. Targets SpikeInterface 0.105.0, ProbeInterface 0.4.0 and Neo 0.14.5 (reviewed 2026-10-01). Synthetic tests cover recording contracts, preprocessing, analyzers, metrics and exports; real acquisition files, native sorters, GPU execution and pretrained models remain illustrative.
All examples use the real SpikeInterface API (spikeinterface.full as si) plus the
companion curation module (spikeinterface.curation as sc). The skill ships runnable
scripts in scripts/ and a copy-and-edit template in assets/ that implement this
workflow directly on top of SpikeInterface — there is no separate package to install
beyond the dependencies listed under Installation.
When to Use This Skill
This skill should be used when:
- Working with Neuropixels recordings (
.ap.bin,.lf.bin,.metafiles) - Loading data from SpikeGLX, Open Ephys, or NWB formats
- Preprocessing neural recordings (filtering, common reference, bad-channel detection)
- Detecting and correcting motion/drift
- Running spike sorting (Kilosort4, SpykingCircus2, Mountainsort5, Tridesclous2)
- Computing quality metrics (SNR, ISI violations, presence ratio, amplitude cutoff)
- Curating units (threshold-based, model-based, or AI-assisted)
- Creating visualizations and exporting to Phy or NWB
Supported Hardware & Formats
| Probe | Electrodes | Channels | Notes |
|---|---|---|---|
| Neuropixels 1.0 | 960 | 384 | Use acquisition ADC timing metadata |
| Neuropixels 2.0 (single) | 1280 | 384 | Verify part number and timing metadata |
| Neuropixels 2.0 (4-shank) | 5120 | 384 | Multi-region recording |
| Format | Extension | Reader |
|---|---|---|
| SpikeGLX | .ap.bin, .lf.bin, .meta |
si.read_spikeglx() |
| Open Ephys | .continuous, .oebin |
si.read_openephys() |
| NWB | .nwb |
si.read_nwb() |
Quick Start
Import and configure parallel processing
import spikeinterface.full as si
# Global job kwargs are reused by all parallelizable steps
si.set_global_job_kwargs(n_jobs=-1, chunk_duration="1s", progress_bar=True)
Loading data
# Inspect available streams first
stream_names, stream_ids = si.get_neo_streams("spikeglx", "/path/to/run_g0/")
print(stream_names) # e.g. ['imec0.ap', 'imec0.lf', 'nidq']
# SpikeGLX (most common) — select the AP stream by name
recording = si.read_spikeglx("/path/to/run_g0/", stream_name="imec0.ap")
# Open Ephys
recording = si.read_openephys("/path/to/Record_Node_101/")
# For quick iteration, slice the first 60 s
fs = recording.get_sampling_frequency()
recording_sub = recording.frame_slice(0, min(int(60 * fs), recording.get_num_samples()))
Full pipeline (bundled script)
The repository ships an end-to-end pipeline built on SpikeInterface:
python scripts/neuropixels_pipeline.py /path/to/spikeglx/data output/ --sorter kilosort4 --curation allen
It performs load → preprocess → drift check → optional motion correction → sorting →
postprocessing → quality metrics → curation → export. Phy and the report retain all
units for review with curation labels; sorting_curated/ contains selected good units. Read the steps below to run them
interactively or customize the pipeline.
Standard Analysis Workflow
1. Preprocessing
Validate AP stream, calibration, channel order, probe geometry and segment boundaries first. This filter/reference chain is not full IBL destriping. Apply ADC timing correction only from valid acquisition metadata and reference each shank separately:
rec = si.highpass_filter(recording, freq_min=400.0)
bad_channel_ids, channel_labels = si.detect_bad_channels(rec)
rec = rec.remove_channels(bad_channel_ids)
rec = si.phase_shift(rec) # Requires valid inter_sample_shift property.
rec = si.common_reference(rec, operator="median", reference="global") # Single shank only.
For multiple shanks, use the bundled reference_by_shank helper described in
PREPROCESSING.md. Trace arrays are samples × channels;
get_traces(return_in_uV=True) needs calibrated gain/offset. The bundled commands
…
الأسئلة الشائعة
ما صيغ الملفات التي تدعمها المهارة؟
تدعم صيغًا شائعة مثل SpikeGLX وOpen Ephys وNWB، مع ملفات مثل .ap.bin و.lf.bin و.meta و.continuous و.oebin و.nwb.
ما هو «فرز الذروات» (spike sorting)؟
هو عملية تحديد الإشارات الكهربائية، أي الذروات، من خلايا عصبية مختلفة في تسجيل عصبي، وتجميعها حسب الخلية.
هل يمكنني استخدام هذه المهارة على أي تسجيل Neuropixels؟
هي محسّنة لـ Neuropixels 1.0 و2.0، وقد تعمل مع أجهزة أخرى إذا كانت البيانات بصيغة متوافقة.
التفاصيل
الوصف الأصلي من المؤلف
Analyzes Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX/Open Ephys/NWB data, preprocessing, drift/motion correction, Kilosort4 (and CPU) spike sorting, quality metrics, and unit curation (threshold-based, model-based UnitRefine, and AI-assisted visual review). Use when working with Neuropixels 1.0/2.0 recordings, spike sorting, or extracellular electro
الشعبية
- نجوم GitHub
- 51k
- الترتيب
- #3505
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
13c-metabolic-flux
51kيقدّر التدفقات الأيضية باستخدام بيانات تتبع نظير الكربون-13. وهو مفيد لتحليل الأيض الخلوي والمسارات الكيميائية الحيوية.
adaptyv
51kيصمم تجارب توصيف البروتينات باستخدام Adaptyv API. يساعد في تقدير التكاليف وإرسال التسلسلات ومتابعة نتائج المختبر.
aeon
51kينفذ مهام تعلم الآلة على بيانات السلاسل الزمنية. وهو مفيد للتصنيف والتنبؤ وكشف الشذوذ وإيجاد الأنماط في البيانات المتسلسلة.
alphagenome
51kيبحث عن التأثيرات الجينومية المحسوبة مسبقًا للمتغيرات الوراثية. يقدم درجات وشروحات لفهم تأثير هذه المتغيرات على الجينوم.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.