Step	Program	Version	Options that differ from the defaults	Why
Read trimming	fastp	fastp 1.4.0	-q 20 -l 50 --detect_adapter_for_pe	Base-quality threshold 20 and minimum length 50 for 90-bp reads; adapters detected from pair overlap because the adapter sequences were not recorded with the run
Mitochondrial read recruitment	BWA-MEM	BWA 0.7.19-r1273; samtools 1.11	-p (interleaved input); pairs kept if either mate mapped; secondary/supplementary records removed (samtools -F 0x900)	Keeping pairs with one mapped mate retains reads across the control region and the ends of the linear references; panel of three S. brasiliensis mitogenomes plus Brycon orbignyanus so that recruitment does not favour one lineage
De novo assembly	GetOrganelle	GetOrganelle 1.7.7.1	-F animal_mt -k 21,33,45,55,65,75 -R 15	Animal mitochondrial database; k-mer ladder capped at 75 for 90-bp reads; 15 extension rounds
De novo assembly	NOVOPlasty	NOVOPlasty 4.3.5	Type mito; genome range 15,000-25,000; k-mer 39; read length 90; insert size 500 (auto); seed: outgroup (Brycon orbignyanus) COI	Seed from another genus so that no S. brasiliensis lineage guides the assembly; k-mer 39 as recommended for short reads
Seed experiment	MITObim with MIRA 4.0.2	MITObim 1.9.1; MIRA 4.0.2	--quick <seed> --clean --pair/--paired; read pool of 30,000 pairs (seqkit sample -s 11)	Reproduces the original method of KY825190.1; the pool is subsampled because MIRA slows down at about 2,900x; fixed random seed (11) so that all three seeds see the same reads
Short-read evidence	BWA-MEM, samtools depth	BWA 0.7.19-r1273; samtools 1.11	samtools depth -a at -Q 0 and -Q 20; low-support run = depth below 20% of the median	Depth at mapping quality 0 and 20 separates true lack of reads from multi-mapping in the repeat array
Long-read evidence	minimap2	minimap2 2.28-r1209	-x map-hifi --secondary=no; reads aligned over at least 80% of their length	HiFi preset; only near full-length mitochondrial molecules are classified for gene order and control-region length
Assembly comparison	minimap2, MAFFT	minimap2 2.28-r1209; MAFFT 7.526	minimap2 -x asm20 -c --secondary=no; mafft --auto	asm20 tolerates the 6% divergence between lineages
Pangenome graph	Minigraph-Cactus	Minigraph-Cactus 3.1.0	--reference VGP --gfa full --gbz full --vcf full --odgi full	"VGP mitogenome as backbone because it is the only one supported by long reads; ""full"" outputs keep every allele (no clipping or frequency filter), needed with five genomes"
Read mapping to the graph	vg giraffe	vg 1.70.0	-o gaf --named-coordinates (short reads); -b hifi (HiFi reads)	GAF output with segment names so that read support can be counted per graph segment
Public records, linear	minimap2 (mappy)	mappy 2.31 (minimap2 Python binding); Biopython 1.88	preset map-ont; identity = matches / alignment length; assignment margin 2 percentage points; records up to 6 kb	map-ont tolerates the 6-7% divergence of a record mapped to the other lineage, so both identities can be measured; 2 points is far below the smallest observed margin (5.4)
Public records, graph	vg map	vg 1.70.0	vg autoindex --workflow map; path membership read from the indexed graph (vg convert -f)	vg splits nodes longer than 32 bp when indexing, so node identifiers must come from the indexed graph
Marker alignments	MAFFT	MAFFT 7.526	--auto --adjustdirection; columns kept if covered by at least 90% of sequences	Records are deposited in either orientation; trimming removes ragged ends of amplicons of different length
COI network	minimap2 (mappy), R (ape, igraph, ggplot2, ggforce)	mappy 2.31; R 4.3.3 (ape 5.8.1, igraph 2.3.4, ggplot2 4.0.4, ggforce 0.6.0)	mappy k=11, w=5; columns covered by at least 95% of specimens (483 bp); single linkage at 1% K2P	Short k-mer and window to place barcode fragments on the COI gene; 1% is close to the 1.1% barcode threshold published for Salminus
Nuclear genes	minimap2, samtools	minimap2 2.28-r1209; samtools 1.11	minimap2 -ax sr; proper pairs, mapping quality >= 20, edit distance <= 4; mpileup -B -Q 20 -q 20; heterozygous if minor allele >= 25% at depth >= 8	Strict filters because RAG1 and RAG2 are adjacent and overlap in the extracted windows; reads in the overlap map ambiguously and are excluded by mapping quality
Whole-mitogenome distances	MAFFT	MAFFT 7.526	--auto; all genomes rotated to start at tRNA-Phe; K2P in 60-column windows	Same start so that the control region is not split; window size after Santos et al. 2021
Map (Fig. 2)	R (sf, ggplot2, ggrepel, rnaturalearthdata, ggspatial)	R 4.3.3 (sf 1.1.3, ggplot2 4.0.4, ggrepel 0.9.8, rnaturalearthdata 1.0.0, ggspatial 1.1.11)	Lambert azimuthal equal-area projection centred on 26 S, 54 W; HydroRIVERS flow order <= 4; pie area proportional to specimens	Equal-area projection so that pie sizes are comparable across the map; only the main rivers are drawn for legibility
Fig. 1	Python (matplotlib)	Python 3.11.18 (matplotlib 3.11.2)	Graph drawn as segments per genome in topological order; depth of the 300-bp junction extension folded back; depth on the corrected sequence taken from the GetOrganelle reassembly	The graph is acyclic with no reversed steps, so a linear layout is faithful; the reassembly is KY825190.2 rotated by 7 bp with one TA unit fewer
Workflow and data retrieval	Snakemake; SRA Toolkit; EDirect; seqkit; seqtk; Biopython	Snakemake 9.17.3 (pipeline run, 19 November 2026) and 9.22.0 (later steps); SRA Toolkit 3.4.1; EDirect 26.0; seqkit 2.14.0; seqtk 1.5-r133; Biopython 1.88; Python 3.11.18	none	Workflow manager, read download, GenBank queries, sequence handling
