How tprodanov/parascopy works
Parascopy analyzes whole-genome sequencing data in duplicated genomic regions to estimate aggregate and paralog-specific copy number, and can call variants using an existing copy-number analysis. Its documented workflow builds or loads a homology table, calculates background depth, runs copy-number analysis, then optionally calls variants. The graph also preserves documented read pooling, PSV discovery, multiple-alignment, and table-inspection capabilities. Several implementation links are based on the SOURCE INDEX rather than complete excerpts; those links are cited only where the index or README supports them.
Main entry points: entry_point.py Command dispatcher · detect_cn.py Copy-number analysis · genome.py Genome intervals · call_variants.py Variant calling
Components 25
Homology tables
- Preliminary table
src/parascopy/pretable.py - Homology table builder
src/parascopy/combine_table.py - Homology table
- Table viewer
src/parascopy/view.py - Duplication inspection
src/parascopy/examine_dupl.py
Copy number
- Background depth
src/parascopy/depth.py - Read pooling
src/parascopy/pool_reads.py - Copy-number analysis
src/parascopy/detect_cn.py - Model parameters
src/parascopy/inner/model_params.py - Copy-number HMM
src/parascopy/inner/cn_hmm.py - Paralog copy number
src/parascopy/inner/paralog_cn.py - CN results
Variant analysis
- PSV discovery
src/parascopy/psvs.py - Variant calling
src/parascopy/call_variants.py - Variant evidence
src/parascopy/inner/variants.py - Variant pooling
src/parascopy/pool_variants.py - Variant results
- Multiple alignment
src/parascopy/msa.py
Shared genomic engine
- Genome intervals
src/parascopy/inner/genome.py - Duplication model
src/parascopy/inner/duplication.py - Alignment utilities
src/parascopy/inner/alignment.py - CIGAR utilities
src/parascopy/inner/cigar.py - Interval indexing
src/parascopy/inner/itree.py
Other components
- Analyst
- Command dispatcher
src/parascopy/entry_point.py
Connections 45
- Analyst → Command dispatcher: runs commands
README.md - Command dispatcher → Preliminary table: dispatches
src/parascopy/entry_point.py - Command dispatcher → Homology table builder: dispatches
src/parascopy/entry_point.py - Command dispatcher → Background depth: dispatches
src/parascopy/entry_point.py - Command dispatcher → Copy-number analysis: dispatches
src/parascopy/entry_point.py - Command dispatcher → Variant calling: dispatches
src/parascopy/entry_point.py - Command dispatcher → Read pooling: dispatches
src/parascopy/entry_point.py - Command dispatcher → Variant pooling: dispatches
src/parascopy/entry_point.py - Command dispatcher → PSV discovery: dispatches
src/parascopy/entry_point.py - Command dispatcher → Multiple alignment: dispatches
src/parascopy/entry_point.py - Command dispatcher → Table viewer: dispatches
src/parascopy/entry_point.py - Command dispatcher → Duplication inspection: dispatches
src/parascopy/entry_point.py - Preliminary table → Homology table builder: supplies input
README.md - Homology table builder → Homology table: creates
README.md - Homology table → Background depth: guides regions
- Homology table → Copy-number analysis: provides regions
README.md - Homology table → Table viewer: filters or views
src/parascopy/view.py - Homology table → Duplication inspection: examines duplications
- Background depth → Copy-number analysis: provides background
README.md - Read pooling → Copy-number analysis: supplies pooled reads
src/parascopy/detect_cn.py - Copy-number analysis → Model parameters: loads or fits
src/parascopy/detect_cn.py - Copy-number analysis → Copy-number HMM: uses inference
src/parascopy/detect_cn.py - Copy-number analysis → Paralog copy number: calculates copy number
src/parascopy/detect_cn.py - Copy-number analysis → PSV discovery: finds reliable PSVs
README.md - Copy-number analysis → CN results: writes
README.md - Model parameters → Paralog copy number: provides parameters
src/parascopy/inner/model_params.py - Copy-number HMM → Paralog copy number: supports inference
src/parascopy/inner/paralog_cn.py - CN results → Variant calling: anchors calling
README.md - Variant calling → Variant evidence: uses genotype logic
src/parascopy/call_variants.py - Variant calling → Variant results: writes VCF
README.md - Variant pooling → Read pooling: reuses read pooling
src/parascopy/pool_variants.py - Variant pooling → Copy-number analysis: uses CN analysis
src/parascopy/pool_variants.py - Variant pooling → PSV discovery: uses PSV data
src/parascopy/pool_variants.py - Multiple alignment → Homology table: uses duplication table
src/parascopy/msa.py - Preliminary table → Genome intervals: uses reference
src/parascopy/pretable.py - Homology table builder → Genome intervals: uses reference
src/parascopy/combine_table.py - Background depth → Genome intervals: uses intervals
src/parascopy/depth.py - Copy-number analysis → Genome intervals: uses intervals
src/parascopy/detect_cn.py - Variant calling → Genome intervals: uses reference
src/parascopy/call_variants.py - Genome intervals → Duplication model: defines coordinates
src/parascopy/inner/duplication.py - Duplication model → Alignment utilities: aligns reads
src/parascopy/inner/duplication.py - Alignment utilities → CIGAR utilities: uses operations
src/parascopy/inner/alignment.py - Duplication model → CIGAR utilities: uses operations
src/parascopy/inner/duplication.py - Variant evidence → Interval indexing: indexes positions
src/parascopy/inner/variants.py - Paralog copy number → Interval indexing: indexes regions
src/parascopy/inner/paralog_cn.py