alterlab-cosmic

Query COSMIC cancer mutation data and download gzip-compressed TSV/VCF files.

58|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-cosmic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alterlab-cosmic
Source: https://github.com/AlterLab-IEU/AlterLab-Academic-Skills/tree/main/skills/databases/alterlab-cosmic
Command: npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-cosmic

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Researchers need reliable access to COSMIC cancer mutation data for genomics analyses, without manual web downloads or repetitive scripting.

Core Features & Use Cases

  • Programmatic access to core mutation data (CosmicMutantExport.tsv.gz), Cancer Gene Census, mutational signatures, structural variants, copy number data, and resistance mutations.
  • Integrates with Python data pipelines and standard bioinformatics tools to download, parse (TSV/VCF), and filter mutation records for study genes or cancer types.
  • Example: fetch TP53 mutations across GRCh38 samples and generate a mutation frequency table to support downstream analyses.

Quick Start

Run the COSMIC data download utility with your COSMIC account credentials to fetch a file such as GRCh38/cosmic/latest/CosmicMutantExport.tsv.gz.

Frequently Asked Questions about alterlab-cosmic

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

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

You can download COSMIC cancer mutation data programmatically using a Python utility that authenticates with your COSMIC account credentials, resolves download URLs, and saves gzip-compressed TSV or VCF files with built-in error handling and versioned file paths.

Can I fetch specific datasets like the Cancer Gene Census and mutational signatures?

Yes, you can fetch the Cancer Gene Census, mutational signatures, structural variants, copy number alterations, and resistance mutations programmatically alongside the core CosmicMutantExport.tsv.gz dataset.

Does this COSMIC data download utility support both GRCh38 and GRCh37 genome builds?

Yes, the utility supports downloading COSMIC mutation data across both GRCh38 and GRCh37 pipelines, allowing you to fetch reference-appropriate files such as GRCh38/cosmic/latest/CosmicMutantExport.tsv.gz for your analyses.

Do I need a COSMIC account to download cancer mutation catalogs?

Yes, you need a COSMIC account because the Python utility requires your credentials to authenticate access before resolving and downloading the gzip-compressed mutation data files.

What file formats are supported when saving downloaded COSMIC mutation data?

The utility saves downloaded COSMIC data as gzip-compressed TSV and VCF files, applying versioned file paths to ensure consistent tracking of mutation catalogs, structural variants, and copy number alterations.

Why do manual COSMIC web downloads fail to integrate with bioinformatics pipelines?

Manual web downloads lack automated authentication, versioned file paths, and built-in error handling, making repetitive scripting and integration with Python data pipelines unreliable compared to programmatic access.