executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
alignment-ioGuides agents using pysam for SAM/BAM/CRAM AlignmentFile I/O, headers, AlignedSegment editing, fetch/count/coverage, pileup, read flags/tags/CIGAR, stream handling, quality helpers, and coordinate conventions.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task involves SAM, BAM, or CRAM alignment files through pysam.AlignmentFile and pysam.AlignedSegment: opening files, writing headers and reads, random-access fetching, counting coverage, pileup columns, flags, tags, CIGAR handling, streaming stdin/stdout, or quality string conversion.
python sub-skills/alignment-io/scripts/alignment_smoke.py --help and then run the helper with an output directory.AlignmentFile, AlignmentHeader, AlignedSegment, PileupColumn, PileupRead, IndexedReads, qualitystring_to_array, array_to_qualitystring, qualities_to_qualitystring, reverse_complement, and reverse_complement_inplace.../variant-io/SKILL.md.../tabix-fasta/SKILL.md.sort, index, view, or mpileup, use ../command-wrappers/SKILL.md.../troubleshooting-build/SKILL.md.region="chr:start-stop" strings follow samtools 1-based closed-style conventions.with pysam.AlignmentFile(...) as handle: so C-backed file handles close promptly.fetch(until_eof=True) for unindexed sequential scans and for unmapped reads that normal indexed fetch() skips.multiple_iterators=True only when two active iterators must coexist on one file handle; it reopens the file and has a cost.PileupColumn.pileups or helper methods; pileup proxy data becomes invalid after the iterator advances or finishes.AlignedSegment.query_sequence, preserve and restore query_qualities because sequence assignment invalidates qualities.