Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thebooort/recorpy

A python's package for reordering/clustering correlation matrices
https://github.com/thebooort/recorpy

Last synced: 14 days ago
JSON representation

A python's package for reordering/clustering correlation matrices

Awesome Lists containing this project

README

        




ReCorPy

> A python's package for reordering/clustering correlation matrices

[![DOI](https://zenodo.org/badge/506917975.svg)](https://zenodo.org/badge/latestdoi/506917975)
[![Documentation Status](https://readthedocs.org/projects/recorpy/badge/?version=latest)](https://recorpy.readthedocs.io/en/latest/?badge=latest)
[![PyPI Version][pypi-image]][pypi-url]
[![Build Status][build-image]][build-url]
[![Coverage Status](https://coveralls.io/repos/github/thebooort/ReCorPy/badge.svg?branch=main)](https://coveralls.io/github/thebooort/ReCorPy?branch=main)
Code style: black

`recorpy` reorder correlation matrixes to get better visual analysis. All it is made with the original dataframe. And the result
is a new dataframe with columns reordered, to let you re-use it wherever you want.

Input parameters:

- _method_ -
- _model_ - , default:
- _cluster_ - , default:

## Installation

```sh
pip install recorpy
```

## Usage

```python
>>> df = pd.DataFrame(np.random.rand(3,3))
>>> ReorderCorr(df)
```

## Development setup

```sh
$ python3 -m venv env
$ . env/bin/activate
$ make deps
$ tox
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Make sure to add or update tests as appropriate.

Use [Black](https://black.readthedocs.io/en/stable/) for code formatting and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.4/) for commit messages.

## [Changelog](CHANGELOG.md)

## License

[GPL](https://choosealicense.com/licenses/gpl/)

[pypi-image]: https://img.shields.io/pypi/v/recorpy
[pypi-url]: https://pypi.org/project/recorpy/
[build-image]: https://github.com/thebooort/recorpy/actions/workflows/python-app.yml/badge.svg
[build-url]: https://github.com/thebooort/recorpy/actions/workflows/python-app.yml