Skip to main content

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.

Metadata

Release files for capcalc 1.5.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capcalc 1.5.1.2
File Size Uploaded
capcalc-1.5.1.2.tar.gz 126.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for capcalc 1.5.1.2
File Interpreter ABI Platform
capcalc-1.5.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 253.7 kB

Release files / capcalc-1.5.1.2.tar.gz

Download URL capcalc-1.5.1.2.tar.gz
Size 126.5 kB
Tags Source
SHA-256 checksum
How to use checksums
17d8193026422b76ab6f6f551bc1dc55bf9c83fcb509a336b10ac1dbdd1718d1
BLAKE2b-256 checksum
How to use checksums
64dd1af5f9a4db257c6a743e05e5c289245b403906ee311e4c103b7f220393aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / capcalc-1.5.1.2-py3-none-any.whl

Download URL capcalc-1.5.1.2-py3-none-any.whl
Size 127.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bccca2f39966e45f3e536f2db4176272f9f54896bcb8233815108a0d1197d98
BLAKE2b-256 checksum
How to use checksums
7da8b654e8beecf8723e95caec72be4fd3a0f1a883b3bb6790c147b8afb5be08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

1.5.1.2 This release

2 release files

1.4.0

2 release files

1.3.9

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page