Clinical Chemistry

B-311 Automating X-STR Analysis: A Python-Based Pipeline for Forensic Genetic Databases

Gustavo Barra, Andressa Vieira, Fabian Hurtado, Marco Oliveira, Claudia Sousa, Aline Belmok, Lucas Silva, Lara Velasco,

Key points

From the paper's conclusion
  • Conclusion We developed a reproducible, scalable pipeline for Argus X-12 X-STR data curation and forensic-parameter computation that integrates automated quality control, INESP/off-ladder standardization, and structured export for forensic use.

Abstract

Background X-chromosome short tandem repeat (X-STR) markers are critical in complex kinship investigations, including deficiency paternity, half-sibling testing, and cases involving female individuals. The Investigator Argus X-12 kit is widely used for these applications; however, building reliable population databases requires scalable curation, including removal of duplicated profiles, standardized handling of non-interpretable alleles (INESP) and off-ladder events, and reproducible computation of forensic parameters. Manual curation becomes time-consuming and inconsistent as datasets grow. The aim of this study was to develop and implement a Python-based pipeline to automate Argus X-12 database curation and forensic-parameter computation with full traceability and reproducibility. Methods A scalable workflow was implemented in Python (Jupyter Notebooks), using Pandas for multi-file ingestion, wide-to-long restructuring, filtering, grouping, and allele-frequency calculations. File handling and batch processing were automated using the os library. Custom regular expressions (re) were designed to detect and standardize non-interpretable allele notations (INESP) and off-ladder calls despite spelling/case/format variability. Duplicate profiles were identified deterministically by full-profile matching across all Argus X-12 loci and removed prior to frequency estimation to prevent frequency inflation. Cleaned datasets were stratified by Brazilian macroregion (North, Northeast, Central-West, Southeast, South) and by federative unit (state/DF) as recorded in the source data, enabling region-specific allele frequency and linkage-group haplotype estimation. Marker-level expected heterozygosity (He), observed heterozygosity (Ho), and Power of Discrimination (PD) were computed with sex-stratified reporting when applicable. Outputs were exported to forensic-ready formats (CSV/Excel), and audit logs captured all excluded duplicates and all flagged non-interpretable/off-ladder events. Results The pipeline processed 1,215 X-STR profiles (1,048 female; 167 male). Macroregional distribution was: Central-West 486 (40.00%), South 257 (21.15%), Southeast 202 (16.63%), North 184 (15.14%), and Northeast 86 (7.08%), with major contributions from DF (n=290), PR (n=177), and SP (n=142). A total of 147 INESP events were automatically detected and cataloged, most frequently at DXS10148 (n=67) and DXS10146 (n=34), and retained in structured logs to ensure auditability without contaminating allele-frequency estimates. Marker-level diversity metrics were consistently high: He ranged from 0.6806 to 0.9431 and Ho from 0.6584 to 0.9198, with the highest values at DXS10135 (He 0.9431; Ho 0.9198). Female PD ranged from 0.938 to 0.9971, peaking at DXS10135 (PD Female 0.9971), supporting strong discriminatory capacity across loci with automated, reproducible computation. Conclusion We developed a reproducible, scalable pipeline for Argus X-12 X-STR data curation and forensic-parameter computation that integrates automated quality control, INESP/off-ladder standardization, and structured export for forensic use. By enforcing standardized rules and generating marker-level heterozygosity and PD outputs with audit logs, the approach improves population database reliability and supports transparent integration of population parameters into routine kinship interpretation.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers