AllenNeuralDynamics / AllenNeuralDynamics/aind-metadata-mapper

Add support for optogenetic FIP sessions and improve file pattern detection

オープン
#298 コメント 3 件 リアクション 0 件 担当者 1 名 @dougollerenshaw が担当を希望しています GitHub で見る
主要言語
Python
スター
0
フォーク
2
平均マージ
1日 7時間
マージ済み PR(30日)
1

説明

**Description:**

Currently, the FIP metadata mapper only supports one rig configuration and file naming convention. After attempting to apply the existing mapper code to past data, I discovered that ~119 out of 745 sessions use a different rig setup with different naming conventions. After some back and forth with @hagikent, I discovered that this actually the FIP format that is produced by the opto characterization rig. So we need to modify the mapper to handle this also.

The opto rig differs from the configuration expected by the existing mapper as follows:

1. **Different file naming patterns:**
- Standard: `FIP_DataG_*.csv`, `FIP_DataR_*.csv`, `FIP_DataIso_*.csv`
- Optogenetic: `Iso_*.csv`, `Signal_*.csv`, `Stim_*.csv`

2. **Different hardware configuration:**
- Single detector instead of multiple
- Additional stimulation LED (variable wavelength/power)
- Different light source metadata

**Proposed solution:**
- Rename `example_create_session.py` → `create_fip_session.py`
- Create new `create_opto_fip_session.py` with configurable stimulation parameters
- Update file pattern detection to handle both naming conventions
- Rename `pavlovian_behavior/example_create_session.py` → `create_pavlovian_session.py` for consistency

**Acceptance criteria:**
- [ ] Both file naming patterns work automatically
- [ ] Optogenetic script accepts wavelength/power as CLI arguments
- [ ] All existing functionality preserved
- [ ] Scripts renamed for clarity

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。