{ "cells": [ { "cell_type": "markdown", "id": "39ef732b-43b3-4e02-8396-75739315dc4d", "metadata": { "kernel": "SoS", "tags": [] }, "source": [ "# Colocalization result summary" ] }, { "cell_type": "markdown", "id": "b3bfaa7e-0648-4f65-9041-a583e3d3e137", "metadata": { "kernel": "SoS" }, "source": [ "## Goal\n", "\n", "Summarize the result based on the key four outputs to calculate FDR and power.\n", "\n", "**Fit any coloclaization method** generated by the notebooks in this repo. As long as they are summarized to have the elements: coloc_trait, coloc_set true_trait and true_variant." ] }, { "cell_type": "markdown", "id": "95492378-af15-437a-91c5-c68b6914893f", "metadata": { "kernel": "SoS" }, "source": [ "## Input\n", "\n", "File(s) of colocalization result.\n", "\n", "## Output\n", "\n", "A dataframe, each row is a summarization of one finemapping result. \n", "\n", "Example output: " ] }, { "cell_type": "code", "execution_count": 4, "id": "56d0c707-4e58-4e5e-a5fa-8e5f887a03f6", "metadata": { "kernel": "R", "tags": [] }, "outputs": [ { "data": { "text/html": [ "
total_causal_var_number | perfect_causal_var_number | partial_causal_var_number | true_trait_number | predict_trait_number | total_trait_number | true_set_number | total_set_number | single_set_number | max_causal | file | out_file | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
<int> | <dbl> | <dbl> | <dbl> | <int> | <dbl> | <dbl> | <int> | <int> | <int> | <chr> | <chr> | |
1 | 1 | 1 | 1 | 5 | 5 | 5 | 1 | 1 | 0 | 1 | /mnt/vast/hpc/csg/hs3393/cb_Mar/simulation_data/real_simulation_10trait/sample_0_real_simulation_1_ncausal_10_trait.rds | /home/hs3393/cb_Mar/simulation_result/hyprcoloc/hyp_real_simulation_10trait/result/sample_0_real_simulation_1_ncausal_10_trait_ntr_10_hypercoloc.rds |
2 | 2 | 1 | 1 | 5 | 5 | 8 | 1 | 1 | 0 | 2 | /mnt/vast/hpc/csg/hs3393/cb_Mar/simulation_data/real_simulation_10trait/sample_0_real_simulation_2_ncausal_10_trait.rds | /home/hs3393/cb_Mar/simulation_result/hyprcoloc/hyp_real_simulation_10trait/result/sample_0_real_simulation_2_ncausal_10_trait_ntr_10_hypercoloc.rds |
3 | 3 | 0 | 2 | 4 | 4 | 8 | 2 | 2 | 0 | 3 | /mnt/vast/hpc/csg/hs3393/cb_Mar/simulation_data/real_simulation_10trait/sample_0_real_simulation_3_ncausal_10_trait.rds | /home/hs3393/cb_Mar/simulation_result/hyprcoloc/hyp_real_simulation_10trait/result/sample_0_real_simulation_3_ncausal_10_trait_ntr_10_hypercoloc.rds |
4 | 4 | 0 | 3 | 10 | 10 | 17 | 3 | 3 | 0 | 3 | /mnt/vast/hpc/csg/hs3393/cb_Mar/simulation_data/real_simulation_10trait/sample_0_real_simulation_4_ncausal_10_trait.rds | /home/hs3393/cb_Mar/simulation_result/hyprcoloc/hyp_real_simulation_10trait/result/sample_0_real_simulation_4_ncausal_10_trait_ntr_10_hypercoloc.rds |
5 | 1 | 1 | 1 | 4 | 4 | 4 | 1 | 1 | 0 | 1 | /mnt/vast/hpc/csg/hs3393/cb_Mar/simulation_data/real_simulation_10trait/sample_1_real_simulation_1_ncausal_10_trait.rds | /home/hs3393/cb_Mar/simulation_result/hyprcoloc/hyp_real_simulation_10trait/result/sample_1_real_simulation_1_ncausal_10_trait_ntr_10_hypercoloc.rds |
6 | 2 | 1 | 2 | 6 | 6 | 7 | 2 | 2 | 0 | 2 | /mnt/vast/hpc/csg/hs3393/cb_Mar/simulation_data/real_simulation_10trait/sample_1_real_simulation_2_ncausal_10_trait.rds | /home/hs3393/cb_Mar/simulation_result/hyprcoloc/hyp_real_simulation_10trait/result/sample_1_real_simulation_2_ncausal_10_trait_ntr_10_hypercoloc.rds |