cosmic-database

Download and organize authenticated COSMIC cancer genomics datasets for mutation workflows.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill cosmic-database-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cosmic-database
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/07-%E4%B8%B4%E5%BA%8A%E5%8C%BB%E5%AD%A6%E4%B8%8E%E7%B2%BE%E5%87%86%E5%8C%BB%E7%96%97/cosmic-database
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill cosmic-database-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

COSMIC is essential for cancer genomics work, but its authenticated downloads and many file types make it hard to reproducibly retrieve the right mutation, gene, signature, and clinical datasets.

Core Features & Use Cases

  • Programmatic COSMIC file downloads (authenticated): Fetch large TSV/CSV/VCF files for specific COSMIC paths such as GRCh38/GRCh37 releases.
  • Support for major data modules: Cancer Gene Census, core coding mutations, mutational signatures, structural variants/fusions, copy number, gene expression, resistance mutations, and sample metadata.
  • Pipeline-friendly formats: Works with pandas for TSV/CSV and VCF tooling (e.g., pysam) for variant-centric analyses.
  • Common research tasks: Identify cancer genes, filter somatic mutations by gene or primary site, perform mutational signature workflows, and integrate COSMIC data into downstream bioinformatics pipelines.

Quick Start

Tell your AI agent: download COSMIC GRCh38 Cancer Gene Census using my COSMIC email and password, saving it as cancer_gene_census.csv, then show me how to load it with pandas.

Frequently Asked Questions about cosmic-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download COSMIC cancer mutation data programmatically?

To download COSMIC cancer mutation data programmatically, you can use a script-based downloader that authenticates with your COSMIC email and password to retrieve specific GRCh38 or GRCh37 file paths and save them as gzipped TSV, CSV, or VCF assets.

What types of COSMIC datasets can I retrieve for precision oncology workflows?

For precision oncology workflows, you can retrieve Cancer Gene Census, core coding mutations, mutational signatures, structural variants, copy number, gene expression, resistance mutations, and sample metadata from authenticated COSMIC datasets.

Can I load COSMIC TSV and VCF files directly into pandas?

Yes, you can load downloaded COSMIC TSV and CSV files directly into pandas for filtering and analysis, while VCF files can be processed with downstream tooling like pysam for variant-centric workflows.

Does downloading COSMIC datasets require an email and password for authentication?

Yes, downloading COSMIC datasets requires authentication via your registered COSMIC email and password to access and retrieve the authenticated cancer genomics files through the script-based downloader.

What's the best way to filter somatic mutations by gene or primary site using COSMIC data?

The best way to filter somatic mutations by gene or primary site is to download the coding mutations TSV dataset via the downloader and use pandas to query and filter the loaded dataframe by specific gene names or primary site columns.

Are there limitations when retrieving GRCh38 and GRCh37 COSMIC files for bioinformatics pipelines?

Limitations include needing to specify reproducible GRCh38 or GRCh37 pathing for correct dataset retrieval, and the downloader only saves gzipped TSV, CSV, or VCF assets, requiring downstream tools for complete bioinformatics parsing.