{"id":13688997,"url":"https://github.com/harmslab/epistasis","last_synced_at":"2026-01-14T08:51:04.986Z","repository":{"id":29733681,"uuid":"33276980","full_name":"harmslab/epistasis","owner":"harmslab","description":"A Python API for estimating statistical high-order epistasis in genotype-phenotype maps.","archived":false,"fork":false,"pushed_at":"2023-08-18T18:08:31.000Z","size":4845,"stargazers_count":37,"open_issues_count":7,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-12T17:51:03.124Z","etag":null,"topics":["epistasis","evolution","genetics","genotype-phenotype-maps","high-order","modeling","nonlinear","python"],"latest_commit_sha":null,"homepage":"http://epistasis.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harmslab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-04-01T22:46:44.000Z","updated_at":"2025-12-18T19:38:13.000Z","dependencies_parsed_at":"2023-10-03T04:32:36.521Z","dependency_job_id":null,"html_url":"https://github.com/harmslab/epistasis","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/harmslab/epistasis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmslab%2Fepistasis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmslab%2Fepistasis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmslab%2Fepistasis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmslab%2Fepistasis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmslab","download_url":"https://codeload.github.com/harmslab/epistasis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmslab%2Fepistasis/sbom","scorecard":{"id":455993,"data":{"date":"2025-08-11","repo":{"name":"github.com/harmslab/epistasis","commit":"c1dd5eea079cc54854b9ac4a795c0485e87ca0ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publishing.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publishing.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/harmslab/epistasis/publishing.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publishing.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/harmslab/epistasis/publishing.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publishing.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/harmslab/epistasis/publishing.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/harmslab/epistasis/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/harmslab/epistasis/tests.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publishing.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/publishing.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/publishing.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:26","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: UNLICENSE:0","Info: FSF or OSI recognized license: The Unlicense: UNLICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch 'v1'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-107 / GHSA-jjw5-xxj6-pcv5","Warn: Project is vulnerable to: PYSEC-2024-110 / GHSA-jw8x-6495-233v","Warn: Project is vulnerable to: PYSEC-2020-108","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: GHSA-3wwr-3g9f-9gc7","Warn: Project is vulnerable to: GHSA-vp47-9734-prjw","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T09:41:35.118Z","repository_id":29733681,"created_at":"2025-08-19T09:41:35.118Z","updated_at":"2025-08-19T09:41:35.118Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["epistasis","evolution","genetics","genotype-phenotype-maps","high-order","modeling","nonlinear","python"],"created_at":"2024-08-02T15:01:29.868Z","updated_at":"2026-01-14T08:51:04.978Z","avatar_url":"https://github.com/harmslab.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Epistasis\n\n[![Join the chat at https://gitter.im/harmslab/epistasis](https://badges.gitter.im/harmslab/epistasis.svg)](https://gitter.im/harmslab/epistasis?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Binder](http://mybinder.org/badge.svg)](https://beta.mybinder.org/v2/gh/harmslab/epistasis-notebooks/master)\n[![Documentation Status](https://readthedocs.org/projects/epistasis/badge/?version=latest)](http://epistasis.readthedocs.io/?badge=latest)\n[![Tests](https://github.com/harmslab/epistasis/workflows/Epistasis%20Tests/badge.svg)](https://github.com/harmslab/epistasis/actions?query=workflow%3A%22Epistasis+Tests%22)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1215853.svg)](https://doi.org/10.5281/zenodo.1215853)\n\n*Python API for estimating statistical, high-order epistasis in genotype-phenotype maps.*\n\nAll models follow a *Scikit-learn* interface and thus seamlessly plug in to the PyData ecosystem. For more information about the type of models included in this package,\nread our [docs](http://epistasis.readthedocs.io/?badge=latest). You can also read more about the theory behind these models in our [paper](https://doi.org/10.1534/genetics.116.195214).\n\nFinally, if you'd like to test out this package without any installing, try these Jupyter notebooks [here](https://mybinder.org/v2/gh/harmslab/epistasis-notebooks/master) (thank you [Binder](https://mybinder.org/)!).\n\n## Examples\n\nThe Epistasis package works best in combinations with GPMap, an API for managing\ngenotype-phenotype map data. Construct a GenotypePhenotypeMap object and pass it\ndirectly to an epistasis model.\n\n\n```python\n# Import a model and the plotting module\nfrom gpmap import GenotypePhenotypeMap\nfrom epistasis.models import EpistasisLinearRegression\nfrom epistasis.pyplot import plot_coefs\n\n# Genotype-phenotype map data.\nwildtype = \"AAA\"\ngenotypes = [\"ATT\", \"AAT\", \"ATA\", \"TAA\", \"ATT\", \"TAT\", \"TTA\", \"TTT\"]\nphenotypes = [0.1, 0.2, 0.4, 0.3, 0.3, 0.6, 0.8, 1.0]\n\n# Create genotype-phenotype map object.\ngpm = GenotypePhenotypeMap(wildtype=wildtype,\n                           genotypes=genotypes,\n                           phenotypes=phenotypes)\n\n# Initialize an epistasis model.\nmodel = EpistasisLinearRegression(order=3)\n\n# Add the genotype phenotype map.\nmodel.add_gpm(gpm)\n\n# Fit model to given genotype-phenotype map.\nmodel.fit()\n\n# Plot coefficients (powered by matplotlib).\nplot_coefs(model, figsize=(3,5))\n```\n\n\u003cimg src=\"docs/img/coef_example.png\" width=\"200\"\u003e\n\nMore examples can be found in these [binder notebooks](https://mybinder.org/v2/gh/harmslab/epistasis-notebooks/master).\n\n## Installation\n\nEpistasis works in Python 3+ (we do not guarantee it will work in Python 2.)\n\nTo install the most recent release on PyPi:\n```\npip install epistasis\n```\n\nTo install from source, clone this repo and run:\n```\npip install -e .\n```\n\n## Documentation\n\nDocumentation and API reference can be viewed [here](http://epistasis.readthedocs.io/).\n\n## Dependencies\n\n* [gpmap](https://github.com/harmslab/gpmap): Module for constructing powerful genotype-phenotype map python data-structures.\n* [Scikit-learn](http://scikit-learn.org/stable/): Simple to use machine-learning algorithms\n* [Numpy](http://www.numpy.org/): Python's array manipulation packaged\n* [Scipy](http://www.scipy.org/): Efficient scientific array manipulations and fitting.\n* [lmfit](https://lmfit.github.io/lmfit-py/): Non-linear least-squares minimization and curve fitting in Python.\n\n### Optional dependencies\n\n* [matplotlib](): Python plotting API.\n* [ipython](): interactive python kernel.\n* [jupyter notebook](): interactive notebook application for running python kernels interactively.\n* [ipywidgets](): interactive widgets in python.\n\n## Development\n\nWe welcome pull requests! If you find a bug, we'd love to have you fix it. If\nthere is a feature you'd like to add, feel free to submit a\npull request with a description of the addition. We also ask that you write the\nappropriate unit-tests for the new feature and add documentation to our Sphinx docs.\n\nTo run the tests on this package, make sure you have `pytest` installed and run from the base directory:\n\n```\npytest\n```\n\n## Citing\nIf you use this API for research, please cite this [paper](https://doi.org/10.1534/genetics.116.195214).\n\nYou can also cite the software directly:\n\n```\n@misc{zachary_sailer_2017_252927,\n  author       = {Zachary Sailer and Mike Harms},\n  title        = {harmslab/epistasis: Genetics paper release},\n  month        = jan,\n  year         = 2017,\n  doi          = {10.5281/zenodo.1215853},\n  url          = {https://doi.org/10.5281/zenodo.1215853}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmslab%2Fepistasis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmslab%2Fepistasis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmslab%2Fepistasis/lists"}