Skip to content

Repo for the python code of the outlers detection algorithm of CARMA

Notifications You must be signed in to change notification settings

addramir/carmapy_light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

carmapy_light

This repository contains the Python code for the outlier detection and PIPs calualtion algorithm of CARMA, originally implemented in R (CARMA on GitHub).

The full repository for the reimplementation of CARMA in Python can be found here.

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.

Use:

No installation is required; it only has Python code (no C++ code).

See tests for examples.

Notes:

If you want to use it for outlier detection, you can specify the number of iterations to 1 (all_iter=1); it will be enough.

There are issues when using an LD matrix with a determinant equal to 0. This problem is inherited from the original version and requires investigation.

About

Repo for the python code of the outlers detection algorithm of CARMA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published