Metadata-Version: 2.1
Name: kymata
Version: 1.0.0
Summary: Core Kymata codebase, including statistical analysis and plotting tools
Home-page: https://kymata.org
Keywords: neuroscience,neuroimaging
Author: Kymata Research Group
Author-email: acgt2@cam.ac.uk
Requires-Python: >=3.11,<3.12
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Dist: PyYAML (>=6.0,<7.0)
Requires-Dist: colorama (>=0.4.5,<0.5.0)
Requires-Dist: h5io (>=0.1.9,<0.2.0)
Requires-Dist: jupyter (>=1.0.0,<2.0.0)
Requires-Dist: llvmlite (>=0.41.0,<0.42.0)
Requires-Dist: mat73 (>=0.62,<0.63)
Requires-Dist: matplotlib (>=3.7.1,<4.0.0)
Requires-Dist: mkdocs-material (>=9.5.24,<10.0.0)
Requires-Dist: mkdocstrings[python] (>=0.25.1,<0.26.0)
Requires-Dist: mne (>=1.5.1,<2.0.0)
Requires-Dist: nibabel (>=5.1.0,<6.0.0)
Requires-Dist: pandas (>=2.1.1,<3.0.0)
Requires-Dist: pyqt6 (>=6.6.1,<7.0.0)
Requires-Dist: pyvistaqt (>=0.11.0,<0.12.0)
Requires-Dist: requests (>=2.32.0,<3.0.0)
Requires-Dist: scikit-learn (>=1.3.2,<2.0.0)
Requires-Dist: seaborn (>=0.12.2,<0.13.0)
Requires-Dist: sparse (>=0.14.0,<0.15.0)
Requires-Dist: traitlets (>=5.13.0,<6.0.0)
Requires-Dist: twine (>=5.1.1,<6.0.0)
Requires-Dist: xarray (>=2023.9.0,<2024.0.0)
Project-URL: Documentation, https://kymata-atlas.github.io/kymata-core/
Project-URL: Repository, https://github.com/kymata-atlas/kymata-core
Description-Content-Type: text/markdown

[![Unit Tests Passed](https://github.com/kymata-atlas/kymata-core/actions/workflows/perform-unit-tests.yml/badge.svg)](https://github.com/kymata-atlas/kymata-core/actions/workflows/perform-unit-tests.yml)
[![Linting Checks Passed](https://github.com/kymata-atlas/kymata-core/actions/workflows/lint-and-check-formatting.yml/badge.svg)](https://github.com/kymata-atlas/kymata-core/actions/workflows/lint-and-check-formatting.yml)
<br />
<br />
<div>
      <a href="https://github.com/kymata-atlas/kymata-core">
        <img src="https://kymata.org/assets/img/toolbox_logo.png" alt="Logo" height="112" align="left">
      </a>
    <div>
        <div>
            <h3>Kymata Core</h3>
            <p>Core codebase for the Kymata Atlas
            <br>
            <a href="https://kymata-atlas.github.io/kymata-core"><strong>Explore the docs »</strong></a>
            </p>
        </div>
    </div>

</div>
<br>
<p align="center">
        <a href="#About The Project">Overview</a>
        ·
        <a href="#Getting Started">Setup</a>
        ·
        <a href="#Citing the Codebase">Citing</a>
        ·
        <a href="#Licence">Licence</a>
</p>

## About The Project

_Kymata Core_ is the central codebase underlying the [Kymata Atlas](https://kymata.org).[^1] It is maintained by the
[Kymata Research Group](https://kymata.org).

The central pipeline includes:
* Standard preprocessing and source localisation steps for neural sensor data (MEG, EEG, ECoG);
* Gridsearch approaches for function mapping;
* Information Processing Pathway Map[^2] generation (both offline generation and evaluation);
* Plotting functionality

The codebase is released under an MIT license to ensure the transparency of the results in the Kymata Atlas. While
comments and issues are welcomed, we are unable to prioritise installation or usage support (please see our code of
conduct).

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## Getting Started

This provides an overview of how to set Kymata Core locally.

### Prerequisites

* **Python**

   Confirm you have the correct version of Python installed. Type
   ```sh
   $ pyenv versions
   ```
   This should confirm that python 3.11 or above is installed. If it isn't already there,
   install it using `pyenv install`. You should be able to confirm
   you are using the correct version using
   ```sh
   $ python -V
   ```
* **Poetry**

  This package uses [Poetry](https://python-poetry.org/) to manage packages. See [python-poetry.org](https://python-poetry.org/docs/#installing-with-the-official-installer) for installation instructions.

### Installation

1. Clone this repository:
   ```sh
   $ git clone https://github.com/kymata-atlas/kymata-core.git
   ```
3. To install the python packages you will need to use Poetry. Assuming you have installed [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer), 
   type:
   ```sh
   $ poetry install
   ```
   to load the pakages needed.

4. At this point, you should be able to either run the xx from the terminal
   ```sh
   $ poetry run invokers/run_gridsearch.py
   ```
   or activate in this environment in an IDE such as PyCharm.

### Running tests, linting, and generating documentation

This will be done automatically via Github actions.

To run the tests manually, run:
```
$ poetry run pytest
```
To run linting manually, run:
```
$ poetry run ruff check
```
To serve the documentation locally, run:
```
$ poetry run mkdocs serve check
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- USAGE EXAMPLES -->
## Usage

Please refer to the [documentation](https://kymata-atlas.github.io/kymata-core), or see the `demos/` folder for example code, including test
data.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## Citing the codebase

Please use the following reference when citing the codebase or the `kymata` package: 

> TBC

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- LICENSE -->
## Licence

Distributed under the MIT License. See `LICENSE` for more information.

<p align="right">(<a href="#readme-top">back to top</a>)</p>


<!-- REFERENCES -->
## References

[^1]: Thwaites, Wieser, Soltan, Wingfield, Parish, Yang, Lakra, Woolgar, Zhang (2024) _The Kymata Atlas_ (In Prep.)
[^2]: Thwaites, Zhang and Woolgar (2024) _Information Processing Pathway Maps: A New Frontier in Cortical Processing_ (In Prep.)


