Skip to main content

Lightweight GUI for sorting MELODIC ICA components.

Project description

PICAchooser (the package)

Logo

A set of simple gui tools for scanning through MELODIC probabalistic ICA runs and quickly making decisions about which components to retain, and what relates to what. These tools each only do one thing, but they do them quickly and easily using only keyboard input. Current programs are PICAchooser, melodicomp, and grader.

Full documentation is here: https://picachooser.readthedocs.io/en/latest/introduction.html

What’s in here?

PICAchooser

Lets you step through the components in an ICA analysis (from many sources), and select which components you want to retain. In addition to showing the spatial ICs, it also displays the componnent timecourses, motion traces, and the correlation between them, to help with your decision making.

Once you launch, you do everything with keyboard commands, and it’s been optimized to go as fast as possible, so you aren’t waiting around for things.

PICAchooser screenshot

PICAchooser screenshot

melodicomp

Puts up two melodic IC files side by side. In order to make the comparison meaningful, it first calculates the spatial crosscorrelation between each IC in the first file and each IC in the second. As you step through components in the first file, on the right you see the component with the highest crosscorrelation in the second file. You can sort either by IC order in the first file (i.e. in order of descending variance explained), or in descending correlation coefficient (i.e. best matched components first). When you quit (or hit the escape key), it writes out a file listing the best matched ICs along with their correlation coefficients.

I’m especially proud of the “blink” feature. When you hit the “b” key, the right and left window swap, instantaneously. This lets you see what changes between the two sets of networks in a very natural way. This is inspired by blink comparators, a cool old piece of tech probably long forgotten by most.

Again, once you launch, you do everything with keyboard commands, and it’s been optimized to go as fast as possible, so you aren’t waiting around for things.

PICAchooser screenshot

melodicomp screenshot

Support

This code base is being developed and supported by a grant from the US NIH 1R01 NS097512.

Additional packages used

PICAchooser would not be possible without many additional open source packages. These include:

pyqtgraph:

  1. Luke Campagnola. PyQtGraph: Scientific Graphics and GUI Library for Python

nibabel:

  1. Nibabel: Python package to access a cacophony of neuro-imaging file formats | https://10.5281/zenodo.591597

numpy:

  1. Stéfan van der Walt, S. Chris Colbert and Gaël Varoquaux. The NumPy Array: A Structure for Efficient Numerical Computation, Computing in Science & Engineering, 13, 22-30 (2011) | https:10.1109/MCSE.2011.37

scipy:

  1. Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, CJ Carey, İlhan Polat, Yu Feng, Eric W. Moore, Jake VanderPlas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Henriksen, E.A. Quintero, Charles R Harris, Anne M. Archibald, Antônio H. Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. (2020) SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods, 17, 261–272 (2020) | https://doi.org/10.1038/s41592-019-0686-2

pandas:

  1. McKinney, W., pandas: a foundational Python library for data analysis and statistics. Python for High Performance and Scientific Computing, 2011. 14.

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

picachooser-1.2.3.tar.gz (78.6 kB view details)

Uploaded Source

Built Distribution

picachooser-1.2.3-py2.py3-none-any.whl (71.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file picachooser-1.2.3.tar.gz.

File metadata

  • Download URL: picachooser-1.2.3.tar.gz
  • Upload date:
  • Size: 78.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for picachooser-1.2.3.tar.gz
Algorithm Hash digest
SHA256 a6a1ee61afcd0cefb54be350862e597e1a6841698ed1aae4e5d9137e7b5ddfd2
MD5 8ca50ec9db12798d05b6292633305d7b
BLAKE2b-256 7222b739542be8b14df2dfa552d8d233413574fbaead42d34f62918f670282bd

See more details on using hashes here.

File details

Details for the file picachooser-1.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: picachooser-1.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 71.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for picachooser-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e0d8cfe3d3ff1530938b0c5f4a39b717871d696203f842f5caf9c5b27be2123
MD5 41321a0a4112bbbe8142e21b1d625d02
BLAKE2b-256 22f7559080ea0638c3cbaae6053d0aa7c365cae956fa67ae9dcfeed7111e82fa

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