Data & ReproStatistics & Data AnalysisFreedomIntelligence/OpenClaw-Medical-SkillsData & Reproduction
BI

bio-causal-genomics-colocalization-analysis

Maintainer FreedomIntelligence · Last updated April 1, 2026

Colocali.

OpenClawNanoClawAnalysisReproductionbio-causal-genomics-colocalization-analysis🧬 bioinformatics (gptomics bio-* suite)bioinformatics — epidemiological & causal genomicstest

Original source

FreedomIntelligence/OpenClaw-Medical-Skills

https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-causal-genomics-colocalization-analysis

Maintainer
FreedomIntelligence
License
MIT
Last updated
April 1, 2026

Skill Snapshot

Key Details From SKILL.md

2 min

Key Notes

  • R: coloc::coloc.abf() for approximate Bayes factor colocalization.
  • Test whether my GWAS signal and eQTL share the same causal variant" → Compute Bayesian posterior probabilities for five colocalization hypotheses (no association, trait-1-only, trait-2-only, distinct causal variants, shared causal variant) to distinguish true causal overlap from LD-driven coincidence. R: coloc::coloc.abf() for approximate Bayes factor colocalization.
  • H0: No association with either trait.
  • H1: Association with trait 1 only.
  • H2: Association with trait 2 only.

Source Doc

Excerpt From SKILL.md

coloc.abf Analysis

Goal: Test whether two traits share a causal variant at a GWAS locus using Bayesian colocalization.

Approach: Format summary statistics for each trait as named lists, run coloc.abf to compute posterior probabilities for five hypotheses (H0-H4), and interpret PP.H4 as evidence for a shared causal variant.

library(coloc)

## type = 'quant' (continuous) or 'cc' (case-control)

gwas_data <- list(
  beta = gwas_df$BETA,
  varbeta = gwas_df$SE^2,
  snp = gwas_df$SNP,
  position = gwas_df$POS,
  type = 'cc',           # Case-control study
  s = 0.3,               # Proportion of cases (required for cc)
  N = 50000              # Total sample size
)

eqtl_data <- list(
  beta = eqtl_df$BETA,
  varbeta = eqtl_df$SE^2,
  snp = eqtl_df$SNP,
  position = eqtl_df$POS,
  type = 'quant',        # Quantitative trait (expression)
  N = 500,               # eQTL sample size
  sdY = 1                # SD of trait (1 if already normalized)
)

## --- Run colocalization ---

result <- coloc.abf(dataset1 = gwas_data, dataset2 = eqtl_data)

Use cases

  • Use when determining if a GWAS signal and an eQTL share the same causal variant.

Not for

  • Do not rely on this catalog entry alone for installation or maintenance details.

Upstream Related Skills

  • mendelian-randomization - Test causal effects using genetic instruments
  • fine-mapping - Identify causal variants and credible sets
  • population-genetics/linkage-disequilibrium - LD reference panels for SuSiE-coloc
  • differential-expression/deseq2-basics - Generate eQTL data for colocalization

Related skills

Related skills

Back to directory
AR
Data & ReproStatistics & Data Analysis

arxiv-database

This skill provides Python tools for searching and retrieving preprints from arXiv.org via its public Atom API. It supports keyword search,…

Claude CodeAnalysis
K-Dense-AI/claude-scientific-skillsView
BA
Data & ReproStatistics & Data Analysis

bayesian-optimizer

Bayesian optimization for experimental design and hyperparameter tuning in biomedical research.

OpenClawNanoClawAnalysis
FreedomIntelligence/OpenClaw-Medical-SkillsView
BI
Data & ReproStatistics & Data Analysis

bio-alignment-files-bam-statistics

Compute alignment statistics: flagstat, idxstats, coverage depth.

OpenClawNanoClawAnalysis
FreedomIntelligence/OpenClaw-Medical-SkillsView
BI
Data & ReproStatistics & Data Analysis

bio-alignment-msa-statistics

Calculate alignment statistics including sequence identity, conservation scores, substitution matrices, and similarity metrics. Use when com…

OpenClawNanoClawAnalysis
FreedomIntelligence/OpenClaw-Medical-SkillsView