Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capcalc-1.3.7.tar.gz (122.5 kB view details)

Uploaded Source

Built Distribution

capcalc-1.3.7-py2.py3-none-any.whl (126.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file capcalc-1.3.7.tar.gz.

File metadata

  • Download URL: capcalc-1.3.7.tar.gz
  • Upload date:
  • Size: 122.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for capcalc-1.3.7.tar.gz
Algorithm Hash digest
SHA256 4f765de1f8b122a0079c2c6cafcb22dab7b3d51848708ebc9e95a7dc8d6dde9a
MD5 e3065ae2ddf55d36108d127cf62450e3
BLAKE2b-256 56453ba41cc916f2317b79c5d065895269111d6863bf957f4850c8044a7d74d1

See more details on using hashes here.

File details

Details for the file capcalc-1.3.7-py2.py3-none-any.whl.

File metadata

  • Download URL: capcalc-1.3.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 126.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for capcalc-1.3.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9331c50c635043de9e8c8bc9ff03b16d17d90d1f853cc37c62b2cf9b414f7ee0
MD5 10c3577c6469349040015d283078c958
BLAKE2b-256 fe21e0e0adbc4a5a256400f01f28c328323b0ac9f8459b2836a7781d549124b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page