semvec/pypi-packages huggingface dataset:
bioRAT 0.2.0
Bioinformatics random utilities and tools.
License: MIT
Requires Python: >=3.9

<!-- These are examples of badges you might want to add to your README:
     please update the URLs accordingly

[![Built Status](https://api.cirrus-ci.com/github/<USER>/bioRAT.svg?branch=main)](https://cirrus-ci.com/github/<USER>/bioRAT)
[![ReadTheDocs](https://readthedocs.org/projects/bioRAT/badge/?version=latest)](https://bioRAT.readthedocs.io/en/stable/)
[![Coveralls](https://img.shields.io/coveralls/github/<USER>/bioRAT/main.svg)](https://coveralls.io/r/<USER>/bioRAT)
[![PyPI-Server](https://img.shields.io/pypi/v/bioRAT.svg)](https://pypi.org/project/bioRAT/)
[![Conda-Forge](https://img.shields.io/conda/vn/conda-forge/bioRAT.svg)](https://anaconda.org/conda-forge/bioRAT)
[![Monthly Downloads](https://pepy.tech/badge/bioRAT/month)](https://pepy.tech/project/bioRAT)
[![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter)](https://twitter.com/bioRAT)
-->

[![PyPI-Server](https://img.shields.io/pypi/v/bioRAT.svg)](https://pypi.org/project/biorat/)
![Unit tests](https://github.com/BiocPy/bioRAT/actions/workflows/pypi-test.yml/badge.svg)

# Bioinformatics Random Awesome Tools (bioRAT)

Just a collection of useful data processing functions.

<!-- pyscaffold-notes -->

## Note

This project has been set up using PyScaffold 4.6. For details and usage
information on PyScaffold see https://pyscaffold.org/.
mopsy 0.3.0
Matrix operations for numpy and scipy
License: MIT
Requires Python: >=3.9

[![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
[![PyPI-Server](https://img.shields.io/pypi/v/mopsy.svg)](https://pypi.org/project/mopsy/)
![Unit tests](https://github.com/BiocPy/mopsy/actions/workflows/pypi-test.yml/badge.svg)

# mopsy - Matrix Operations in Python

Convenience library to perform row/column operations over numpy and scipy matrices. Provides an interface similar to base R matrix methods/MatrixStats methods in python.

## Installation

Install from [pypi](https://pypi.org/project/mopsy/)

```shell
pip install mopsy
```

## Usage

```python
from mopsy import colsum
import random from rd
# generate a random sparse array with some density
from scipy.sparse import random
mat = random(10, 150, 0.25)

# generate random groups
ngrps = 15
gsets = [x for x in range(15)]
groups = [rd.choice(gsets) for x in range(mat.shape[axis])]

colsum(mat, groups)
```

Methods are available to perform `sum`, `median`, `mean` along any axis. a generic `apply` method is also available for perform row-wise or column-wise operations.

<!-- pyscaffold-notes -->

## Note

This project has been set up using PyScaffold 4.1.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.