Tools for performing coactivation pattern analysis on fMRI data.
Project description
Capcalc
capcalc is a suite of python programs used to perform coactivation pattern analysis on time series data. It uses K-Means clustering to find a set of “activation states” that represent the covarying patterns in the data.
HTML documentation is here: http://capcalc.readthedocs.io/en/latest/
NOTE
This is an evolving code base. I’m constantly tinkering with it. That said, now that I’m releasing this to the world, I’m being somewhat more responsible about locking down stable release points. In between releases, however, I’ll be messing with things. It’s very possible I could break something while doing this, so check back for status updates if you download the code in between releases. I’ve finally become a little more modern and started adding automated testing, so as time goes by hopefully the “in between” releases will be somewhat more reliable. Check back often for exciting new features and bug fixes!
Ok, I’m sold. What’s in here?
roidecompose - This program uses an atlas to extract timecourses from a 4D nifti file, producing a text file with the averaged timecourse from each region in the atlas (each integral value in file) in each column. This can be input to capfromtcs. There are various options for normalizing the timecourses.
capfromtcs - This does the actual CAP calculation, performing a k-means cluster analysis on the set of timecourses to find the best representitive set of “states” in the file. Outputs the states found and the dominant state in each timepoint of the timecourse.
maptoroi - The inverse of roidecompose. Give it a set of cluster timecourses and a template file, and it maps the values back onto the rois
statematch - Use this for aligning two state output files. Takes two state timecourse files, and determines which states in the second correspond to which states in the first. Generates a new ‘remapped’ file with the states in the second file expressed as states in the first.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file capcalc-1.3.2.tar.gz
.
File metadata
- Download URL: capcalc-1.3.2.tar.gz
- Upload date:
- Size: 109.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5afdf6df8195927902cfb97860bc0f1c76066c6a8fc9e446b8f9e957df378352 |
|
MD5 | f4bafec5e4caf00348459b1cdbf52a7a |
|
BLAKE2b-256 | 0bc44c88a704f9d79fcdbf3638f0221d67f622834bf5cfb0f7ebb17e68d19ccd |
File details
Details for the file capcalc-1.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: capcalc-1.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 112.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3aad827f6e2d9ebf39a219f51283fd2a0337b9420d4b96ae1bb11cc02310dd3 |
|
MD5 | 2fc4137d18b7b9cfb464580c7b98b7b8 |
|
BLAKE2b-256 | 8bf391eaef0d6637594f65923252bc31e0857aec1249c9843cf1a876238ace01 |