Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dangom/fluctus
https://github.com/dangom/fluctus
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dangom/fluctus
- Owner: dangom
- License: apache-2.0
- Created: 2022-01-04T03:18:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T17:24:47.000Z (12 months ago)
- Last Synced: 2024-01-26T17:53:07.679Z (12 months ago)
- Language: Python
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE-APACHE
Awesome Lists containing this project
README
.. raw:: html
Fluctus
.. contents:: **Table of Contents**
:backlinks: noneFluctus provides a single interface for handling oscillatory data.
This interface is the class Oscillation, which offers methods for
normalizing samples, averaging them, interpolating them to a different grid,
discarding initial transient timepoints and computing a frequency spectrum.
It also offers methods for estimating phase and amplitude, and plotting the data.Usage
-----This package is WIP and the interface and calling conventions are expected to
change as I learn what feels clumsy or confusing... code-block:: python
from fluctus.interfaces import Oscillation
osc = Oscillation(tr=1.0, period=20.0, stimulus_offset=14.0)
# Interpolate to a 100ms grid and percent signal change normalize
osc.interp(target_sampling_out=0.1).psc()
# See all operations that were done to the data
print(osc.transformation_chain)
# Get the transformed data
osc_preproc = osc.transformed_dataSince my use case is dealing with neuroimaging data, it also provides methods
for reading data from nifti files given a mask... code-block:: python
osc = Oscillation.from_nifti("mask.nii.gz", "data.nii.gz", period=20.0)
Other utility classes in this package are models for generating HRFs and convolving
responses.Installation
------------fluctus is distributed on `PyPI `_ as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.7+... code-block:: bash
$ pip install fluctus
The optinal WIP viz module requires ants, which is not listed as a requirement.
License
-------fluctus is distributed under the terms of both
- `MIT License `_
- `Apache License, Version 2.0 `_at your option.