Agent skill · Data & Analytics

bio-pileup-generation

Generate pileup data for variant calling using samtools mpileup and pysam. Use when preparing data for variant calling, analyzing per-position read data, or calculating allele frequencies.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill pileup-generation --agent claude-code

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

Facts
Files in the skill folder: 3
SKILL.md size: 14 KB
Bundled scripts: yes
Path: skills/bioskills/pileup-generation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

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

From the SKILL.md

## Version Compatibility Reference examples tested with: bcftools 1.19+, pysam 0.22+, samtools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - CLI: `<tool> --version` then `<tool> --help` to confirm flags If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Pileup Generation Generate pileup data for variant calling and position-level analysis. **"Generate pileup from BAM"** → Produce per-position read summaries showing depth, bases, and qualities. - CLI: `samtools mpileup -f ref.fa input.bam` - Python: `bam.pileup(chrom, start, end)` (pysam) **"Count alleles at a position"** → Extract per-base read support at a specific genomic coordinate. - Python: iterate `pileup_column.pileups` and count bases (pysam) ## What is Pileup? Pileup shows all reads covering each position in the reference, used for: - Variant calling (with bcftools) - Coverage analysis - Allele frequency calculation - SNP/indel detection ## samtools mpileup vs bcftools mpileup (Deprecation) `sa

What's inside
Steps it walks through
  1. Version Compatibility
  2. What is Pileup?
  3. samtools mpileup vs bcftools mpileup (Deprecation)
  4. Basic Pileup
  5. Pileup Specific Region
  6. Regions from BED
  7. Multiple BAM Files
  8. Output Format
  9. Read Bases Encoding
  10. Quality Filtering Options
  11. Minimum Mapping Quality
  12. Minimum Base Quality
  13. Combined Quality Filters
  14. Maximum Depth (Critical Trap)
Ships with 2 files
  • examples/allele_counts.py
  • usage-guide.md
Commands it runs
samtools mpileup -f reference.fa input.bam > pileup.txt
samtools mpileup -f reference.fa -r chr1:1000000-2000000 input.bam
samtools mpileup -f reference.fa -l targets.bed input.bam
samtools mpileup -f reference.fa sample1.bam sample2.bam sample3.bam > pileup.txt
samtools mpileup -f reference.fa -q 20 input.bam
samtools mpileup -f reference.fa -Q 20 input.bam
samtools mpileup -f reference.fa -q 20 -Q 20 input.bam
samtools mpileup default -d 8000 silently truncates targeted / mt-DNA / amplicon / UMI-deduped data
bcftools mpileup default -d 250 is far lower; both must be set explicitly when piping
samtools mpileup -f reference.fa -d 0 input.bam        # no cap
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-pileup-generation skill do?

Generate pileup data for variant calling using samtools mpileup and pysam. Use when preparing data for variant calling, analyzing per-position read data, or calculating allele frequencies.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill pileup-generation --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 BioTender-max/awesome-bio-agent-skills, a repository with 135 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