Access COSMIC to download mutation datasets, query Cancer Gene Census, and retrieve mutational signatures when your genomic analysis requires curated somatic mutation resources.
51
56%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Evidence Insight/cosmic-database/SKILL.mdscripts/download_cosmic.py is the most direct path to complete the request.cosmic-database package behavior rather than a generic answer.scripts/download_cosmic.py.references/ for task-specific guidance.Python: 3.10+. Repository baseline for current packaged skills.Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.cd "20260316/scientific-skills/Evidence Insight/cosmic-database"
python -m py_compile scripts/download_cosmic.py
python scripts/download_cosmic.py --helpExample run plan:
CONFIG block or documented parameters if the script uses fixed settings.python scripts/download_cosmic.py with the validated inputs.scripts/download_cosmic.py.references/ contains supporting rules, prompts, or checklists.Use this skill when you need COSMIC data for tasks such as:
pandas >= 1.5requests >= 2.28External requirements:
The following example downloads a COSMIC file and loads it into a pandas DataFrame.
from scripts.download_cosmic import download_cosmic_file
import pandas as pd
# 1) Download a COSMIC dataset (example path; adjust to your target release/build)
download_cosmic_file(
email="user@email.com",
password="pwd",
filepath="GRCh38/cosmic/latest/CosmicMutantExport.tsv.gz"
)
# 2) Load the downloaded GZIP-compressed TSV
df = pd.read_csv(
"CosmicMutantExport.tsv.gz",
sep="\t",
compression="gzip"
)
# 3) Example analysis: filter by gene symbol (column name depends on the dataset)
# df_gene = df[df["Gene name"] == "TP53"]For dataset field definitions and COSMIC file specifics, see: references/cosmic_data_reference.md.
filepath parameter specifies the COSMIC resource path (e.g., genome build such as GRCh38, release channel such as latest, and the target filename).pandas.read_csv(..., sep="\t", compression="gzip") for TSV .gz files.63c61d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.