bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when summarising / filtering a VCF — variant classification (SNP / MNP / INS / DEL /
$ npx -y skills add tiangzlab/omicsclaw --skill genomics-vcf-operations --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/genomics-vcf-operationsContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when summarising / filtering a VCF — variant classification (SNP / MNP / INS / DEL /
name: genomics-vcf-operations description: Load when summarising / filtering a VCF — variant classification (SNP / MNP / INS / DEL / COMPLEX), Ti/Tv ratio, QUAL / DP threshold filtering, INFO-field parsing. Skip when calling variants from BAM (run an external caller first); adding functional annotations (use genomics-variant-annotation). trigger: VCF, bcftools, variant filter, merge VCF tags: - genomics - vcf - bcftools - filter - ti-tv - snv - indel
Load this skill for the file-based analysis named in the description. The function library and CLI share the same calculations; no external aligner, assembler, caller or annotation service is started.
from skills._sdk.notebook import load_skill, read_input, write_output
library = load_skill("genomics-vcf-operations")
data = read_input("input.vcf", reader=library.read_records)
result = library.analyze(data)
write_output(result, "tables/result.csv")
write_output(library.distribution_figure(result), "figures/distribution.png")Run `examples/example_step.py` through the step runner for a small, hand-worked synthetic fixture. It asserts known summary values. The reader materializes the input in memory; use bounded FASTQ reads or pre-filter large genomic files before loading them.
<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
Read records through read_input(path, reader=library.read_records).
:param path: Input file in the format documented under Inputs and outputs.
:returns: Parsed records as a DataFrame. :raises ValueError: Input values or file structure cannot be parsed.
Compute vcf-operations summaries and return a new table, leaving data unchanged.
:param data: Records containing chrom, pos, ref, alt, qual, filter, dp, type. :param min_qual: CLI default 0 keeps all QUAL values; raise to filter. :param min_dp: CLI default 0 keeps all INFO/DP values; FORMAT/DP is ignored. :returns: Result table with diagnostics and summary in attrs['run_info']. :raises ValueError: Required columns are absent or records are empty or invalid.
Return analysis diagnostics and summary.
:param data: Result returned by analyze. :param keep: Keep diagnostics by default; the CLI passes False. :returns: Independent diagnostics dictionary. :raises ValueError: analyze has not populated diagnostics.
Plot qual values without writing files.
:param data: Result table containing qual. :returns: Matplotlib Figure. :raises ValueError: The value column is absent or table is empty.
<!-- api:end -->
`analyze` returns a new DataFrame and leaves the input unchanged. `run_info(result)` returns the summary and method diagnostics. The CLI passes `keep=False` so diagnostics do not enter output tables. All calculations are deterministic; synthetic CLI demos retain seed 42.
Input files:
CLI output files:
The library writes no files. Steps use `write_output`; the CLI owns the listed artifacts. Public figure functions return matplotlib Figures and do not add new CLI outputs.
python skills/genomics/genomics-vcf-operations/genomics_vcf_operations.py --input input_file --output results/ python skills/genomics/genomics-vcf-operations/genomics_vcf_operations.py --demo --output /tmp/genomics_vcf_operations_demo
`numpy`, `pandas`, `matplotlib`
Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper.
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when discovering bulk gene co-expression modules and hub genes with R WGCNA. Skip direct expression contrasts (use…
Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip
Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or
Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list. Skip when
Load when converting Ensembl, Entrez or symbol IDs in a bulk RNA count matrix using an explicit mapping or a small human demo…