https://github.com/bbfrederick/picachooser

A fast lightweight gui tool for sorting components from a MELODIC probabilistic ICA analysis

https://github.com/bbfrederick/picachooser

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.7%) to scientific vocabulary

Keywords from Contributors

labels
Last synced: 7 months ago · JSON representation

Repository

A fast lightweight gui tool for sorting components from a MELODIC probabilistic ICA analysis

Basic Info
  • Host: GitHub
  • Owner: bbfrederick
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 44.7 MB
Statistics
  • Stars: 7
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 40
Created almost 6 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct

README.rst

PICAchooser (the package)
=========================

.. figure:: https://raw.githubusercontent.com/bbfrederick/picachooser/master/images/picalogo.png
   :alt: Logo

A set of simple gui tools for scanning through MELODIC probabilistic 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 component 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.

.. figure:: https://raw.githubusercontent.com/bbfrederick/picachooser/master/images/picachooser_screenshot_small.png
   :alt: 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.

.. figure:: https://raw.githubusercontent.com/bbfrederick/picachooser/master/images/melodicomp_screenshot_small.png
   :alt: PICAchooser screenshot

   melodicomp screenshot



A note on component numbering
=============================
Astute users will notice that components are numbered differently in different contexts.  This is actually intentional.
In the GUI, and in any files that work directly with FSL tools, I use whatever convention FSL uses.  So for displayed
components, the first component is IC1.  Output files that will be used by fsl_regfilt also use this convention.  However,
for any informational output on the terminal that you might use when looking at components in FSLeyes directly, or operating
on them with fslmaths or your own python code, the component numbering starts at 0.  As the universe intended.  If you use matlab,
add 1 in your head.  Better yet, stop using matlab and change over to python.


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.

Owner

  • Name: Blaise deB Frederick
  • Login: bbfrederick
  • Kind: user

MR Physicist who took a very wrong turn somewhere in the 80's, and ended up in psychiatry. Director of the Optomagnetic Group in the McLean Hospital BIC.

GitHub Events

Total
  • Release event: 1
  • Delete event: 12
  • Issue comment event: 1
  • Push event: 47
  • Pull request event: 29
  • Create event: 19
Last Year
  • Release event: 1
  • Delete event: 12
  • Issue comment event: 1
  • Push event: 47
  • Pull request event: 29
  • Create event: 19

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 352
  • Total Committers: 3
  • Avg Commits per committer: 117.333
  • Development Distribution Score (DDS): 0.031
Top Committers
Name Email Commits
Blaise Frederick b****k@g****m 341
dependabot[bot] 4****]@u****m 8
Daniel M. Drucker d****r@m****u 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 3
  • Total pull requests: 103
  • Average time to close issues: 4 months
  • Average time to close pull requests: 8 days
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 1.67
  • Average comments per pull request: 0.17
  • Merged pull requests: 81
  • Bot issues: 0
  • Bot pull requests: 100
Past Year
  • Issues: 0
  • Pull requests: 31
  • Average time to close issues: N/A
  • Average time to close pull requests: 6 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.1
  • Merged pull requests: 24
  • Bot issues: 0
  • Bot pull requests: 31
Top Authors
Issue Authors
  • dmd (2)
  • bbfrederick (1)
Pull Request Authors
  • dependabot[bot] (134)
  • dmd (3)
Top Labels
Issue Labels
Pull Request Labels
dependencies (134) github_actions (89) python (32) docker (13)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 205 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 19
  • Total maintainers: 1
pypi.org: picachooser

Lightweight GUI for sorting, classifying, and matching MELODIC ICA components.

  • Versions: 19
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 205 Last month
Rankings
Dependent packages count: 10.1%
Stargazers count: 18.5%
Average: 19.3%
Dependent repos count: 21.5%
Forks count: 22.6%
Downloads: 23.5%
Maintainers (1)
Last synced: 7 months ago

Dependencies

requirements.txt pypi
  • nibabel *
  • numpy >=1.16
  • pandas *
  • pillow *
  • pyqtgraph *
  • scipy *
setup.py pypi
  • nibabel *
  • numpy >=1.16
  • pandas *
  • pillow *
  • pyqtgraph *
  • scipy *
.github/workflows/docker-build-latest.yml actions
  • docker/build-push-action v2 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v1 composite
.github/workflows/docker-build-on-release.yml actions
  • docker/build-push-action v2 composite
  • docker/login-action v2 composite
  • docker/metadata-action v4 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v1 composite
.github/workflows/python-publish.yml actions
  • actions/checkout v3.1.0 composite
  • actions/setup-python v4 composite
Dockerfile docker
  • fredericklab/basecontainer v0.0.7 build
.github/workflows/showversion.yml actions
  • actions/checkout v4.1.1 composite
  • codacy/git-version 2.8.0 composite
  • gittools/actions/gitversion/execute v0.10.2 composite
  • gittools/actions/gitversion/setup v0.10.2 composite
docs/requirements.txt pypi
  • alabaster ==0.7.13
  • babel ==2.12.1
  • black ==23.7.0
  • certifi ==2023.7.22
  • charset-normalizer ==3.2.0
  • click ==8.1.6
  • codecov ==2.1.13
  • commonmark ==0.9.1
  • contourpy ==1.1.0
  • coverage ==6.5.0
  • coveralls ==3.3.1
  • cycler ==0.11.0
  • docopt ==0.6.2
  • docutils ==0.18.1
  • flake8 ==6.1.0
  • flake8-black ==0.3.6
  • fonttools ==4.42.0
  • idna ==3.4
  • imageio ==2.31.1
  • imagesize ==1.4.1
  • iniconfig ==2.0.0
  • jinja2 ==3.1.2
  • joblib ==1.3.2
  • kiwisolver ==1.4.4
  • lazy-loader ==0.3
  • lxml ==4.9.3
  • m2r ==0.3.1
  • markupsafe ==2.1.3
  • matplotlib ==3.7.2
  • mccabe ==0.7.0
  • mistune ==0.8.4
  • mypy-extensions ==1.0.0
  • networkx ==3.1
  • nibabel ==5.1.0
  • nilearn ==0.10.1
  • numpy ==1.25.2
  • numpydoc ==1.5.0
  • packaging ==23.1
  • pandas ==2.0.3
  • pathspec ==0.11.2
  • patsy ==0.5.3
  • pillow ==10.0.1
  • platformdirs ==3.10.0
  • pluggy ==1.2.0
  • pycodestyle ==2.11.0
  • pyfftw ==0.13.1
  • pyflakes ==3.1.0
  • pygments ==2.16.1
  • pyparsing ==3.0.9
  • pyqt5-sip ==12.12.2
  • pyqtgraph ==0.12.4
  • pytest ==7.4.0
  • pytest-cov ==4.1.0
  • python-dateutil ==2.8.2
  • pytz ==2023.3
  • pywavelets ==1.4.1
  • recommonmark ==0.7.1
  • requests ==2.31.0
  • scikit-image ==0.21.0
  • scikit-learn ==1.3.0
  • scipy ==1.11.1
  • six ==1.16.0
  • snowballstemmer ==2.2.0
  • sphinx ==6.2.1
  • sphinx-argparse ==0.4.0
  • sphinx-gallery ==0.13.0
  • sphinx-rtd-theme ==1.2.2
  • sphinxcontrib-applehelp ==1.0.6
  • sphinxcontrib-devhelp ==1.0.4
  • sphinxcontrib-htmlhelp ==2.0.3
  • sphinxcontrib-jquery ==4.1
  • sphinxcontrib-jsmath ==1.0.1
  • sphinxcontrib-qthelp ==1.0.5
  • sphinxcontrib-serializinghtml ==1.1.7
  • statsmodels ==0.14.0
  • threadpoolctl ==3.2.0
  • tifffile ==2023.7.18
  • tqdm ==4.66.1
  • tzdata ==2023.3
  • urllib3 ==2.0.7
pyproject.toml pypi
  • nibabel *
  • numpy >=1.16
  • pandas *
  • pillow *
  • pyqtgraph *
  • scipy *
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v4.1.1 composite
  • github/codeql-action/analyze v3 composite
  • github/codeql-action/autobuild v3 composite
  • github/codeql-action/init v3 composite