Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

This is a prototype to explore the possibility of creating self-contained tool to perform the data aggregation necessary to jump from events.tsv files/model.json/other time series metadata to a design matrix (or an appropriate sparse precursor of the design matrix).

License

Notifications You must be signed in to change notification settings

bids-standard/bids-statsmodels-design-synthesizer

Repository files navigation

bids-statsmodels-design-synthesizer

Documentation Status

Project migrated !!!!!

Efforts migrated to: bids-standard/pybids#724

For now this is a prototype to explore the possibility of creating self-contained tool to perform the data aggregation necessary to jump from BIDS events.tsv files/model.json/other time series metadata to a design matrix for downstream implementers (or an appropriate sparse precursor of the design matrix).

Design notes: https://hackmd.io/QdwXR8XwRcmZaXp1zw6Ukg

Developer setup

While this tool attempts to have no dependencies, the development dependencies for now can be installed with (very hacky for now):

# you may need to brew install git-annex
# first step is to install git-annex with something like:
brew install git-annex
conda create -c conda-forge -n bids-stats-synth python=3
conda activate bids-stats-synth

pip install datalad
pip install -r requirements_dev.txt
pip install -e .

mkdir tests/data
cd tests/data
datalad install ///openneuro/ds000003
mkdir ds000003/models
curl -fsSL https://raw.githubusercontent.com/poldracklab/fitlins/master/examples/models/ds000003/models/model-001_smdl.json > ds000003/models/model-001_smdl.json

cd ..
pytest

Features

Works for at least one test case!

TODO

  • Try to get some transformations working without dependencies.
  • Deal with the absence of dependicies gracefully.
  • Get a single file implementation built with https://github.com/Akrog/pinliner.
  • Drop boutiques.
  • Write up a description of the transformation spec.
  • Translation to formats easy for other implmenters to injest.
  • Maybe a way to stop prior to densifying transformation.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

This is a prototype to explore the possibility of creating self-contained tool to perform the data aggregation necessary to jump from events.tsv files/model.json/other time series metadata to a design matrix (or an appropriate sparse precursor of the design matrix).

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published