Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu33k · #8935

cosmic-database

Skill này làm gì

Skill này cho phép agent của bạn làm việc với COSMIC, một cơ sở dữ liệu lớn về đột biến được tìm thấy trong các bệnh ung thư ở người. Skill dành cho nhà nghiên cứu ung thư và đội y học chính xác. COSMIC yêu cầu tài khoản để tải dữ liệu.

Khi nào nên dùng

  • ✓Khi bạn cần tra cứu các đột biến soma của một gen cụ thể trong ung thư.
  • ✓Khi bạn muốn danh sách Cancer Gene Census đã được tuyển chọn.
  • ✓Khi bạn cần hồ sơ chữ ký đột biến cho một nghiên cứu ung thư.

Liên kết skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/cosmic-database/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/cosmic-database/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tải danh sách Cancer Gene Census từ COSMIC để tôi xem những gen nào được tuyển chọn là gen ung thư.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent dùng một script trợ giúp để tải các file COSMIC sau khi bạn đăng nhập bằng tài khoản. Sau đó nó đọc và lọc dữ liệu bạn cần.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

COSMIC Database

Overview

COSMIC (Catalogue of Somatic Mutations in Cancer) is the world's largest and most comprehensive database for exploring somatic mutations in human cancer. Access COSMIC's extensive collection of cancer genomics data, including millions of mutations across thousands of cancer types, curated gene lists, mutational signatures, and clinical annotations programmatically.

When to Use This Skill

This skill should be used when:

  • Downloading cancer mutation data from COSMIC
  • Accessing the Cancer Gene Census for curated cancer gene lists
  • Retrieving mutational signature profiles
  • Querying structural variants, copy number alterations, or gene fusions
  • Analyzing drug resistance mutations
  • Working with cancer cell line genomics data
  • Integrating cancer mutation data into bioinformatics pipelines
  • Researching specific genes or mutations in cancer contexts

Prerequisites

Account Registration

COSMIC requires authentication for data downloads:

Python Requirements

uv pip install requests pandas

Quick Start

1. Basic File Download

Use the scripts/download_cosmic.py script to download COSMIC data files:

from scripts.download_cosmic import download_cosmic_file

# Download mutation data
download_cosmic_file(
    email="your_email@institution.edu",
    password="your_password",
    filepath="GRCh38/cosmic/latest/CosmicMutantExport.tsv.gz",
    output_filename="cosmic_mutations.tsv.gz"
)

2. Command-Line Usage

# Download using shorthand data type
python scripts/download_cosmic.py user@email.com --data-type mutations

# Download specific file
python scripts/download_cosmic.py user@email.com \
    --filepath GRCh38/cosmic/latest/cancer_gene_census.csv

# Download for specific genome assembly
python scripts/download_cosmic.py user@email.com \
    --data-type gene_census --assembly GRCh37 -o cancer_genes.csv

3. Working with Downloaded Data

import pandas as pd

# Read mutation data
mutations = pd.read_csv('cosmic_mutations.tsv.gz', sep='\t', compression='gzip')

# Read Cancer Gene Census
gene_census = pd.read_csv('cancer_gene_census.csv')

# Read VCF format
import pysam
vcf = pysam.VariantFile('CosmicCodingMuts.vcf.gz')

Available Data Types

Core Mutations

Download comprehensive mutation data including point mutations, indels, and genomic annotations.

Common data types:

  • mutations - Complete coding mutations (TSV format)
  • mutations_vcf - Coding mutations in VCF format
  • sample_info - Sample metadata and tumor information
# Download all coding mutations
download_cosmic_file(
    email="user@email.com",
    password="password",
    filepath="GRCh38/cosmic/latest/CosmicMutantExport.tsv.gz"
)

Cancer Gene Census

Access the expert-curated list of ~700+ cancer genes with substantial evidence of cancer involvement.

# Download Cancer Gene Census
download_cosmic_file(
    email="user@email.com",
    password="password",
    filepath="GRCh38/cosmic/latest/cancer_gene_census.csv"
)

Use cases:

  • Identifying known cancer genes
  • Filtering variants by cancer relevance
  • Understanding gene roles (oncogene vs tumor suppressor)
  • Target gene selection for research

Mutational Signatures

Download signature profiles for mutational signature analysis.

# Download signature definitions
download_cosmic_file(
    email="user@email.com",
    password="password",
    filepath="signatures/signatures.tsv"
)

Signature types:

  • Single Base Substitution (SBS) signatures
  • Doublet Base Substitution (DBS) signatures
  • Insertion/Deletion (ID) signatures

Structural Variants and Fusions

Access gene fusion data and structural rearrangements.

Available data types:

  • structural_variants - Structural breakpoints
  • fusion_genes - Gene fusion events
# Download gene fusions
download_cosmic_file(
    email="user@email.com",
    password="password",
    filepath="GRCh38/cosmic/latest/CosmicFusionExport.tsv.gz"
)

Copy Number and Expression

Retrieve copy number alterations and gene expression data.

Available data types:

  • copy_number - Copy number gains/losses
  • gene_expression - Over/under-expression data
# Download copy number data
download_cosmic_file(
    email="user@e
Câu hỏi thường gặp

Tôi có cần tài khoản không?

Có. Để tải dữ liệu, bạn cần đăng ký tài khoản.

Ai dùng miễn phí được?

Skill nói người dùng học thuật có thể dùng miễn phí sau khi đăng ký, còn sử dụng thương mại cần giấy phép từ QIAGEN.

Dữ liệu có thể bao gồm những loại nào?

Skill nhắc đến đột biến soma, dung hợp gen, thay đổi số bản sao và đột biến kháng thuốc.

Chi tiết

Mô tả gốc của tác giả

Access COSMIC cancer mutation database. Query somatic mutations, Cancer Gene Census, mutational signatures, gene fusions, for cancer research and precision oncology. Requires authentication.

repo: davila7/claude-code-templates

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8935
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự