Tutorials › High-Dimensional Genomic Data Analysis › Resolving Sex-Record Discordance

Variant-Level and Sample-Level Quality Control · Tutorial 34 of 795

Resolving Sex-Record Discordance

Learn to distinguish a candidate record–genotype discrepancy from an ambiguous X/Y pattern, and document review without treating genotype calls as a definitive identity or silently altering records.

Intermediate 11 min read

What You'll Learn

  • Define an assay-specific rule for comparing a recorded category with X- and Y-chromosome patterns.
  • Calculate illustrative X heterozygosity and Y-marker support measures from sample data.
  • Distinguish candidate discrepancies from mixed or indeterminate patterns.
  • Apply staged checks before deciding what follow-up is warranted.
  • Preserve the original recorded value and document any approved correction separately.
  • Recognize why unusual X/Y combinations should not be forced into a binary conclusion.

Why a Difference Is a Review Flag, Not a Verdict

A sample-level sex check compares a recorded value with patterns in X- and Y-chromosome genotype data. Its purpose is to identify samples for careful review, not to determine a person’s gender identity or to establish a definitive biological description from a small set of markers. The recorded field might represent an administrative value, a value entered at recruitment, or another study-specific concept. Before comparing it with genotype patterns, the analyst must know what the field means and which values it permits.

The earlier material on X-chromosome dosage and Y-chromosome calls provides useful signals, but the signals are not interchangeable. An X pattern is evidence about genotype dosage at the assayed X-chromosome loci; Y-marker calls are evidence that the assayed Y-specific markers were detected. Neither signal alone licenses a universal mapping from genotype to a recorded M or F value. The comparison therefore needs an explicit, assay-appropriate rule, as well as a category for patterns that do not fit the ordinary reference patterns.

Definition: A record–genotype review flag is a prompt to investigate a difference between a sample’s recorded category and its observed X/Y genotype pattern. It is not, by itself, proof that the record is wrong, proof of a sample mix-up, or a basis for silently changing metadata.

Set the Comparison Rule Before Reviewing Samples

For an illustrative workflow, suppose a study has a documented binary field with values M and F, and the assay has been calibrated using high-quality samples whose records have been independently checked. For each sample, calculate the X-chromosome heterozygosity rate \(H_X\), defined here as the number of called heterozygous genotypes at selected non-pseudoautosomal X loci divided by the number of eligible called genotypes at those loci. Also summarize Y-marker support using a platform-validated set of Y-specific markers. The exact markers, call-rate requirements, and thresholds must be chosen for the platform and study; the numerical cutoffs below are illustrative, not universal standards.

Suppose calibration supports the following descriptive categories: an X1-like pattern has \(H_X \leq 0.02\), an X2-like pattern has \(H_X \geq 0.10\), and values between them are intermediate. Call Y support positive only if at least 80% of the required, callable Y markers meet the platform’s validated positive-call rule, with the minimum required number of markers also passing. Otherwise record Y support as negative, missing, or failed quality control as appropriate. These thresholds classify observed patterns; they do not establish a person’s identity or explain why a pattern occurred.

The comparison rule in this example treats X1-like with positive Y support as an ordinary M-associated pattern, and X2-like with negative Y support as an ordinary F-associated pattern, provided sample and marker quality pass. It treats X2-like with positive Y support, X1-like with negative Y support, intermediate X, and failed or insufficient Y data as mixed or indeterminate for this comparison. In particular, X2-like plus Y-positive is not automatically inconsistent with a recorded M value. It is an atypical combination under this simple reference scheme and should be reported as such, not converted into a mismatch conclusion. A study may use a more specific validated interpretation, but it must state that rule in advance and preserve an ambiguous category where the evidence does not support a clear comparison.

Observed pattern, after QCHow this illustrative rule treats itComparison with recorded value
X1-like; Y-positiveOrdinary M-associated patternM is pattern-consistent; F is a candidate discrepancy for review
X2-like; Y-negativeOrdinary F-associated patternF is pattern-consistent; M is a candidate discrepancy for review
X2-like; Y-positiveMixed / atypicalDo not call a discrepancy from this combination alone
X1-like; Y-negative, intermediate X, or inadequate dataIndeterminate under this ruleDo not force a binary comparison; investigate data and context

“Candidate discrepancy” is deliberately narrower than “confirmed error.” It means the pattern meets a predeclared comparison rule for an ordinary reference pattern different from the recorded value, and the relevant QC checks have passed. It triggers review of the data and record provenance. It does not authorize a metadata change without an appropriate, documented process.

A Review Sequence

Apply the rule sample by sample, retaining the original record and the separate X and Y summaries. The following sequence helps avoid turning a technical or biological ambiguity into an unsupported conclusion.

1
Verify the field.
Confirm what the recorded variable means, its allowed values, and whether it is intended to be compared with this genotype-based QC scheme.
2
Check data quality.
Review sample and locus missingness, X call quality, Y-marker callability, and any relevant batch or plate pattern. A low-quality signal should not be treated as a reliable pattern.
3
Classify the signals separately.
Record the X category, Y support category, and QC status before comparing them with the recorded value. Do not let the recorded value influence classification of the genotype summaries.
4
Apply the stated comparison rule.
Label the sample pattern-consistent, a candidate discrepancy, or mixed / indeterminate. Use the last category when the rule does not support a clear comparison.
5
Document follow-up and disposition.
Retain the original metadata, describe checks and contacts through approved procedures, and store any authorized correction as a traceable update rather than overwriting the history.

Worked Examples

Worked Example: A Mixed X/Y Pattern With Recorded M

A hypothetical sample, S17, has a recorded value M. At the selected non-pseudoautosomal X loci, 24 of 180 called genotypes are heterozygous. Of 20 required Y markers, 18 pass the platform’s positive-call rule; the minimum marker count is met. Assume the sample passes the relevant call-quality checks.

The X heterozygosity rate is

$$ H_X=\frac{24}{180}=0.1333. $$

Since \(0.1333 \geq 0.10\), the X pattern is X2-like. Y support is \(18/20=0.90\), or 90%, which exceeds the illustrative 80% threshold. The pattern is therefore X2-like and Y-positive. Under the stated rule, that is mixed / atypical, not an ordinary reference pattern that can be compared as a simple M-versus-F discrepancy. The correct report is: recorded value M; X2-like pattern; Y support positive; comparison indeterminate under this rule; follow-up required. It would be incorrect to claim that the genotype pattern establishes a mismatch simply because both signals are present.

Worked Example: A Candidate Discrepancy After Quality Checks

A hypothetical sample, S41, has recorded value F. It has 2 heterozygous calls among 160 eligible called X genotypes, and 17 of 20 required Y markers are positive. The minimum marker count is met. Sample identity checks available at this stage show no indication of a plate-position or sample-labeling problem, and the relevant calls pass QC.

The X rate is

$$ H_X=\frac{2}{160}=0.0125. $$

This is at most 0.02, so the pattern is X1-like. Y support is

$$ \frac{17}{20}=0.85, $$

or 85%, so it is positive under the illustrative rule. X1-like with positive Y support is the ordinary M-associated pattern in this scheme, whereas the recorded value is F. This is a candidate discrepancy, not a confirmed record error. The appropriate next steps are to preserve the original value, check the source record and sample-tracking history through authorized procedures, and document the finding and any resolution. The genotype result alone does not justify overwriting F with M.

Worked Example: An Indeterminate Pattern Does Not Become a Mismatch

A hypothetical sample, S52, has recorded value M. There are 11 heterozygous calls among 140 eligible X genotypes, and 4 of 16 required Y markers are positive. The minimum number of callable Y markers for classification is 15, so the Y result fails the required callability rule.

The X calculation is

$$ H_X=\frac{11}{140}=0.07857. $$

This falls between 0.02 and 0.10, so X is intermediate under the example thresholds. Although \(4/16=0.25\), or 25%, of the listed Y markers are positive, only 16 are callable and the required minimum is not met. The Y result is therefore inadequate for classification; it is not a reliable negative result. The sample is indeterminate, and no record–genotype discrepancy can be concluded under this rule. The analyst should report the intermediate X result and failed Y callability separately, then investigate technical quality or seek other appropriate evidence.

Why the Comparison Rule Is Necessary

The rule separates two questions that are often mistakenly collapsed: “What pattern did the assay measure?” and “Does that pattern disagree with this particular recorded field?” The first is answered by genotype summaries and QC. The second also requires a definition of the metadata field and a justified mapping from measured patterns to expected record categories. If the mapping has only been specified for ordinary patterns, it cannot be extended by intuition to every combination.

This distinction can be expressed as a short justification. Let \(R\) denote the recorded category and \(G\) the joint X/Y pattern. A comparison label is supported only when the rule defines an expected category for \(G\) and the data meet its quality requirements. If the rule marks \(G\) as mixed or indeterminate, then it has not established an expected category for that pattern. Therefore, \(R\) alone cannot turn that pattern into a demonstrated discrepancy. For example, with \(G=\) X2-like and Y-positive, the stated rule provides no single ordinary category to compare with \(R\); it follows that this combination alone cannot justify calling recorded M inconsistent.

This is not a claim that all combinations are equally likely or that no further interpretation is possible. A particular study could validate additional classifications using its assay, reference data, and intended meaning of the recorded field. The essential requirement is that such classifications be explicit and supported, rather than improvised after seeing an individual sample.

Diagnostics, Alternatives, and Limits

Before treating a candidate discrepancy as meaningful, review whether the signal could be explained by poor or uneven genotype quality. Check sample-level missingness, locus-level missingness, the number of eligible X calls, Y-marker callability, and whether the pattern clusters by batch or plate. Compare the sample with other samples processed in the same batch. Where relevant, review sample identifiers and handling records. Earlier material on missingness diagnostics is useful here: a threshold-based classification is only as credible as the calls supplying its numerator and denominator.

A simple threshold rule is transparent and easy to audit, but it can be sensitive to the chosen markers and cutoffs. A calibrated reference-distribution approach may represent uncertainty more fully than a hard boundary. Conversely, a rule using only X or only Y is simpler but discards complementary evidence and can make interpretation less secure. Whatever approach is used, it should state how it handles missing data and mixed patterns. Do not silently convert a failed or intermediate result into the nearest binary category.

Genotype patterns can also be affected by sample mixture, contamination, unusual sex-chromosome complements, mosaicism, transplantation history, or technical artifacts, among other possibilities. These possibilities are reasons to investigate with appropriate expertise, not explanations that can be assigned from the pattern alone. A sex-check result does not determine gender identity. Nor does it establish which administrative or clinical record is correct. The purpose of this QC step is to identify and document a question for follow-up.

Common Pitfalls

  • Calling every difference a record error. A candidate discrepancy is a review flag. Confirm the field’s meaning, assess data quality, and follow the study’s authorized resolution process before changing anything.
  • Inferring a conflict from X and Y signals without a comparison rule. X2-like plus Y-positive is mixed under the rule above; it is not automatically inconsistent with recorded M. Report the observed signals and use the defined indeterminate category.
  • Treating missing Y calls as Y-negative. A result that fails callability requirements is inadequate, not a reliable negative. Keep missing, failed, and negative states distinct.
  • Overwriting the original record. Preserve provenance. If a correction is approved, retain the original value, the revised value, the reason, the date, and the authority for the change.
  • Equating genotype-based categories with identity. The QC rule concerns measured marker patterns and a specified record field; it does not establish gender identity or a complete biological description.
Key takeaway: Compare a recorded value with genotype patterns only through an explicit, quality-checked rule. Classify mixed combinations as mixed when the rule does not support a clear comparison, and keep review flags separate from metadata corrections.

Check Your Understanding

For each question, use the illustrative thresholds and comparison rule stated above.

  1. A sample recorded F has \(H_X=0.16\) and adequate Y data with no positive Y support. What classification follows?
  2. A sample recorded M has an X2-like pattern and positive Y support. Should this alone be called a discrepancy? Why?
  3. A sample has 5 heterozygous X calls among 200 eligible calls, and 16 of 20 Y markers are positive. Calculate \(H_X\) and Y support, then classify the pattern.
  4. Why should a Y result with too few callable markers not be recorded as a negative result?
  5. If a review leads to an authorized change in a recorded value, what should happen to the original metadata?

Solutions. (1) \(H_X=0.16\) is X2-like; adequate Y data without positive support are Y-negative, so the pattern is X2-like/Y-negative, the ordinary F-associated pattern. It is pattern-consistent with recorded F. (2) No. X2-like plus Y-positive is mixed under this rule, so it is not enough to establish a discrepancy with recorded M. (3) \(H_X=5/200=0.025\), which is intermediate because it is greater than 0.02 and less than 0.10. Y support is \(16/20=0.80\), or 80%, meeting the illustrative percentage threshold if the minimum callability requirement is also met. The overall pattern remains indeterminate because X is intermediate. (4) Too few callable markers make the evidence inadequate to classify Y support; “not enough information” is not the same as a negative result. (5) Retain the original value and its provenance, and record any approved revision as a traceable update with the reason and authorization.

Clinical Biostats