How cmwendy/samosa_zmw_selector_script works
This repository selects PacBio ZMW reads overlapping genomic-site windows. The principal workflow is a CLI that reads site and chromosome inputs, selects overlapping reads from a BAM, and prints one row per read/site match. BAM access validates or creates an index before fetching. A separate PBS wrapper batches the CLI across BAM files. The wrapper relationships and some operational details are documented in the README; the Python selection and indexing calls are visible in the excerpted source.
Main entry points: zmw_selector_updated.py CLI entry point · run_zmw_selector.sh PBS batch runner
Components 12
Read selection
- CLI entry point
zmw_selector_updated.py - Window selection
zmw_selector_updated.py - BAM iterator
zmw_selector_updated.py - Index validation
zmw_selector_updated.py - Pysam fetch
zmw_selector_updated.py
Batch execution
- PBS batch runner
run_zmw_selector.sh
Other components
- User
- Sites file
- Chromosome list
- Aligned BAM
- Samtools
- TSV on stdout
Connections 13
- User → CLI entry point: runs
README.md - Sites file → CLI entry point: reads
README.md - Chromosome list → CLI entry point: reads
README.md - Aligned BAM → CLI entry point: checks
zmw_selector_updated.py - CLI entry point → Window selection: calls
zmw_selector_updated.py - Window selection → BAM iterator: fetches via
zmw_selector_updated.py - BAM iterator → Index validation: calls
zmw_selector_updated.py - BAM iterator → Pysam fetch: fetches reads
zmw_selector_updated.py - Index validation → Samtools: runs index
zmw_selector_updated.py - Window selection → TSV on stdout: returns rows
README.md - CLI entry point → TSV on stdout: prints rows
zmw_selector_updated.py - User → PBS batch runner: runs batch
README.md - PBS batch runner → CLI entry point: invokes per BAM
README.md