Skip to content

Commit

Permalink
Merge pull request #52 from sensein/alistair/bids_format
Browse files Browse the repository at this point in the history
BIDS-like format
  • Loading branch information
alistairewj authored Jun 5, 2024
2 parents 940ae0a + 5f400cd commit c271df1
Show file tree
Hide file tree
Showing 47 changed files with 3,499 additions and 169 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A simple Python package to prepare acoustic data for the Bridge2AI voice project.

**Caution:** this package is under active development and interfaces may change rapidly over the next few weeks.
**Caution:** this package is under active development and interfaces may change rapidly.

## Installation
Requires a Python >= 3.10, <3.12 environment
Expand Down Expand Up @@ -100,3 +100,17 @@ b2aiprep-cli --help
```bash
b2aiprep-cli transcribe data/vc_source.wav --model_id 'openai/whisper-large-v3' --return_timestamps true
```

## BIDS-like data

This package provides conversion from a RedCap/file-based custom structure into a [BIDS-like](https://bids-standard.github.io/bids-starter-kit/folders_and_files/folders.html) structure for downstream analysis. In addition, utilities are provided for working with the BIDS-like structured data and to support data analysis of voice and questionnaire data.

Convert a RedCap CSV and a folder of audio files into the BIDS format:

```sh
b2aiprep-cli redcap2bids bridge2ai_voice_data.csv --outdir output --audiodir audio
```

The `audiodir` option above can be omitted, in which case no audio data is reorganized.

See the [tutorial.ipynb](docs/tutorial.ipynb) for a few use examples of data in the BIDS-like format.
Loading

0 comments on commit c271df1

Please sign in to comment.