Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: carma outlier detection method #281

Merged
merged 22 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
cb0dc79
feat: first draft of carma outlier detection
d0choa Nov 27, 2023
1870fbc
docs: add carma docs page
d0choa Nov 27, 2023
dcb8fac
test: example of test
d0choa Nov 27, 2023
4aa1f9f
chore: merge dev
addramir Dec 14, 2023
23cf494
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 14, 2023
dc22fb0
feat: adding tests to CARMA funcs v1
addramir Dec 20, 2023
c2ba60a
feat: adding pandas as dependancy
addramir Dec 20, 2023
92a863a
feat: fixing tests for CARMA misc functions
addramir Dec 20, 2023
907e835
feat: small fixes in tests for CARMA misc functions
addramir Dec 20, 2023
4808459
feat: adding tests and data for tests for main carma functions
addramir Dec 20, 2023
0bc65d3
feat: small tweak of test settings for CARMA
addramir Dec 21, 2023
fea8762
feat: added documentation
addramir Dec 21, 2023
d4c9514
chore: merge dev
d0choa Dec 21, 2023
f4a28a5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 21, 2023
ded9d65
feat: adding more tests to set_gamma_func_base
addramir Dec 21, 2023
0a044a6
Merge branch 'dev' into ytdo_carma_method
addramir Dec 21, 2023
f553aaf
Merge branch 'dev' into ytdo_carma_method
DSuveges Jan 4, 2024
d9c8f53
fix: updating poetry.lock
DSuveges Jan 4, 2024
161dbf5
feat: Update src/otg/method/carma.py
addramir Jan 4, 2024
b46ee1c
feat: Update src/otg/method/carma.py
addramir Jan 4, 2024
267e7b6
feat: Update src/otg/method/carma.py
addramir Jan 4, 2024
20d4510
feat: Update src/otg/method/carma.py
addramir Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
60 changes: 30 additions & 30 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