Agent skill

genomic-coordinates

Convert genomic intervals between coordinate conventions, normalise and compare variant representations, and detect assembly or contig-naming mismatches before they corrupt an analysis. Use whenever coordinates cross a format, tool, or assembly boundary - converting between BED, GFF/GTF, VCF, SAM/BAM, WIG, PSL, genePred, Picard interval_list, or region strings; reconciling 0-based half-open with 1-based inclusive; left-aligning or trimming indels; checking whether two variant records describe the same change; mapping genomic to transcript, CDS, or protein positions; auditing a BED/GTF/VCF for

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill genomic-coordinates --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 10
SKILL.md size: 9 KB
Bundled scripts: yes
Version: 1.0
Allowed tools: ReadWriteEditBash
Requires: Requires Python 3.11+. Scripts use only the standard library - no third-party packages and no network access. Variant…
Path: skills/genomic-coordinates/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Genomic Coordinates ## When to use Any time a coordinate crosses a boundary: between two file formats, between two tools, between two assemblies, or between the genome and a transcript. ## The rule **A coordinate is three facts, not one: the number, the convention it is written in, and the assembly it was measured against.** Carry all three or the number is not interpretable. Coordinate errors are the quietest class of bug in genomics. An off-by-one BED file parses, sorts, and intersects without complaint. A GRCh37 VCF joined against a GRCh38 annotation returns rows. A right-shifted indel simply fails to match its entry in ClinVar, and the result is a variant reported as novel. Nothing raises an error; the answer is just wrong, and it is wrong in a direction that looks plausible. So: convert with the table, not from memory, and verify against the reference whenever a reference is available. ## The two conversions ``` 1-based inclusive -> 0-based half-open : start - 1, end 0-based half-open -> 1-based inclusive : start + 1, end ``` The end coordinate never moves. If a conversion changed both numbers, it is wrong. ## Which format is which | 0-based, half-open | 1-based, inclusive |

What's inside
Steps it walks through
  1. When to use
  2. The rule
  3. The two conversions
  4. Which format is which
  5. Variants are not intervals
  6. Check the assembly before trusting a join
  7. Audit a file against its own format
  8. Transcript, CDS, and protein positions
  9. Reporting results
  10. References
Ships with 9 files
  • references/format-conventions.md
  • references/reference-builds.md
  • references/transcript-coordinates.md
  • references/variant-representation.md
  • scripts/_common.py
  • scripts/audit_intervals.py
  • scripts/check_contigs.py
  • scripts/convert_coords.py
  • scripts/normalize_variant.py
Commands it runs
cd skills/genomic-coordinates/scripts
python3 convert_coords.py --list                          # the table
python3 convert_coords.py --from bed --to gff chr1 999 1000
python3 convert_coords.py --from ucsc --to bed "chr7:5,530,601-5,530,625"
python3 convert_coords.py --from granges --to pyranges --input regions.tsv
python3 normalize_variant.py --fasta ref.fa chr1 7 CAC C
python3 normalize_variant.py --fasta ref.fa --split --input cohort.vcf
python3 normalize_variant.py --fasta ref.fa --compare chr1:7:CAC:C chr1:2:GCA:G
python3 check_contigs.py --identify unknown.fa.fai
python3 check_contigs.py variants.vcf annotation.gtf --genome GRCh38.fa.fai
More from scientific-agent-skills
All skills →
About this skill
What does the genomic-coordinates skill do?

Convert genomic intervals between coordinate conventions, normalise and compare variant representations, and detect assembly or contig-naming mismatches before they corrupt an analysis. Use whenever coordinates cross a format, tool, or assembly boundary - converting between BED, GFF/GTF, VCF, SAM/BAM, WIG, PSL, genePred, Picard interval_list, or region strings; reconciling 0-based half-open with 1-based inclusive; left-aligning or trimming indels; checking whether two variant records describe the same change; mapping genomic to transcript, CDS, or protein positions; auditing a BED/GTF/VCF for

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill genomic-coordinates --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going