cosmic-database
Skill by davila7
Downloads somatic mutation, Cancer Gene Census, mutational signature, gene fusion and related data from the COSMIC cancer database. Intended for cancer researchers and precision oncology work. Requires a COSMIC account.
Install cosmic-database
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/cosmic-database ~/.claude/skills/cosmic-databaseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/cosmic-database ~/.gemini/antigravity-cli/skills/cosmic-databaseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant access to COSMIC (Catalogue of Somatic Mutations in Cancer), a cancer genomics database. It uses a download script that takes a COSMIC account email and password and fetches data files by path, such as mutation exports, the Cancer Gene Census, mutational signature profiles, fusion genes, copy number data and resistance mutations. Helper functions return standard file paths for common data types. Example code shows how to load the files with pandas and read VCF files with pysam.
The skill is aimed at cancer researchers, bioinformaticians and precision oncology teams who need COSMIC data in analysis pipelines. Academic users can register for free. Commercial users must license COSMIC through QIAGEN. The skill includes a data reference file that describes the available files and fields.
Written from the project's SKILL.md and checked against it.
What it can do
- Download mutation dataFetches COSMIC coding mutation exports in TSV or VCF format.
- Cancer Gene CensusDownloads the expert-curated list of cancer genes and filters by role.
- Mutational signaturesRetrieves SBS, DBS and ID signature profiles for signature analysis.
- Gene fusionsDownloads gene fusion events and structural variant data.
- Copy number and expressionRetrieves copy number alteration and over or under-expression data.
- Resistance mutationsDownloads drug resistance mutation data with clinical annotations.
- File path helpersReturns standard COSMIC file paths for common data types by name and assembly.
What you need
- COSMIC account registered at cancer.sanger.ac.uk
- Python with requests and pandas installed
- Commercial COSMIC license from QIAGEN for commercial use
Try asking
- Download the COSMIC Cancer Gene Census for GRCh38
- List the oncogenes and tumor suppressors in the Cancer Gene Census
- Get the COSMIC mutational signature definitions file
Good to know
- Downloads require a COSMIC account with email and password
- Commercial users need a license from QIAGEN
- COSMIC files can be several GB in size
- GRCh37 is provided as a legacy assembly
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/scientific/cosmic-database/SKILL.md, cli-tool/components/skills/scientific/cosmic-database/scripts/download_cosmic.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/cosmic_data_reference.md6 KB -
scripts/download_cosmic.py8 KB
Alternatives to cosmic-database
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
cosmic-database: common questions
Does the COSMIC skill need an account?
Yes. The source says COSMIC requires authentication for data downloads. Academic users can register for free, and commercial users need a license from QIAGEN.
What cancer data can I get from COSMIC with this skill?
The source lists somatic mutations, the Cancer Gene Census, mutational signatures, gene fusions, structural variants, copy number alterations, gene expression and drug resistance mutations.
Which genome assembly should I use?
The source recommends GRCh38 as the current standard. GRCh37 is described as legacy, for older pipelines.
How do I install cosmic-database?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cosmic-database free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cosmic-database safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cosmic-database?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
