Communitygithub.com

depmap

Fragen Sie die Cancer Dependency Map (DepMap) nach CRISPR-Chronos-Genabhängigkeitswerten, Arzneimittelsensitivitätsdaten und Gen-Effekt-Profilen für Krebszelllinien ab. Verwenden Sie dies zur Identifizierung krebsspezifischer Schwachstellen, synthetisch letaler Interaktionen und zur Validierung onkologischer Wirkstoffziele.

Was ist depmap?

Dieses Skill ermöglicht den Zugriff auf die Cancer Dependency Map (DepMap) des Broad Institute, eine umfassende Datenbank mit Genabhängigkeits- und Arzneimittelsensitivitätsdaten für hunderte von Krebszelllinien. Es unterstützt mehrere Analyseansätze, darunter die Abfrage von Chronos-Gen-Effekt-Werten über die DepMap-API, den Download kompletter Datensätze für lokale Analysen, die Identifizierung selektiver Abhängigkeiten in bestimmten Krebsarten sowie die Korrelation von Genabhängigkeiten mit Mutationen, Expression oder Kopienzahlprofilen. Entwickler und Forscher können damit Zielvalidierung, Biomarker-Entdeckung und synthetisch-letale Screens durchführen. Das Skill ist besonders nützlich für die Onkologie-Wirkstoffforschung und wird über Python-basierte Workflows mit Datentabellen wie `CRISPRGeneEffect.csv` und `sample_info.csv` genutzt.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/depmap

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

DepMap – Cancer Dependency Map

Überblick

Das Cancer Dependency Map (DepMap)-Projekt des Broad Institute charakterisiert systematisch genetische Abhängigkeiten in Hunderten von Krebszelllinien mittels genomweiter CRISPR-Knockout-Screens (DepMap CRISPR), RNA-Interferenz (RNAi) und Verbindungssensitivitätstests (PRISM). DepMap-Daten sind essenziell für:

  • Identifizierung, welche Gene für bestimmte Krebsarten essenziell sind
  • Auffinden von krebsspezifischen Abhängigkeiten (therapeutische Ziele)
  • Validierung von onkologischen Wirkstoffzielen
  • Entdeckung synthetisch-letaler Interaktionen

Wichtige Ressourcen:

Wann dieses Skill verwendet werden sollte

Verwenden Sie DepMap, wenn:

  • Zielvalidierung: Ist ein Gen für das Überleben von Krebszelllinien mit einer bestimmten Mutation (z. B. KRAS-Mutation) essenziell?
  • Biomarker-Entdeckung: Welche genomischen Merkmale sagen die Sensitivität gegenüber dem Knockout eines Gens voraus?
  • Synthetische Letalität: Finden Sie Gene, die selektiv essenziell sind, wenn ein anderes Gen mutiert/deletiert ist
  • Arzneimittelsensitivität: Welche Zelllinienmerkmale sagen die Reaktion auf eine Verbindung voraus?
  • Pankrebs-Essenzialität: Ist ein Gen breit über alle Krebsarten hinweg essenziell (schlechtes Ziel) oder selektiv essenziell?
  • Korrelationsanalyse: Welche Genpaare haben korrelierte Abhängigkeitsprofile (Ko-Essenzialität)?

Kernkonzepte

Abhängigkeitswerte

WertBereichBedeutung
Chronos (CRISPR)~ -3 bis 0+Negativer = essenzieller. Häufige Schwelle beim üblichen essenziellen Gen: −1. Pan-essenzielle Gene ~−1 bis −2
RNAi DEMETER2~ -3 bis 0+Ähnliche Skala wie Chronos
Gen-EffektnormalisiertNormalisierter Chronos; −1 = Median-Effekt von üblichen essenziellen Genen

Wichtige Schwellenwerte:

  • Chronos ≤ −0,5: wahrscheinlich abhängig
  • Chronos ≤ −1: stark abhängig (Bereich üblicher essenzieller Gene)

Zelllinien-Annotationen

Jede Zelllinie hat:

  • DepMap_ID: eindeutige Kennung (z. B. ACH-000001)
  • cell_line_name: lesbarer Name
  • primary_disease: Krebsart
  • lineage: breite Gewebelinie
  • lineage_subtype: spezifischer Subtyp

Kernfunktionen

1. DepMap-API

import requests
import pandas as pd

BASE_URL = "https://depmap.org/portal/api"

def depmap_get(endpoint, params=None):
    url = f"{BASE_URL}/{endpoint}"
    response = requests.get(url, params=params)
    response.raise_for_status()
    return response.json()

2. Gen-Abhängigkeitswerte

def get_gene_dependency(gene_symbol, dataset="Chronos_Combined"):
    """CRISPR-Abhängigkeitswerte für ein Gen über alle Zelllinien abrufen."""
    url = f"{BASE_URL}/gene"
    params = {
        "gene_id": gene_symbol,
        "dataset": dataset
    }
    response = requests.get(url, params=params)
    return response.json()

# Alternativ den /data-Endpunkt verwenden:
def get_dependencies_slice(gene_symbol, dataset_name="CRISPRGeneEffect"):
    """Ein Gen-Abhängigkeitsslice aus einem Datensatz abrufen."""
    url = f"{BASE_URL}/data/gene_dependency"
    params = {"gene_name": gene_symbol, "dataset_name": dataset_name}
    response = requests.get(url, params=params)
    data = response.json()
    return data

3. Download-basierte Analyse (Empfohlen für große Abfragen)

Für umfangreiche Analysen DepMap-Datendateien herunterladen und lokal analysieren:

import pandas as pd
import requests, os

def download_depmap_data(url, output_path):
    """Eine DepMap-Datendatei herunterladen."""
    response = requests.get(url, stream=True)
    with open(output_path, 'wb') as f:
        for chunk in response.iter_content(chunk_size=8192):
            f.write(chunk)

# DepMap 24Q4-Datendateien (Version bei Bedarf aktualisieren)
FILES = {
    "crispr_gene_effect": "https://figshare.com/ndownloader/files/...",
    # ODER herunterladen von: https://depmap.org/portal/download/all/
    # Verfügbare Dateien:
    # CRISPRGeneEffect.csv - Chronos-Gen-Effekt-Werte
    # OmicsExpressionProteinCodingGenesTPMLogp1.csv - mRNA-Expression
    # OmicsSomaticMutationsMatrixDamaging.csv - Mutations-Binärmatrix
    # OmicsCNGene.csv - Kopienzahl
    # sample_info.csv - Zelllinien-Metadaten
}

def load_depmap_gene_effect(filepath="CRISPRGeneEffect.csv"):
    """
    DepMap CRISPR-Gen-Effekt-Matrix laden.
    Zeilen = Zelllinien (DepMap_ID), Spalten = Gene (Symbol (EntrezID))
    """
    df = pd.read_csv(filepath, index_col=0)
    # Spaltennamen zu reinen Gen-Symbolen umbenennen
    df.columns = [col.split(" ")[0] for col in df.columns]
    return df

def load_cell_line_info(filepath="sample_info.csv"):
    """Zelllinien-Metadaten laden."""
    return pd.read_csv(filepath)

4. Identifizierung selektiver Abhängigkeiten

import numpy as np
import pandas as pd

def find_selective_dependencies(gene_effect_df, cell_line_info, target_gene,
                                 cancer_type=None, threshold=-0.5):
    """Zelllinien finden, die selektiv von einem Gen abhängig sind."""

    # Werte für das Zielgen abrufen
    if target_gene not in gene_effect_df.columns:
        return None

    scores = gene_effect_df[target_gene].dropna()
    dependent = scores[scores <= threshold]

    # Zelllinien-Informationen hinzufügen
    result = pd.DataFrame({
        "DepMap_ID": dependent.index,
        "gene_effect": dependent.values
    }).merge(cell_line_info[["DepMap_ID", "cell_line_name", "primary_disease", "lineage"]])

    if cancer_type:
        result = result[result["primary_disease"].str.contains(cancer_type, case=False, na=False)]

    return result.sort_values("gene_effect")

# Beispielverwendung (nach Laden der Daten)
# df_effect = load_depmap_gene_effect("CRISPRGeneEffect.csv")
# cell_info = load_cell_line_info("sample_info.csv")
# deps = find_selective_dependencies(df_effect, cell_info, "KRAS", cancer_type="Lung")

5. Biomarker-Analyse (Gen-Effekt vs. Mutation)

import pandas as pd
from scipy import stats

def biomarker_analysis(gene_effect_df, mutation_df, target_gene, biomarker_gene):
    """
    Testen, ob eine Mutation im Biomarker-Gen die Abhängigkeit vom Zielgen vorhersagt.

    Args:
        gene_effect_df: CRISPR-Gen-Effekt-DataFrame
        mutation_df: Binärer Mutations-DataFrame (1 = mutiert)
        target_gene: Gen, dessen Abhängigkeit bewertet werden soll
        biomarker_gene: Gen, dessen Mutation die Abhängigkeit vorhersagen könnte
    """
    if target_gene not in gene_effect_df.columns or biomarker_gene not in mutation_df.columns:
        return None

    # Zelllinien abgleichen
    common_lines = gene_effect_df.index.intersection(mutation_df.index)
    scores = gene_effect_df.loc[common_lines, target_gene].dropna()
    mutations = mutation_df.loc[scores.index, biomarker_gene]

    mutated = scores[mutations == 1]
    wt = scores[mutations == 0]

    stat, pval = stats.mannwhitneyu(mutated, wt, alternative='less')

    return {
        "target_gene": target_gene,
        "biomarker_gene": biomarker_gene,
        "n_mutated": len(mutated),
        "n_wt": len(wt),
        "mean_effect_mutated": mutated.mean(),
        "mean_effect_wt": wt.mean(),
        "pval": pval,
        "significant": pval < 0.05
    }

6. Ko-Essenzialitätsanalyse

import pandas as pd

def co_essentiality(gene_effect_df, target_gene, top_n=20):
    """Gene mit am stärksten korrelierten Abhängigkeitsprofilen (Ko-Essenzialitätspartner) finden."""
    if target_gene not in gene_effect_df.columns:
        return None

    target_scores = gene_effect_df[target_gene].dropna()

    correlations = {}
    for gene in gene_effect_df.columns:
        if gene == target_gene:
            continue
        other_scores = gene_effect_df[gene].dropna()
        common = target_scores.index.intersection(other_scores.index)
        if len(common) < 50:
            continue
        r = target_scores[common].corr(other_scores[common])
        if not pd.isna(r):
            correlations[gene] = r

    corr_series = pd.Series(correlations).sort_values(ascending=False)
    return corr_series.head(top_n)

# Ko-essenzielle Gene teilen oft biologische Komplexe oder Signalwege

Abfrage-Workflows

Workflow 1: Zielvalidierung für eine Krebsart

  1. CRISPRGeneEffect.csv und sample_info.csv herunterladen
  2. Zelllinien nach Krebsart filtern
  3. Mittleren Gen-Effekt für das Zielgen in der Krebsart vs. alle anderen berechnen
  4. Selektivität berechnen: Wie spezifisch ist die Abhängigkeit für Ihre Krebsart?
  5. Mit Mutations-, Expressions- oder CNA-Daten als Biomarker abgleichen

Workflow 2: Synthetisch-Letalitäts-Screening

  1. Zelllinien mit Mutation/Deletion im interessierenden Gen identifizieren (z. B. BRCA1-mutierte)
  2. Gen-Effekt-Werte für alle Gene in mutierten vs. WT-Linien berechnen
  3. Gene identifizieren, die in mutierten Linien signifikant essenzieller sind (synthetisch-letale Partner)
  4. Nach Selektivität und Effektgröße filtern

Workflow 3: Verbindungssensitivitätsanalyse

  1. PRISM-Verbindungssensitivitätsdaten herunterladen (primary-screen-replicate-treatment-info.csv)
  2. AUC/log2(Fold-Change) der Verbindung mit genomischen Merkmalen korrelieren
  3. Prädiktive Biomarker für Verbindungssensitivität identifizieren

DepMap-Datendateien-Referenz

DateiBeschreibung
CRISPRGeneEffect.csvCRISPR-Chronos-Gen-Effekt (primäre Abhängigkeitsdaten)
CRISPRGeneEffectUnscaled.csvUnskalierte CRISPR-Werte
RNAi_merged.csvDEMETER2 RNAi-Abhängigkeit
sample_info.csvZelllinien-Metadaten (Abstammung, Krankheit etc.)
OmicsExpressionProteinCodingGenesTPMLogp1.csvmRNA-Expression
OmicsSomaticMutationsMatrixDamaging.csvSchädliche somatische Mutationen (binär)
OmicsCNGene.csvKopienzahl pro Gen
PRISM_Repurposing_Primary_Screens_Data.csvArzneimittelsensitivität (Repurposing-Bibliothek)

Alle Dateien herunterladen von: https://depmap.org/portal/download/all/

Best Practices

  • Chronos-Werte verwenden (nicht DEMETER2) für aktuelle CRISPR-Analysen – besser kontrolliert bezüglich Schneideeffizienz
  • Pan-essenzielle von krebsspezifischen unterscheiden: Zielgene mit geringer Varianz (in allen Linien essenziell) sind schlechte Wirkstoffziele
  • Mit Expressionsdaten validieren: Ein in einer Zelllinie nicht exprimiertes Gen wird unabhängig von seiner eigentlichen Funktion als nicht-essenziell eingestuft
  • DepMap-ID verwenden für die Zelllinienidentifikation – cell_line_name kann mehrdeutig sein
  • Kopienzahl berücksichtigen: Amplifizierte Gene können aufgrund des Kopienzahl-Effekts (Junk-DNA-Hypothese) als essenziell erscheinen
  • Mehrfachtest-Korrektur: Bei genomweiten Biomarker-Assoziationen FDR-Korrektur anwenden

Zusätzliche Ressourcen

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

adaptyv

How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

alphagenome

Look up precomputed AlphaGenome Atlas effects for any GRCh38 single-nucleotide variant (AVI score with Phred and 18 SHAP feature attributions, plus raw and quantile scores for RNA-seq, DNase, ATAC, ChIP-TF, ChIP-histone, CAGE, PRO-cap, splicing, polyadenylation and contact-map tracks), score variants or scan windows on demand with the AlphaGenome model for human and mouse (variant scoring, in silico mutagenesis, REF-versus-ALT track prediction), and build Atlas website deep links. Use when the user mentions AlphaGenome, AlphaGenome Atlas, AVI or AlphaGenome Variant Impact, DeepMind variant effect prediction, or wants to prioritise or mechanistically interpret non-coding, regulatory, splicing, enhancer, promoter, or chromatin-accessibility effects of SNVs from a VCF, credible set, or region. Research use only; not a clinical tool.

analytical-method-validation

Plan, execute, and document validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP <1220>/<1225>/<1226>, ICH M10 bioanalytical, CLSI EP, or ISO/IEC 17025. Use for HPLC, LC-MS/MS, GC, CE, ICP-MS, dissolution, qNMR, qPCR, NIR, and ligand binding or cell-based assays whenever the question is whether a procedure is fit for its intended purpose. Triggers include

anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

arbor

Autonomously improve a real artifact (code, training recipe, agent harness, data pipeline, prompt) against an objective and an evaluator, using Hypothesis Tree Refinement (HTR) from the Arbor paper. Use this whenever someone wants to iteratively optimize something over many experiments without overfitting — e.g.

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

autoskill

Observe the user

benchling-integration

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

bgpt-paper-search

Search scientific papers and retrieve structured experimental data extracted from full-text studies via the BGPT MCP server. Returns 25+ fields per paper including methods, results, sample sizes, quality scores, and conclusions. Use for literature reviews, evidence synthesis, and finding experimental details not available in abstracts alone.

bids

>

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use biopython.

bulk-rnaseq

End-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, featureCounts), assembles a gene-level counts matrix, then hands off to differential expression (pydeseq2), pathway/GSEA enrichment (pathway-enrichment), and publication figures (scientific-visualization). Use whenever the user has bulk RNA-seq reads or quant output and wants a complete, reproducible differential-expression workflow — e.g.

cellxgene-census

Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.

cirq

Google quantum computing framework. Use when targeting Google Quantum AI hardware, designing noise-aware circuits, or running quantum characterization experiments. Best for Google hardware, noise modeling, and low-level circuit design. For IBM hardware use qiskit; for quantum ML with autodiff use pennylane; for physics simulations use qutip.

citation-management

Comprehensive citation management for academic research. Search OpenAlex, PubMed, and Google Scholar for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-support

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reports

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

Verwandte Skills