{"id":29303562,"url":"https://github.com/scverse/formulaic-contrasts","last_synced_at":"2025-07-07T01:09:09.340Z","repository":{"id":264693376,"uuid":"894098939","full_name":"scverse/formulaic-contrasts","owner":"scverse","description":"Build contrasts for models defined with formulaic","archived":false,"fork":false,"pushed_at":"2025-06-23T17:35:24.000Z","size":178,"stargazers_count":13,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-23T18:40:05.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scverse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-25T18:46:47.000Z","updated_at":"2025-06-18T13:16:29.000Z","dependencies_parsed_at":"2025-01-06T19:28:33.698Z","dependency_job_id":"1401ce8e-7ee1-44a7-b254-78459773b7cd","html_url":"https://github.com/scverse/formulaic-contrasts","commit_stats":null,"previous_names":["scverse/formulaic-contrasts"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/scverse/formulaic-contrasts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scverse%2Fformulaic-contrasts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scverse%2Fformulaic-contrasts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scverse%2Fformulaic-contrasts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scverse%2Fformulaic-contrasts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scverse","download_url":"https://codeload.github.com/scverse/formulaic-contrasts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scverse%2Fformulaic-contrasts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263996091,"owners_count":23541402,"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":[],"created_at":"2025-07-07T01:09:02.170Z","updated_at":"2025-07-07T01:09:09.326Z","avatar_url":"https://github.com/scverse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formulaic-contrasts\n\n[![Tests][badge-tests]][tests]\n[![Documentation][badge-docs]][documentation]\n[![codecov.io][badge-codecov]][link-codecov]\n\n[badge-tests]: https://img.shields.io/github/actions/workflow/status/scverse/formulaic-contrasts/test.yaml?branch=main\n[badge-docs]: https://img.shields.io/readthedocs/formulaic-contrasts\n[badge-codecov]: https://codecov.io/github/scverse/formulaic-contrasts/coverage.svg?branch=main\n[link-codecov]: https://codecov.io/gh/scverse/formulaic-contrasts/branch/main\n\nBuild arbitrary contrasts for models defined with formulaic.\n\n## Getting started\n\nPlease refer to the [documentation][]. As a developer seeking to use `formulaic-contrasts` with your model, you'll find\nthe [API documentation][] and the tutorial [Usage in custom model][] useful. If you are a user who wants to understand\nhow to build contrasts for a model, the [building contrasts][] tutorial is for you!\n\n## Installation\n\nTypically, you don't install `formulaic-contrasts` directly, but obtain it as a dependency of\nanother model. As a developer, you can obtain it from PyPI or GitHub:\n\nThere are several alternative options to install formulaic-contrasts:\n\n1. Install the latest release of `formulaic-contrasts` from [PyPI][]:\n\n```bash\npip install formulaic-contrasts\n```\n\n2. Install the latest development version:\n\n```bash\npip install git+https://github.com/scverse/formulaic-contrasts.git@main\n```\n\n`Formulaic-contrasts` depends on Python 3.10 or later.\n\n## Release notes\n\nSee the [changelog][].\n\n## Contact\n\nFor questions and help requests, you can reach out in the [scverse discourse][].\nIf you found a bug, please use the [issue tracker][].\n\n## Credits\n\nThe `cond()` function for building contrasts has been devised by [@const-ae](https://github.com/const-ae) for his R package [glmGamPoi](https://bioconductor.org/packages/release/bioc/html/glmGamPoi.html). A [prototype](https://github.com/scverse/multi-condition-comparisions) of the Python implementation has been built at the [scverse hackathon in Cambridge, UK in Nov 2023](https://scverse.org/events/2023_11_hackathon/) by [@grst](https://github.com/grst), [@const-ae](https://github.com/const-ae) and [@BorisMuzellec](https://github.com/BorisMuzellec). The production version in this package has been implemented by [@grst](https://github.com/grst).\n\n[mambaforge]: https://github.com/conda-forge/miniforge#mambaforge\n[scverse discourse]: https://discourse.scverse.org/\n[issue tracker]: https://github.com/scverse/formulaic-contrasts/issues\n[tests]: https://github.com/scverse/formulaic-contrasts/actions/workflows/test.yml\n[documentation]: https://formulaic-contrasts.readthedocs.io\n[changelog]: https://formulaic-contrasts.readthedocs.io/en/latest/changelog.html\n[api documentation]: https://formulaic-contrasts.readthedocs.io/en/latest/api.html\n[usage in custom model]: https://formulaic-contrasts.readthedocs.io/en/latest/model_usage.html\n[building contrasts]: https://formulaic-contrasts.readthedocs.io/en/latest/contrasts.html\n[pypi]: https://pypi.org/project/formulaic-contrasts\n[//]: # \"numfocus-fiscal-sponsor-attribution\"\n\nformulaic-contrasts is part of the scverse® project ([website](https://scverse.org), [governance](https://scverse.org/about/roles)) and is fiscally sponsored by [NumFOCUS](https://numfocus.org/).\nIf you like scverse® and want to support our mission, please consider making a tax-deductible [donation](https://numfocus.org/donate-to-scverse) to help the project pay for developer time, professional services, travel, workshops, and a variety of other needs.\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://numfocus.org/project/scverse\"\u003e\n  \u003cimg\n    src=\"https://raw.githubusercontent.com/numfocus/templates/master/images/numfocus-logo.png\"\n    width=\"200\"\n  \u003e\n\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscverse%2Fformulaic-contrasts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscverse%2Fformulaic-contrasts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscverse%2Fformulaic-contrasts/lists"}