Agent skill

Bio Genome Intervals Bedgraph Handling

by GPTomics in GPTomics/bioSkills

Generates, normalizes, and converts bedGraph signal tracks (4-column chrom/start/end/value, 0-based half-open) with bedtools genomecov, deepTools bamCoverage/bamCompare/bigwigCompare, bedtools…

MITAuto-check passedResearch & Science

Install Bio Genome Intervals Bedgraph Handling

skills CLI
$ npx skills add GPTomics/bioSkills --skill bio-genome-intervals-bedgraph-handling -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GPTomics/bioSkills bio-genome-intervals-bedgraph-handling --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/genome-intervals/bedgraph-handling .claude/skills/bio-genome-intervals-bedgraph-handling && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bio-genome-intervals-bedgraph-handling
GitHub stars
1.2k
Used in
1 other repo
Token cost
~5.2k tokens
SKILL.md length
2,299 words
Files
4
Skills in repo
559
Repo updated
First seen
Licence
MIT

At a glance

Generates, normalizes, and converts bedGraph signal tracks (4-column chrom/start/end/value, 0-based half-open) with bedtools genomecov, deepTools bamCoverage/bamCompare/bigwigCompare, bedtools…

  • Works in 3 steps: Every library-size normalization… → There is no computational rescue for a… → bedGraph is scratch; bigWig is the…
  • Normalizing a coverage/signal track from a BAM
  • SKILL.md covers Version Compatibility, The Single Most Important…, Normalization Taxonomy and Decision Tree by Scenario, plus 11 more sections
  • Runs Shell and Python scripts from its folder; calls pip

What it does

Bio Genome Intervals Bedgraph Handling is an agent skill from GPTomics/bioSkills. Generates, normalizes, and converts bedGraph signal tracks (4-column chrom/start/end/value, 0-based half-open) with bedtools genomecov, deepTools bamCoverage/bamCompare/bigwigCompare, bedtools unionbedg, and UCSC bedGraphToBigWig. Covers why a raw coverage bedGraph is not comparable across samples until normalized, the CPM/RPKM/BPM/RPGC normalization menu and the conserved-total assumption that makes them wrong under a global perturbation, the strict sorted-non-overlapping-chrom.sizes bedGraphToBigWig contract…

Its SKILL.md is about 5.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `examples/bam_to_bigwig.sh`, `examples/bedgraph_operations.py` and `usage-guide.md`).

It sits in Research & Science, covering Bioinformatics and Database schema design. The repository describes itself as: a set of SKILLS.md for doing bioinformatics with agents like claude code. The licence is MIT.

When your agent uses it

  • Normalizing a coverage/signal track from a BAM
  • Comparing tracks across samples
  • Converting bedGraph to a browser-ready bigWig
  • Diagnosing a track that looks plausible but reports wrong heights

Example prompts

  • “/bio-genome-intervals-bedgraph-handling”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Every library-size normalization (CPM/RPKM/BPM/RPGC=1x) assumes total signal is conserved across samples. They all just rescale each…
  2. There is no computational rescue for a global change after the fact. The only fix is an external ruler decided AT THE BENCH - a spike-in…
  3. bedGraph is scratch; bigWig is the artifact. The text bedGraph is the last human-readable checkpoint - awk '$4 > 1000' to find blacklist…

What it can do on your machine

Read from SKILL.md and the folder at commit d91ed3d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bio Genome Intervals Bedgraph Handling loads about 5.2k tokens when it runs. Until then it costs about 219 tokens; SKILL.md has 2,299 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~219
When it runs · the whole SKILL.md, loaded when a task matches
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from GPTomics/bioSkills at commit d91ed3d, republished under its MIT licence (© GPTomics). 2,299 words, ~5,209 tokens.

Download SKILL.mdSave it as .claude/skills/bio-genome-intervals-bedgraph-handling/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
bio-genome-intervals-bedgraph-handling
description
Generates, normalizes, and converts bedGraph signal tracks (4-column chrom/start/end/value, 0-based half-open) with bedtools genomecov, deepTools bamCoverage/bamCompare/bigwigCompare, bedtools unionbedg, and UCSC bedGraphToBigWig. Covers why a raw coverage bedGraph is not comparable across samples until normalized, the CPM/RPKM/BPM/RPGC normalization menu and the conserved-total assumption that makes them wrong under a global perturbation, the strict sorted-non-overlapping-chrom.sizes bedGraphToBigWig contract that silently corrupts a bigWig, effective-genome-size selection, and bin-size aliasing. Use when building or normalizing a coverage/signal track from a BAM, comparing tracks across samples or conditions, converting bedGraph to a browser-ready bigWig, or diagnosing a track that looks plausible but reports wrong heights.
tool_type
mixed
primary_tool
deeptools

Version Compatibility

Reference examples tested with: deeptools 3.5+, bedtools 2.31+, ucsc-bedgraphtobigwig 445+, pyBigWig 0.3.22+.

Before using code patterns, verify installed versions match. If versions differ:

  • CLI: <tool> --version then <tool> --help to confirm flags
  • Python: pip show <package> then help(module.function) to check signatures

bedGraphToBigWig has a hard, under-advertised input contract: the bedGraph must be LC_COLLATE=C-sorted by chrom then start, contain non-overlapping intervals, and ship with a chrom.sizes derived from the exact assembly the reads were aligned to. deepTools effective-genome-size tables are occasionally updated between releases - re-check the installed version's table. If code throws an error, introspect the installed tool and adapt the example to match the actual API rather than retrying.

bedGraph Handling

"Make me a coverage/signal track I can compare across samples and load in a browser" -> Generate a per-bin signal track, normalize it onto a common scale (or decide a spike-in is required), then convert the text bedGraph to an indexed bigWig under the strict sort/overlap/chrom.sizes contract.

  • CLI: bamCoverage -b s.bam -o s.bw --normalizeUsing RPGC --effectiveGenomeSize <N>; bedtools genomecov -ibam s.bam -bga; LC_COLLATE=C sort -k1,1 -k2,2n in.bdg | bedGraphToBigWig /dev/stdin chrom.sizes out.bw
  • Python: pyBigWig.open('s.bw') to read/extract; bw.intervals(chrom, start, end) returns the bedGraph rows

The Single Most Important Modern Insight -- A Raw Coverage bedGraph Is a Library-Size Artifact, and the Wrong Normalization Is Worse Than None

Column 4 of a raw coverage bedGraph is not biology - it is sequencing depth. Two libraries of identical biology sequenced to different depths produce different heights, so any cross-sample statement ("more signal at this promoter in treatment") on un-normalized tracks is a category error. The modern path skips the text intermediate entirely: deepTools bamCoverage takes BAM -> normalized bigWig in one step, because bigWig is indexed, binary, random-access and bedGraph is flat text. Three load-bearing moves:

  1. Every library-size normalization (CPM/RPKM/BPM/RPGC=1x) assumes total signal is conserved across samples. They all just rescale each library to a common total (per-million reads, or to 1x genome coverage). That model is correct when signal only redistributes locally - the usual case - and actively wrong when the perturbation changes global levels (histone-mark KD, BET-bromodomain inhibitor, global pol-II collapse). A genuine 3-fold global increase becomes, after CPM/RPGC, no change - the extra signal is spread thin and rescaled away. The model is unfalsifiable from the normalized data: forcing both libraries to the same total defines away any global difference. Library-size normalization assumes the very thing under measurement does not happen.
  2. There is no computational rescue for a global change after the fact. The only fix is an external ruler decided AT THE BENCH - a spike-in of fixed foreign chromatin per cell (ChIP-Rx, Orlando 2014; defined reference epigenome, Bonhoure 2014) - scaled by the spike-in reads, not the sample reads. The wet-lab decision had to be made before sequencing; with no spike-in, the global scale is unrecoverable. The mechanics live in chip-seq/spike-in-normalization; the decision (could this perturbation change global levels?) belongs here, up front.
  3. bedGraph is scratch; bigWig is the artifact. The text bedGraph is the last human-readable checkpoint - awk '$4 > 1000' to find blacklist pileups, confirm the sort/overlap invariants - before opaque binary. Inspect it, then ship bigWig. Never distribute a bedGraph as a final product: it is unindexed, so a browser reads the whole file to render any region.

Normalization Taxonomy

MethodWhat it assumesWhen to useWhen WRONG
Nonenothing (raw counts)single-sample inspection onlyany cross-sample comparison - depth confounds it
CPMtotal mapped reads is the right denominator; total signal conserveddepth-only normalization; quick cross-sample on a common assaya few high-coverage bins dominate (composition skew); global change
RPKMas CPM plus bin length matters; total signal conservedlegacy default; depth + bin-length normalizedcomposition skew; global change; superseded by BPM for tracks
BPM (TPM-analog)sum over all bins fixed at 1e6; total signal conservedcomposition-aware cross-sample default; robust to a few dominant binsglobal change (still a conserved-total rescale)
RPGC (1x)mean genome-wide coverage = 1x; correct effective-genome-size; total signal conservedfield-standard ChIP/ATAC browser viewing; most interpretable heightwrong effective-genome-size (linear scaling error); global change
spike-in (external)spike-in amount is constant per cell (a ruler that does not move)global-level change plausible or under testnothing computational - requires a bench step before sequencing

All five library-size methods share one axiom: total signal is conserved. The decision is not which library-size method, it is whether library-size normalization is legitimate at all (see Decision Tree).

Decision Tree by Scenario

ScenarioRecommendedWhy
One BAM -> browser track, local redistributionbamCoverage --normalizeUsing RPGC --effectiveGenomeSize <N>one-step BAM->normalized bigWig; RPGC is the interpretable ChIP/ATAC standard
Cross-sample, composition skew likelybamCoverage --normalizeUsing BPMbins-per-million fixes the per-bin sum; robust to dominant bins
Global-level change plausible (KD/KO of a chromatin modifier, BET inhibitor)spike-in -> chip-seq/spike-in-normalizationlibrary-size normalization erases the global change by construction
RNA-seq coverage trackbamCoverage --filterRNAstrand or genomecov -bga -split-split/strand handling so spliced reads do not paint introns
ChIP/ATAC trackadd --extendReads (and --centerReads for footprints)a read is a fragment END; raw read-end coverage is double-humped and wrong
Treatment vs input from raw BAMsbamCompare -b1 chip.bam -b2 input.bam --operation log2normalizes depth THEN does the arithmetic
Two already-normalized bigWigsbigwigCompare --operation log2arithmetic only - feeding un-normalized tracks manufactures a fake change
Stack N samples into a value matrixbedtools unionbedg -header -names ...union interval partition; feed the matrix to R/Python for testing
Sample-relatedness QCmultiBigwigSummary bins -> plotCorrelation/plotPCAgenome-wide value matrix for correlation/PCA
Need exact per-base arithmetic (not a browser)keep bedGraph (genomecov -bga)bedGraph is exact text; bigWig is binned/lossy
Convert finished bedGraph -> bigWigLC_COLLATE=C sort then bedGraphToBigWig + matched chrom.sizesthe strict contract; inspect the text first

Generate a Normalized Track with bamCoverage (the modern default)

Goal: Turn one BAM into a normalized, browser-ready bigWig in a single command.

Approach: Let bamCoverage bin, normalize, and write bigWig directly; pick the normalization from the taxonomy, supply the effective-genome-size for RPGC, extend reads for ChIP/ATAC, and exclude chrX/chrM (and any spike-in contigs) from the scale-factor calculation.

bash
BIN_SIZE=25                  # bp; smaller = finer + noisier + bigger. Match to feature width (sharp TF/ATAC 10-25; broad marks 50-200)
EFFGENOME=2913022398         # GRCh38 non-N length (faCount); use ONLY if multimappers were kept (see Effective Genome Size)

bamCoverage -b sample.bam -o sample.bw \
  --binSize $BIN_SIZE --normalizeUsing RPGC --effectiveGenomeSize $EFFGENOME \
  --extendReads --ignoreForNormalization chrX chrM -p 8

Defaults to verify: --binSize 50, --normalizeUsing None, --scaleFactor 1.0, --extendReads off, --centerReads off. For single-end ChIP supply the fragment length (--extendReads 200); paired-end infers it. --scaleFactor with --scaleFactorsMethod None is the hook for a bench-derived spike-in factor. --outFileFormat bedgraph writes the text form when the raw numbers are needed.

Generate with bedtools genomecov (text, flexible, no normalization)

-bg collapses equal-coverage runs but omits zero-coverage regions; -bga additionally tiles zeros (use when downstream tools need explicit 0s). -split is mandatory for RNA-seq so spliced reads do not paint introns. -scale 1000000/<nreads> is a crude manual RPM; deepTools is preferred for real normalization.

bash
bedtools genomecov -ibam sample.bam -bga -split > sample.bedgraph

Convert bedGraph -> bigWig (the silent-corruption trap)

Goal: Produce a valid bigWig from a finished bedGraph without shipping a file that loads but lies.

Approach: C-locale-sort, guarantee non-overlapping intervals, derive chrom.sizes from the exact aligned-to FASTA, inspect the text, then convert.

bash
samtools faidx ref.fa && cut -f1,2 ref.fa.fai > chrom.sizes   # chrom.sizes from the SAME FASTA the reads aligned to
LC_COLLATE=C sort -k1,1 -k2,2n sample.bedgraph > sample.sorted.bedgraph   # C locale: locale-aware sort triggers "is not case-sensitive sorted"
bedGraphToBigWig sample.sorted.bedgraph chrom.sizes sample.bw

If concatenation/merging introduced overlaps, collapse with an explicit aggregation BEFORE converting - and note max vs mean vs sum are different signals, there is no safe default:

bash
bedtools merge -i sample.sorted.bedgraph -d 0 -c 4 -o max > sample.nonoverlap.bedgraph

bigWig round-trips losslessly: bigWigToBedGraph sample.bw out.bedgraph (optionally -chrom=chr1 -start=1000 -end=2000).

Multi-Sample Arithmetic

Goal: Compare two tracks (treatment/input, two conditions) without letting a depth difference masquerade as biology.

Approach: From raw BAMs use bamCompare, which normalizes depth THEN applies the operation; only use bigwigCompare on bigWigs that are already on a common scale.

bash
bamCompare -b1 chip.bam -b2 input.bam -o log2ratio.bw \
  --operation log2 --pseudocount 1 --binSize 25 --scaleFactorsMethod readCount

--operation (NOT --ratio) chooses log2/ratio/subtract/add/mean/reciprocal_ratio/first/second; default log2. --scaleFactorsMethod readCount (the default) scales by library size; --scaleFactorsMethod SES (signal-extraction scaling, Diaz 2012) instead estimates the factor from the shared background bins and is more robust than readCount for SHARP/punctate marks and TF ChIP where enrichment is a small genomic fraction; it DEGRADES for broad marks (H3K27me3/H3K9me3) where the diffuse enrichment cannot be cleanly separated from background, so use readCount (or spike-in) there. --pseudocount (default 1) prevents divide-by-zero in log2/ratio but pulls low-coverage bins toward 0 - a log2 track's apparent dynamic range is partly a pseudocount+bin-size artifact, do not read fold-changes off a browser track as measured. bigwigCompare --skipZeroOverZero drops bins that are 0 in both rather than flooding the output with log2(1)=0. Stack many samples and QC relatedness:

bash
bedtools unionbedg -i s1.bdg s2.bdg s3.bdg -header -names s1 s2 s3 > matrix.txt   # inputs must be coordinate-sorted
multiBigwigSummary bins -b s1.bw s2.bw s3.bw -o scores.npz && plotCorrelation -in scores.npz --corMethod spearman --whatToPlot heatmap -o corr.png

Read/Extract Signal with pyBigWig

python
import pyBigWig

bw = pyBigWig.open('sample.bw')
mean_over_region = bw.stats('chr1', 1_000_000, 1_010_000, type='mean')[0]   # binned summary, not per-base
rows = bw.intervals('chr1', 1_000_000, 1_010_000)   # the underlying bedGraph rows: (start, end, value)
bw.close()

bw.stats()/bw.values() return what the bin resolution preserved, not a faithful per-base record - coarse bins silently change the values read back.

Show full SKILL.md (946 more words)Show less

Effective Genome Size (the two-table trap)

--effectiveGenomeSize feeds the RPGC scale factor and depends on the read-filtering regime. deepTools ships two tables that answer different questions:

BuildNon-N length (faCount; multimappers KEPT)
GRCh382,913,022,398
GRCh372,864,785,220
GRCm38 (mm10)2,652,783,500
dm6142,573,017
WBcel235 (C. elegans)100,286,401

When reads were instead filtered to unique alignments / a MAPQ filter applied (the common ChIP/ATAC case), use the read-length-dependent unique-k-mer value: GRCh38 is 2,701,495,711 (50 bp), 2,805,636,231 (100 bp), 2,862,010,428 (150 bp). The two GRCh38 numbers differ ~7% at short read length. RPGC scales linearly in this value, so the error cancels for within-study ratios but surfaces as a spurious constant fold-difference on cross-study integration (a public track, a collaborator's bigWig, a track made last year at a different read length). For non-model organisms there is no table - estimate it (faCount for non-N length, or unique-k-mers on the assembly).

Per-Method Failure Modes

Comparing un-normalized tracks across samples

Trigger: browser-comparing or quantifying raw coverage bedGraphs/bigWigs. Mechanism: column 4 scales with library size. Symptom: the deeper library looks like it has "more signal" everywhere. Fix: normalize during bamCoverage; never compare --normalizeUsing None tracks.

Conserved-total assumption under a global change

Trigger: CPM/RPKM/BPM/RPGC on a perturbation that shifts global levels (chromatin-modifier KD/KO, BET inhibitor). Mechanism: every library-size method forces total signal to a constant. Symptom: a real global increase reads as no change; tracks look identical. Fix: spike-in decided at the bench -> chip-seq/spike-in-normalization. No computational rescue exists.

Unsorted / overlapping input -> corrupt bigWig

Trigger: bedGraphToBigWig on non-C-sorted or overlapping input, or chrom.sizes from the wrong assembly. Mechanism: the contract is enforced inconsistently - some violations error, others build a bigWig that loads and shows wrong heights or silently drops chromosomes. Symptom: is not case-sensitive sorted, overlapping regions, end coordinate bigger than, or a silently wrong/incomplete track. Fix: LC_COLLATE=C sort; bedtools merge -c 4 -o max/mean/sum; chrom.sizes from the exact aligned-to FASTA; harmonize chr1 vs 1.

Effective-genome-size drift

Trigger: grabbing the round 2.9e9 GRCh38 value regardless of multimapper filtering, or reusing a value across read lengths/assemblies. Mechanism: RPGC scales linearly in the value; the two tables differ ~7%. Symptom: invisible within a study; a spurious constant fold-difference on cross-study integration. Fix: match the value to the read length AND filtering regime; estimate it for non-model organisms.

Bin-size aliasing

Trigger: a bin wider than ~half the feature, or comparing tracks built at different binSizes. Mechanism: binSize is a low-pass filter chosen once; a feature narrower than ~2 bins is averaged down or straddles a boundary (a phase artifact - replicates disagree by bin alignment). Symptom: sharp peaks shrink or split; bin-for-bin ratios meaningless at boundaries. Fix: match binSize to feature width (sharp TF/ATAC 10-25 bp, broad marks 50-200 bp); compared tracks MUST share binSize. --smoothLength is cosmetic, it cannot recover discarded information.

ChIP/ATAC track without extendReads

Trigger: bamCoverage/genomecov on ChIP/ATAC without --extendReads. Mechanism: a read marks a fragment END, not the fragment. Symptom: double-humped peaks with a central dip; biased boundaries and quantification. Fix: --extendReads (paired-end infers; single-end supply the fragment length). RNA-seq mirror trap: without -split spliced reads paint introns.

Quantitative Thresholds

ThresholdSourceRationale
binSize default 50 bp; sharp TF/ATAC 10-25 bp, broad marks 50-200 bpdeepTools default + feature-width matchingbinSize is a low-pass filter; finer is noisier/bigger, coarser aliases sharp features
GRCh38 effGenome 2,913,022,398 (multimappers kept)deepTools faCount tablenon-N genome length for the RPGC denominator
GRCh38 effGenome 2.70-2.86e9 by read length (unique alignments)deepTools unique-k-mer table~7% below the non-N value; use when MAPQ/uniqueness-filtered
pseudocount default 1 (log2/ratio)deepTools defaultprevents divide-by-zero; biases low-coverage bins toward 0
single-end fragment length ~200 bp (--extendReads 200)typical sonicated ChIP fragmentwrong value distorts peak width; paired-end infers it
compared tracks must share binSizesignal-processing constraintdifferent grids make bin-for-bin ratios meaningless

Common Errors

Error / symptomCauseSolution
is not case-sensitive sortedlocale-aware sortLC_COLLATE=C sort -k1,1 -k2,2n (works on a login node, fails in the scheduler when $LC_* differ)
overlapping regions in bedGraph fileconcatenated/merged tracksbedtools merge -c 4 -o max/mean/sum (choose the aggregation deliberately)
end coordinate N bigger than ...chrom.sizes from a different assembly/patchderive chrom.sizes from the exact aligned-to FASTA (samtools faidx + cut -f1,2)
Whole chromosomes missing from the bigWig, no errorchr1 vs 1 / MT vs chrM naming mismatchharmonize naming across bedGraph and chrom.sizes
Track line breaks sort/conversiontrack type=bedGraph ... header rowremove the track line before sort/bedGraphToBigWig
RPGC normalization fails--effectiveGenomeSize not suppliedpass the correct value for the build, read length, and filtering
Spliced reads paint intronsno -split (genomecov) / wrong RNA modegenomecov -bga -split or bamCoverage --filterRNAstrand

References

  • Ramírez F, Ryan DP, Grüning B, et al. 2016. deepTools2: a next generation web server for deep-sequencing data analysis. Nucleic Acids Res 44:W160-W165.
  • Kent WJ, Zweig AS, Barber G, Hinrichs AS, Karolchik D. 2010. BigWig and BigBed: enabling browsing of large distributed datasets. Bioinformatics 26:2204-2207.
  • Quinlan AR, Hall IM. 2010. BEDTools: a flexible suite of utilities for comparing genomic features. Bioinformatics 26:841-842.
  • Orlando DA, Chen MW, Brown VE, et al. 2014. Quantitative ChIP-Seq normalization reveals global modulation of the epigenome. Cell Reports 9:1163-1170.
  • Bonhoure N, Bounova G, Bernasconi D, et al. 2014. Quantifying ChIP-seq data: a spiking method providing an internal reference for sample-to-sample normalization. Genome Res 24:1157-1168.
  • Diaz A, Park K, Lim DA, Song JS. 2012. Normalization, bias correction, and peak calling for ChIP-seq. Stat Appl Genet Mol Biol 11:Article 9.
  • coverage-analysis - Per-base depth generation and distribution-vs-mean diagnostics feeding bedGraph tracks
  • bigwig-tracks - Reading, extracting, and writing the bigWig deliverable this skill produces
  • chip-seq/spike-in-normalization - The bench-decided external-reference scaling when a global change makes library-size normalization wrong
  • chip-seq/chipseq-visualization - Render the normalized signal tracks built here
  • atac-seq/footprinting - Consumes high-resolution coverage/bigWig signal over motif sites
  • data-visualization/genome-tracks - Render the bedGraph/bigWig tracks for figures

© GPTomics, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in genome-intervals/bedgraph-handling of GPTomics/bioSkills.

  • SKILL.md
  • examples/bam_to_bigwig.sh
  • examples/bedgraph_operations.py
  • usage-guide.md

Open the folder on GitHubat commit d91ed3d

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in GPTomics/bioSkills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Bio Genome Intervals Bedgraph Handling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bio Genome Intervals Bedgraph Handling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bio Genome Intervals Bedgraph Handling this skillGPTomics/bioSkills1.2k1 repos~5.2kAutomated safety check: PassMIT
Tooluniverse Rnaseq Deseq2wu-yc/LabClaw1.1k2 repos~4.5kAutomated safety check: PassNone
Tooluniverse Metabolomics Analysiswu-yc/LabClaw1.1k2 repos~5.9kAutomated safety check: PassNone
Bio Single Cell PreprocessingFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.4kAutomated safety check: PassNone
Bio De Edger BasicsFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.9kAutomated safety check: PassNone
Bio Spatial Transcriptomics Spatial PreprocessingFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2kAutomated safety check: PassNone

Similar skills

  • Production-ready RNA-seq differential expression analysis using PyDESeq2.

    1.1k GitHub starsUsed in 2 repos~4.5k tokens
    Research & ScienceAuto-check passed
  • Analyze metabolomics data including metabolite identification, quantification, pathway analysis, and metabolic flux.

    1.1k GitHub starsUsed in 2 repos~5.9k tokens
    Research & ScienceAuto-check passed
  • Bio Single Cell Preprocessing

    FreedomIntelligence/OpenClaw-Medical-Skills

    Quality control, filtering, and normalization for single-cell RNA-seq using Seurat (R) and Scanpy (Python).

    3.1k GitHub starsUsed in 1 repo~2.4k tokens
    Research & ScienceAuto-check passed
  • Bio De Edger Basics

    FreedomIntelligence/OpenClaw-Medical-Skills

    Perform differential expression analysis using edgeR in R/Bioconductor.

    3.1k GitHub starsUsed in 1 repo~2.9k tokens
    Research & ScienceAuto-check passed
  • Bio Spatial Transcriptomics Spatial Preprocessing

    FreedomIntelligence/OpenClaw-Medical-Skills

    Quality control, filtering, normalization, and feature selection for spatial transcriptomics data.

    3.1k GitHub starsUsed in 1 repo~2k tokens
    Research & ScienceAuto-check passed
  • Gene Protein Expression Matrix Normalization

    aipoch/medical-research-skills

    A skill your agent uses when normalizing bulk gene or protein expression matrices with log2 transform, z-score standardization, or min-max scaling before downstream visualization or exploratory…

    1.9k GitHub stars~1.5k tokensUpdated 24 days ago
    Research & ScienceAuto-check passed

More from GPTomics/bioSkills

All 559 skills in this repo
  • Bio Alignment Io

    GPTomics/bioSkills

    Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO.

    1.2k GitHub starsUsed in 3 repos~4.9k tokens
    Auto-check passed
  • bioSkills Installer

    GPTomics/bioSkills

    Installs the bioSkills collection of 425 bioinformatics skills in one step, or only chosen categories, so sequencing, RNA-seq, single-cell and variant tasks get specialized help.

    1.2k GitHub starsUsed in 1 repo~789 tokens
    Auto-check passed
  • Bio Write Sequences

    GPTomics/bioSkills

    Write biological sequences to files (FASTA, FASTQ, GenBank, EMBL) using Biopython Bio.SeqIO.

    1.2k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Amplicon Primer Clipping

    GPTomics/bioSkills

    Soft- or hard-clips PCR primer footprints from aligned amplicon BAMs so primer bases stop masquerading as confirmed reference sequence.

    1.2k GitHub starsUsed in 2 repos~2.2k tokens
    Auto-check passed
  • Filters BAM alignments by FLAG bits, mapping quality and regions with samtools view or pysam, with recipes for common keep and drop cases.

    1.2k GitHub starsUsed in 2 repos~3.6k tokens
    Auto-check passed
  • Bio Alignment Indexing

    GPTomics/bioSkills

    Create and use BAI/CSI indices for BAM/CRAM files using samtools and pysam.

    1.2k GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed

Questions about Bio Genome Intervals Bedgraph Handling

What does Bio Genome Intervals Bedgraph Handling do?

Generates, normalizes, and converts bedGraph signal tracks (4-column chrom/start/end/value, 0-based half-open) with bedtools genomecov, deepTools bamCoverage/bamCompare/bigwigCompare, bedtools…. Bio Genome Intervals Bedgraph Handling is an agent skill from GPTomics/bioSkills. Generates, normalizes, and converts bedGraph signal tracks (4-column chrom/start/end/value, 0-based half-open) with bedtools genomecov, deepTools bamCoverage/bamCompare/bigwigCompare, bedtools unionbedg, and UCSC bedGraphToBigWig.

When should I use Bio Genome Intervals Bedgraph Handling?

Bio Genome Intervals Bedgraph Handling fits situations like: normalizing a coverage/signal track from a BAM; comparing tracks across samples; converting bedGraph to a browser-ready bigWig; diagnosing a track that looks plausible but reports wrong heights.

How do I install Bio Genome Intervals Bedgraph Handling in Claude Code?

Run `npx skills add GPTomics/bioSkills --skill bio-genome-intervals-bedgraph-handling -a claude-code`. Or copy the skill folder (genome-intervals/bedgraph-handling in GPTomics/bioSkills) into .claude/skills/bio-genome-intervals-bedgraph-handling in your project. Claude Code loads it when a task matches its description.

How do I install Bio Genome Intervals Bedgraph Handling in Codex?

Run `npx skills add GPTomics/bioSkills --skill bio-genome-intervals-bedgraph-handling -a codex`. Or copy the skill folder (genome-intervals/bedgraph-handling in GPTomics/bioSkills) into .agents/skills/bio-genome-intervals-bedgraph-handling in your project. Codex loads it when a task matches its description.

Can I use Bio Genome Intervals Bedgraph Handling in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GPTomics/bioSkills --skill bio-genome-intervals-bedgraph-handling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bio-genome-intervals-bedgraph-handling, .gemini/skills/bio-genome-intervals-bedgraph-handling, .github/skills/bio-genome-intervals-bedgraph-handling and .opencode/skills/bio-genome-intervals-bedgraph-handling in your project.

What does Bio Genome Intervals Bedgraph Handling need to run?

Going by SKILL.md and its folder, Bio Genome Intervals Bedgraph Handling needs a shell and Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3; A Bash shell.

Does Bio Genome Intervals Bedgraph Handling access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Bio Genome Intervals Bedgraph Handling safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bio Genome Intervals Bedgraph Handling use?

Bio Genome Intervals Bedgraph Handling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bio Genome Intervals Bedgraph Handling use?

About 5.2k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bio Genome Intervals Bedgraph Handling?

Skills that share tags, products or a category with Bio Genome Intervals Bedgraph Handling: Tooluniverse Rnaseq Deseq2 (wu-yc/LabClaw, 1.1k stars), Tooluniverse Metabolomics Analysis (wu-yc/LabClaw, 1.1k stars), Bio Single Cell Preprocessing (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars) and Bio De Edger Basics (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bio Genome Intervals Bedgraph Handling?

GPTomics (a GitHub organization) maintains it in GPTomics/bioSkills, which has 1,218 GitHub stars. The repository holds 559 skills in this directory. The repository was last updated on August 15, 2026.

Source: GPTomics/bioSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.