GenomeWideSignalBatchChecker

Genome-Wide Signal Batch

Liquid Biopsy жидкостная биопсия cfDNA ctDNA CTC exosomes NGS qPCR
Open selection

Utility description: Genome-Wide Signal Batch

Genome-Wide Signal Batch Checker — Batch Effect Control in Genome-Wide Data

ℹ️  Utility performs systematic batch effect assessment according to ENCODE, IHEC standards and reproducibility guidelines:
     • PCA-Batch Correlation: Coefficient of determination (R²) between principal components and batch variable.
     • Variance Decomposition: Ratio of inter-batch to intra-batch variance as measure of technical noise dominance.
     • Outlier Detection: Identification of samples deviating from their batch or forming separate clusters.
     • Confounding Check: Detection of situations where batch fully or partially overlaps with biological variable.
     • Actionable Classification: NO_BATCH_EFFECT / MINOR_EFFECT / SEVERE_EFFECT with specific recommendations.

⚠️  IMPORTANT: 
     • PC1-Batch R² > 0.15 indicates significant batch effect requiring correction.
     • Batch-phenotype confounding CANNOT be corrected statistically — experiment redesign required.
     • Inter-batch variance >20% means technical variation exceeds biological variation.
     • Batch effect correction (ComBat, SVA, RUV) should be applied ONLY after effect confirmation.

Usage:
  GenomeWideSignalBatchChecker.exe                            → demo mode (console output)
  GenomeWideSignalBatchChecker.exe input.csv output.json      → evaluate your data

Input format:
StudyID,DataType,BatchID,SampleCount_InBatch,PC1_VarianceExplained_Percent,PC2_VarianceExplained_Percent,PC1_BatchCorrelation_R2,MaxAcceptable_PC1_BatchR2,InterBatchVariance_Percent,MaxInterBatchVariance_Percent,IntraBatchCV_Percent,OutlierSampleCount,TotalSamplesInStudy,BatchConfoundedWithPhenotype,ProcessingDate,InstrumentID,OperatorID_Source

Example:
  GWAS-01,SNPArray,BATCH-A,120,8.2,3.1,0.04,0.15,6.5,20,4.2,2,360,false,2026-01-15,Illumina-iScan,OP-01

📍 Scope of Application (Usage Where):
     • GWAS/EWAS: Mandatory QC before association analysis.
     • Multi-Center Studies: Harmonization of data from different sources.
     • Epigenomic Consortia (IHEC, ENCODE): Meta-analysis standardization.
     • Data Publication: Requirement of most journals for genome-wide studies.

— WHY IS THIS NEEDED?
Batch effect is the most frequent cause of irreproducibility in genomics.
False associations caused by technical artifacts are published annually and undermine trust in science.
Automated verification allows problem detection BEFORE expensive analysis and publication.
This is fundamental scientific integrity and patient safety requirement in translational research.

⚠️  CRITICAL:
• PC1-Batch R² ≤ 0.15: Significance threshold for most genome-wide data.
• Inter-Batch Variance ≤ 20%: Exceedance = technical noise dominates.
• Confounding = SEVERE: Statistical correction impossible without biological signal loss.
• Outliers < 5%: High outlier percentage indicates systemic batch issue.
• Documentation: ALL batch variables must be recorded in metadata.

Key features:
• Five-parameter batch effect assessment
• Automatic confounding detection
• Study-level aggregation (not per individual batch)
• Classification with actionable recommendations
• Compliance with ENCODE/IHEC standards

Critical parameters:
• PC1-Batch R²: ≤ 0.15
• Inter-Batch Variance: ≤ 20%
• Outlier Rate: < 5%
• Batch-Phenotype Confounding: Absent
• Number of Batches: > 1

💡 Usage tips:
1. Experimental Design: Randomize samples across batches; never group cases/controls into separate batches.
2. Metadata: Record ALL technical variables (date, instrument, operator, reagent lot).
3. Reference Samples: Include common control samples in each batch for direct drift assessment.
4. Correction: Apply ComBat/SVA only upon confirmed effect; always verify correction result visually.
5. Publication: Provide PCA plots before and after correction as supplementary material.

⚠️ Note: This utility assesses presence and severity of batch effect. It does not perform correction itself — use specialized tools (ComBat, sva, RUVSeq) for that. The utility determines WHEN and WHICH correction to apply.

input.csv

StudyID,DataType,BatchID,SampleCount_InBatch,PC1_VarianceExplained_Percent,PC2_VarianceExplained_Percent,PC1_BatchCorrelation_R2,MaxAcceptable_PC1_BatchR2,InterBatchVariance_Percent,MaxInterBatchVariance_Percent,IntraBatchCV_Percent,OutlierSampleCount,TotalSamplesInStudy,BatchConfoundedWithPhenotype,ProcessingDate,InstrumentID,OperatorID_Source
GWAS-2026-01,SNPArray,BATCH-A,120,8.2,3.1,0.04,0.15,6.5,20.0,4.2,2,360,false,2026-01-15,Illumina-iScan,OP-01
GWAS-2026-01,SNPArray,BATCH-B,120,8.2,3.1,0.05,0.15,6.5,20.0,3.8,1,360,false,2026-02-10,Illumina-iScan,OP-02
GWAS-2026-01,SNPArray,BATCH-C,120,8.2,3.1,0.03,0.15,6.5,20.0,4.5,3,360,false,2026-03-05,Illumina-iScan,OP-01
METHYL-2026-02,MethylationArray,BATCH-X,48,35.6,12.4,0.68,0.15,42.0,20.0,8.5,7,96,true,2026-01-20,Illumina-iScan,OP-03
METHYL-2026-02,MethylationArray,BATCH-Y,48,35.6,12.4,0.72,0.15,42.0,20.0,9.1,5,96,true,2026-04-01,Illumina-iScan,OP-04

URS & FS — User Requirements and Functional Specification

This document describes the controlled interface and behaviour of GenomeWideSignalBatchChecker for Genome-Wide Signal Batch Checker.

Domain limits and critical parameters

Key fragments from the source description are shown below. Before production use, limits must be verified against the approved specification, registration dossier and local SOPs.
  • • PC1-Batch R² > 0.15 indicates significant batch effect requiring correction.
  • • Inter-batch variance >20% means technical variation exceeds biological variation.
  • ⚠️ CRITICAL:
  • • PC1-Batch R² ≤ 0.15: Significance threshold for most genome-wide data.
  • • Inter-Batch Variance ≤ 20%: Exceedance = technical noise dominates.
  • • Outliers < 5%: High outlier percentage indicates systemic batch issue.
  • • Documentation: ALL batch variables must be recorded in metadata.
  • Critical parameters:
  • • PC1-Batch R²: ≤ 0.15
  • • Inter-Batch Variance: ≤ 20%
  • • Outlier Rate: < 5%
  • • Number of Batches: > 1
  • ⚠️ Note: This utility assesses presence and severity of batch effect. It does not perform correction itself — use specialized tools (ComBat, sva, RUVSeq) for that. The utility determines WHEN and WHICH correction to apply.

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept an input.csv file for Genome-Wide Signal Batch Checker with headers defined in the data contract.HighThe file is processed without manual header editing.
URS-002The utility shall perform deterministic QC evaluation without machine learning and without probabilistic conformance decisions.HighIdentical input data, rule version and configuration produce reproducible results.
URS-003The utility shall validate mandatory fields, data types, ranges, units and domain plausibility.HighSchema, conversion and range errors are explicitly reported.
URS-004The utility shall apply domain limits and rules from the description, approved specification, registration dossier and local SOPs.HighEach check has PASS/WARNING/FAIL and a clear message.
URS-005The utility shall generate output.json with machine-readable results, source values, warnings, failures and critical findings.HighJSON is suitable for LIMS/ELN/MES integration and QA/QC review.
URS-006The utility shall preserve traceability between batch/sample, input file, applied rules and final status.HighOutput contains identifiers, checked parameters and audit metadata.
URS-007The documentation shall support IQ/OQ/PQ, CSV/CSA and review by internal QA or inspectors.MediumURS, FS, input/output contract and test scenarios are supplied with the utility.
URS-008The utility shall be used as a QC decision-support tool and not as a substitute for approved specifications and QA/QP release decision.MediumDocumentation states change control and limit-verification expectations.

input.csv contract

#FieldTypeSamplePurpose
1StudyIDstring / controlled vocabularyGWAS-2026-01Controlled input parameter for deterministic QC rules.
2DataTypestring / controlled vocabularySNPArrayControlled input parameter for deterministic QC rules.
3BatchIDstring / controlled vocabularyBATCH-ABatch or lot identifier used for traceability.
4SampleCount_InBatchinteger / decimal120Batch or lot identifier used for traceability.
5PC1_VarianceExplained_Percentdecimal8.2Controlled input parameter for deterministic QC rules.
6PC2_VarianceExplained_Percentdecimal3.1Controlled input parameter for deterministic QC rules.
7PC1_BatchCorrelation_R2string / controlled vocabulary0.04Batch or lot identifier used for traceability.
8MaxAcceptable_PC1_BatchR2string / controlled vocabulary0.15Batch or lot identifier used for traceability.
9InterBatchVariance_Percentdecimal6.5Batch or lot identifier used for traceability.
10MaxInterBatchVariance_Percentdecimal20.0Batch or lot identifier used for traceability.
11IntraBatchCV_Percentdecimal4.2Batch or lot identifier used for traceability.
12OutlierSampleCountinteger / decimal2Sample or laboratory specimen identifier.
13TotalSamplesInStudystring / controlled vocabulary360Sample or laboratory specimen identifier.
14BatchConfoundedWithPhenotypestring / controlled vocabularyfalseBatch or lot identifier used for traceability.
15ProcessingDatestring / controlled vocabulary2026-01-15Controlled input parameter for deterministic QC rules.
16InstrumentIDstring / controlled vocabularyIllumina-iScanControlled input parameter for deterministic QC rules.
17OperatorID_Sourcestring / controlled vocabularyOP-01Operator/analyst identifier for audit trail context.
StudyID,DataType,BatchID,SampleCount_InBatch,PC1_VarianceExplained_Percent,PC2_VarianceExplained_Percent,PC1_BatchCorrelation_R2,MaxAcceptable_PC1_BatchR2,InterBatchVariance_Percent,MaxInterBatchVariance_Percent,IntraBatchCV_Percent,OutlierSampleCount,TotalSamplesInStudy,BatchConfoundedWithPhenotype,ProcessingDate,InstrumentID,OperatorID_Source
GWAS-2026-01,SNPArray,BATCH-A,120,8.2,3.1,0.04,0.15,6.5,20.0,4.2,2,360,false,2026-01-15,Illumina-iScan,OP-01
GWAS-2026-01,SNPArray,BATCH-B,120,8.2,3.1,0.05,0.15,6.5,20.0,3.8,1,360,false,2026-02-10,Illumina-iScan,OP-02
GWAS-2026-01,SNPArray,BATCH-C,120,8.2,3.1,0.03,0.15,6.5,20.0,4.5,3,360,false,2026-03-05,Illumina-iScan,OP-01

Input validation rules

IDFieldRuleCriticality
VR-001StudyIDThe field shall match an approved dictionary or accepted string representation.High
VR-002DataTypeThe field shall match an approved dictionary or accepted string representation.High
VR-003BatchIDThe field shall match an approved dictionary or accepted string representation.High
VR-004SampleCount_InBatchThe field shall match an approved dictionary or accepted string representation.Medium
VR-005PC1_VarianceExplained_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-006PC2_VarianceExplained_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-007PC1_BatchCorrelation_R2The field shall match an approved dictionary or accepted string representation.Medium
VR-008MaxAcceptable_PC1_BatchR2The field shall match an approved dictionary or accepted string representation.Medium
VR-009InterBatchVariance_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-010MaxInterBatchVariance_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-011IntraBatchCV_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-012OutlierSampleCountThe field shall match an approved dictionary or accepted string representation.Medium
VR-013TotalSamplesInStudyThe field shall match an approved dictionary or accepted string representation.Medium
VR-014BatchConfoundedWithPhenotypeThe field shall match an approved dictionary or accepted string representation.Medium
VR-015ProcessingDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-016InstrumentIDThe field shall match an approved dictionary or accepted string representation.Medium
VR-017OperatorID_SourceThe field shall match an approved dictionary or accepted string representation.Medium

FS — Functional Specification

IDFunctionImplementation
FS-001CLI executionSupport execution modes: demo mode without arguments and production mode input.csv output.json.
FS-002CSV importRead input.csv in UTF-8/CSV-compatible format and validate header and expected columns.
FS-003Schema validationCheck mandatory fields, column count, unknown key fields and empty mandatory values.
FS-004Type conversionConvert numeric, flag and text values; invalid format is recorded as a row-level error.
FS-005Domain rule engineApply rules for Genome-Wide Signal Batch Checker, including critical limits from the description and approved specification.
FS-006Status aggregationProduce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance.
FS-007JSON exportWrite output.json with detailed checks, source values, warnings, failures and critical findings.
FS-008Audit supportKeep result structure suitable for review, deviation investigation and calculation reproduction.
FS-009Integration contractSupport the scenario LIMS/ELN/MES → input.csv → utility → output.json → portal/admin review.
FS-010Error handlingReturn explicit messages for missing file, empty CSV, invalid schema, output write failure and invalid format.

Example output.json

{
  "utilityId": "genomewidesignalbatchchecker",
  "utilityFolder": "GenomeWideSignalBatchChecker",
  "package": "LiquidBiopsy",
  "overallStatus": "PASS|WARNING|FAIL",
  "sourceFile": "input.csv",
  "processedAtUtc": "2026-06-10T00:00:00Z",
  "checks": [
    {
      "parameter": "StudyID",
      "value": "GWAS-2026-01",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-001"
    },
    {
      "parameter": "DataType",
      "value": "SNPArray",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-002"
    },
    {
      "parameter": "BatchID",
      "value": "BATCH-A",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-003"
    },
    {
      "parameter": "SampleCount_InBatch",
      "value": "120",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-004"
    },
    {
      "parameter": "PC1_VarianceExplained_Percent",
      "value": "8.2",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-005"
    },
    {
      "parameter": "PC2_VarianceExplained_Percent",
      "value": "3.1",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-006"
    },
    {
      "parameter": "PC1_BatchCorrelation_R2",
      "value": "0.04",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-007"
    },
    {
      "parameter": "MaxAcceptable_PC1_BatchR2",
      "value": "0.15",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-008"
    },
    {
      "parameter": "InterBatchVariance_Percent",
      "value": "6.5",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-009"
    },
    {
      "parameter": "MaxInterBatchVariance_Percent",
      "value": "20.0",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-010"
    },
    {
      "parameter": "IntraBatchCV_Percent",
      "value": "4.2",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-011"
    },
    {
      "parameter": "OutlierSampleCount",
      "value": "2",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-012"
    }
  ],
  "criticalFindings": [],
  "warnings": [],
  "audit": {
    "inputHash": "sha256:<calculated at runtime>",
    "rulesVersion": "<utility executable version>",
    "documentation": "GenomeWideSignalBatchChecker.documentation.html"
  }
}

Traceability matrix

URSFSTestEvidence
URS-001FS-001, FS-002OQ-001Verify execution and import of valid input.csv.
URS-002FS-005, FS-006OQ-004Repeat the same dataset and compare output.json.
URS-003FS-003, FS-004, FS-010OQ-002, OQ-003Verify missing columns and invalid types.
URS-004FS-005, FS-006OQ-004, PQ-001Verify critical deviations on real/boundary data.
URS-005FS-007, FS-009OQ-005Verify JSON schema and downstream-system suitability.
URS-006FS-008OQ-006Verify identifiers and audit metadata.
URS-007FS-008, FS-010IQ-001, OQ-007Verify documentation completeness and control evidence.
URS-008FS-005, FS-008PQ-002Verify review workflow and no replacement of QA decision.

IQ/OQ/PQ test scenarios

IDScenarioExpected result
IQ-001Verify executable, input.csv, documentation and checksum availability.Delivery set is complete; version is recorded.
OQ-001Valid sample row from input.csv.PASS or acceptable WARNING according to rules.
OQ-002Remove a mandatory CSV column.Schema error or FAIL with missing-column reference.
OQ-003Place a non-numeric value into a numeric field.Type-conversion error with row/field reference.
OQ-004Set a critical parameter outside the limit.FAIL and critical finding.
OQ-005Verify output.json structure.All mandatory sections are present and JSON is valid.
OQ-006Verify batch/sample traceability.Input and result identifiers match.
PQ-001Verify 3–5 real user batches/samples.Result is confirmed by QC/QA review.
PQ-002Verify deviation workflow and manual QA decision.Utility supports review but does not replace approved decision.

QA/QC and change control

  • Do not rename columns without updating validator, documentation and test set.
  • Retain input.csv, output.json, executable version and checksum.
  • Before production use, perform IQ/OQ/PQ or equivalent CSV/CSA verification.
  • Critical limits shall be verified against the approved specification, registration dossier and local SOPs.
  • The utility provides structured QC decision support; final release decision remains with QA/QP and approved procedures.

Included in packages

Liquid Biopsy QC Suite

QC and pre-analytical control package for liquid biopsy workflows: cfDNA/ctDNA, CTC, EV/exosomes, methylation, NGS/qPCR/ddPCR, sample quality, contamination, sensitivity and reporting checks.

Open