coloc
An implementation of the COLOC method for colocalization of GWAS and/or eQTL signals by Giambartolomei et al.
Installation
pip3 install coloc
or
pip3 install --user coloc
Example usage
from coloc import coloc, print_coloc_result
help(coloc)
print_coloc_result('not colocalized', *coloc([1, 4, 9], [9, 4, 1]))
not colocalized
PP0: [||||| ] [ 0.26540194014704316 ]
PP1: [|||| ] [ 0.21657860877712054 ]
PP2: [|||| ] [ 0.21657860877712054 ]
PP3: [||| ] [ 0.17661198683565493 ]
PP4: [|| ] [ 0.12482885546306076 ]
print_coloc_result('colocalized', *coloc([1, 4, 9], [1, 4, 9]))
colocalized
PP0: [ ] [ 0.0015168270421050444 ]
PP1: [ ] [ 0.001237791593959775 ]
PP2: [ ] [ 0.001237791593959775 ]
PP3: [ ] [ 1.4094001056824932e-05 ]
PP4: [||||||||||||||||||| ] [ 0.9959934957689188 ]
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coloc-0.4.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
coloc-0.4.0-py3-none-any.whl
(4.5 kB
view details)
File details
Details for the file coloc-0.4.0.tar.gz.
File metadata
- Download URL: coloc-0.4.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ba0a606e1b1c3e19e32b79c1aeff66207134cba537d240522d797da0adf761e
|
|
| MD5 |
a06e8743026b15d06c18f660dd98dcfa
|
|
| BLAKE2b-256 |
91344f2d6f4179f07a81827dbd6c3c2edead170aa2db5de323a2c30aab0d484b
|
File details
Details for the file coloc-0.4.0-py3-none-any.whl.
File metadata
- Download URL: coloc-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ea77e5dbc5596dccaac7a9621eaa8affda68ebd8e9503d4fe05af820e1d2e4
|
|
| MD5 |
fec1f7154fc3ef5cbd282fbbbec0e61f
|
|
| BLAKE2b-256 |
abf8577af0a8c1eb796e8aefc30cf1ebd9cb670b5e3a6680e102a48a87a8dc93
|