{ "cells": [ { "cell_type": "markdown", "id": "9e70a797-4c24-4c7c-bae5-f2b94b16dbd3", "metadata": { "kernel": "SoS", "tags": [] }, "source": [ "# Other colocalization methods\n", "\n", "## Goal\n", "\n", "This notebook takes the input and run Hyprcoloc, MOLOC or COLOC(V5) (SuSiE-Coloc) , the result can be summarized to get power and FDR.\n", "\n", "Because different methods have different output, we summarized four elements to calculate FDR and power - coloc_trait, coloc_set true_trait and true_variant.\n", "\n", "## Input \n", "\n", "Individual level data X and Y or summary statistics z and LD from other notebooks. put in the parameter: simufile.\n", "\n", "## Output\n", "\n", "Hyprcoloc / MOLOC / COLOC (V5) original result, along with some summarized elements." ] }, { "cell_type": "markdown", "id": "b60160a4-a472-44c2-80d8-47d430a2337c", "metadata": { "kernel": "SoS" }, "source": [ "Example output:" ] }, { "cell_type": "code", "execution_count": 6, "id": "4f48e1ca-bd4a-4cb3-8f74-5fcf202b0610", "metadata": { "kernel": "R", "tags": [] }, "outputs": [ { "data": { "text/html": [ "
iteration | traits | posterior_prob | regional_prob | candidate_snp | posterior_explained_by_snp | dropped_trait | |
---|---|---|---|---|---|---|---|
<dbl> | <chr> | <dbl> | <dbl> | <chr> | <dbl> | <chr> | |
1 | 1 | 5, 9 | 0.8754 | 1 | snp917 | 0.3881 | NA |
2 | 2 | 3, 8 | 0.7915 | 1 | snp2568 | 0.0418 | NA |
3 | 3 | 2, 6 | 0.9426 | 1 | snp2904 | 0.1141 | NA |