How enormandeau/snplift works
SNPLift is a command-line workflow for transferring marker coordinates from an old reference genome to a new one, retaining other input columns and optionally correcting IDs or alleles. The principal path extracts source positions and flanking sequences, maps them to the new genome, derives and scores alignment features, uses neighboring markers to resolve marginal mappings, then rewrites the input file. The README documents these stages, but the main shell orchestrator and several scripts were not excerpted, so stage links cite the README; optional visualization branches are shown separately.
Main entry points: snplift Workflow runner · 07_correspondence.py Resolve correspondence · 02_fasta_extract_flanking_regions.py Extract flanks · 03_map_reads.sh Map sequences
Components 16
Inputs and setup
- Run configuration
02_infos/snplift_config.sh - Marker input
- Old genome
- New genome
- Workflow runner
snplift
Mapping and scoring
- Extract positions
01_scripts/01_extract_positions.sh - Extract flanks
01_scripts/02_fasta_extract_flanking_regions.py - Map sequences
01_scripts/03_map_reads.sh - Alignment features
01_scripts/04_extract_features_from_alignments.py - Score markers
01_scripts/06_score_markers.py - Resolve correspondence
01_scripts/07_correspondence.py
Coordinate transfer
- Transferred input
01_scripts/08_replace_coordinates_in_vcf.py
Visualization
- Prepare plot data
01_scripts/09_prepare_data_for_figure.py - Feature visualization
01_scripts/05_explore_features.R - Collinearity plot
01_scripts/10_plot_transfered_positions.R
Other components
- Analyst
Connections 18
- Analyst → Workflow runner: launches
README.md - Run configuration → Workflow runner: configures
README.md - Marker input → Workflow runner: supplies data
README.md - Old genome → Workflow runner: supplies reference
README.md - New genome → Workflow runner: supplies target
README.md - Workflow runner → Extract positions: extracts coordinates
README.md - Extract positions → Extract flanks: selects loci
README.md - Old genome → Extract flanks: provides sequence
README.md - Extract flanks → Map sequences: supplies flanks
README.md - New genome → Map sequences: mapping target
README.md - Map sequences → Alignment features: produces alignments
README.md - Alignment features → Score markers: supplies features
README.md - Score markers → Resolve correspondence: supplies scores
README.md - Resolve correspondence → Transferred input: supplies mappings
README.md - Marker input → Transferred input: coordinates updated
README.md - Workflow runner → Collinearity plot: optionally plots
README.md - Resolve correspondence → Prepare plot data: prepares positions
README.md - Workflow runner → Feature visualization: optionally visualizes
README.md