Skip to content

Commit

Permalink
feat: carma outlier detection method (#281)
Browse files Browse the repository at this point in the history
* feat: first draft of carma outlier detection

Co-authored-by: Yakov Tsepilov <[email protected]>

* docs: add carma docs page

Co-authored-by: Yakov Tsepilov <[email protected]>

* test: example of test

Co-authored-by: Yakov Tsepilov <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* feat: adding tests to CARMA funcs v1

* feat: adding pandas as dependancy

* feat: fixing tests for CARMA misc functions

* feat: small fixes in tests for CARMA misc functions

* feat: adding tests and data for tests for main carma functions

* feat: small tweak of test settings for CARMA

* feat: added documentation

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* feat: adding more tests to set_gamma_func_base

* fix: updating poetry.lock

* feat: Update src/otg/method/carma.py

Co-authored-by: Kirill Tsukanov <[email protected]>

* feat: Update src/otg/method/carma.py

Co-authored-by: Kirill Tsukanov <[email protected]>

* feat: Update src/otg/method/carma.py

Co-authored-by: Kirill Tsukanov <[email protected]>

* feat: Update src/otg/method/carma.py

Co-authored-by: Kirill Tsukanov <[email protected]>

---------

Co-authored-by: Yakov Tsepilov <[email protected]>
Co-authored-by: Yakov Tsepilov <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Suveges <[email protected]>
Co-authored-by: Kirill Tsukanov <[email protected]>
  • Loading branch information
6 people authored Jan 4, 2024
1 parent ee79424 commit 2121982
Show file tree
Hide file tree
Showing 9 changed files with 1,056 additions and 29 deletions.
20 changes: 20 additions & 0 deletions docs/python_api/method/carma.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: CARMA
---

CARMA is the method of the fine-mapping and outlier detection, originally implemented in R ([CARMA on GitHub](https://github.com/ZikunY/CARMA)).

The full repository for the reimplementation of CARMA in Python can be found [here](https://github.com/hlnicholls/carmapy/tree/0.1.0).

This is a simplified version of CARMA with the following features:

1. It uses only Spike-slab effect size priors and Poisson model priors.
2. C++ is re-implemented in Python.
3. The way of storing the configuration list is changed. It uses a string with the list of indexes for causal SNPs instead of a sparse matrix.
4. Fixed bugs in PIP calculation.
5. No credible models.
6. No credible sets, only PIPs.
7. No functional annotations.
8. Removed unnecessary parameters.

:::otg.method.carma.CARMA
58 changes: 29 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ google = "^3.0.0"
omegaconf = "^2.3.0"
typing-extensions = "^4.9.0"
scikit-learn = "^1.3.2"
pandas = "^2.1.4"

[tool.poetry.dev-dependencies]
pre-commit = "^3.6.0"
Expand Down
Loading

0 comments on commit 2121982

Please sign in to comment.