Skip to main content

capcalc is a suite of python programs used to perform coactivation pattern analysis on time series 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.5.1.1.tar.gz (126.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capcalc-1.5.1.1-py3-none-any.whl (127.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: capcalc-1.5.1.1.tar.gz
  • Upload date:
  • Size: 126.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for capcalc-1.5.1.1.tar.gz
Algorithm Hash digest
SHA256 089a6145b85dc02be0f702f9cdc51446c4da6e222a97eb2d1549945e57425b49
MD5 3fa435b33f5155258e689a97468d8e2e
BLAKE2b-256 aaacac2b9278855b756bfde44a5cf39dc66ad468d9af4317b1c6b1efdb5b4323

See more details on using hashes here.

File details

Details for the file capcalc-1.5.1.1-py3-none-any.whl.

File metadata

  • Download URL: capcalc-1.5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 127.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for capcalc-1.5.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cec71fc11916788d3ae238f6c64f7700aa0b21d7be9a3b863f665fcf7ec3eb96
MD5 38bd65bfc030a5522e03d533c319989e
BLAKE2b-256 409a0ec863ec69d4ae8d93b6550f715304de05b904aa9e54dc9e20cc8893cf38

See more details on using hashes here.

Supported by

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