{"id":24531492,"url":"https://github.com/BiocPy/mopsy","last_synced_at":"2025-10-03T07:31:02.005Z","repository":{"id":38307509,"uuid":"477101088","full_name":"BiocPy/mopsy","owner":"BiocPy","description":"Matrix operations","archived":false,"fork":false,"pushed_at":"2025-01-13T16:30:30.000Z","size":3246,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T03:35:13.778Z","etag":null,"topics":["matrix","numpy","scipy"],"latest_commit_sha":null,"homepage":"https://biocpy.github.io/mopsy/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BiocPy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-02T15:53:32.000Z","updated_at":"2024-12-18T18:34:20.000Z","dependencies_parsed_at":"2024-06-24T18:14:12.781Z","dependency_job_id":"e0e37b9d-e51d-4d5c-916a-92261142592d","html_url":"https://github.com/BiocPy/mopsy","commit_stats":null,"previous_names":["jkanche/mopsy"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiocPy%2Fmopsy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiocPy%2Fmopsy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiocPy%2Fmopsy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiocPy%2Fmopsy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BiocPy","download_url":"https://codeload.github.com/BiocPy/mopsy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235088985,"owners_count":18934061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matrix","numpy","scipy"],"created_at":"2025-01-22T09:15:07.987Z","updated_at":"2025-10-03T07:30:56.731Z","avatar_url":"https://github.com/BiocPy.png","language":"Python","readme":"[![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)\n[![PyPI-Server](https://img.shields.io/pypi/v/mopsy.svg)](https://pypi.org/project/mopsy/)\n![Unit tests](https://github.com/BiocPy/mopsy/actions/workflows/pypi-test.yml/badge.svg)\n\n# mopsy - Matrix Operations in Python\n\nConvenience library to perform row/column operations over numpy and scipy matrices. Provides an interface similar to base R matrix methods/MatrixStats methods in python.\n\n## Installation\n\nInstall from [pypi](https://pypi.org/project/mopsy/)\n\n```shell\npip install mopsy\n```\n\n## Usage\n\n```python\nfrom mopsy import colsum\nimport random from rd\n# generate a random sparse array with some density\nfrom scipy.sparse import random\nmat = random(10, 150, 0.25)\n\n# generate random groups\nngrps = 15\ngsets = [x for x in range(15)]\ngroups = [rd.choice(gsets) for x in range(mat.shape[axis])]\n\ncolsum(mat, groups)\n```\n\nMethods 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.\n\n\u003c!-- pyscaffold-notes --\u003e\n\n## Note\n\nThis project has been set up using PyScaffold 4.1.1. For details and usage\ninformation on PyScaffold see https://pyscaffold.org/.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBiocPy%2Fmopsy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBiocPy%2Fmopsy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBiocPy%2Fmopsy/lists"}