Methylation detection

Methylation detection in LightSpeed Fastq to Methylation and Germline Variants (beta) supports directional, paired-end data from positive-readout methylation assays.

In these assays, the cytosine modification detected by the assay is read as thymine, whereas unmodified cytosine remains unchanged. Thus, conversion is observed as C $ \rightarrow$T on the original top strand and G $ \rightarrow$A on the original bottom strand.

TET-assisted pyridine borane sequencing (TAPS) is an example of such an assay. LightSpeed Fastq to Methylation and Germline Variants (beta) has been tested and validated using TAPS data. Note that for TAPS data, both 5mC and 5hmC are read as T and are not distinguished by the analysis.

Conversion-compatible substitutions, i.e., C $ \rightarrow$T or G $ \rightarrow$A, can also represent sequence variants. The sequence genotype and methylation level are therefore inferred jointly. Bases representing methylation-associated conversion are subsequently reverted where appropriate in the read mapping before germline variant detection.

The tool uses the same general processing steps as LightSpeed Fastq to Germline Variants. The following steps are modified or added for methylation analysis:

Fragment orientation and conversion evidence

The analysis requires directional, paired-end data for which the orientation of the original DNA strand can be determined from the read pair. Each read pair is treated as one fragment, wherein overlapping positions are counted once, and positions where the reads disagree are excluded. For fragments originating from the original top strand, conversion of a CpG cytosine is observed as C $ \rightarrow$T. For fragments originating from the original bottom strand, conversion of the corresponding cytosine is observed as G $ \rightarrow$A relative to the reference.

Only one of the two original DNA strands can show the conversion signal at a given cytosine. Evidence from the opposite strand is therefore unaffected by the methylation state at that cytosine and provides independent information about the underlying DNA sequence. These two types of evidence are used together to distinguish methylation-associated conversion from sequence variants.

Read mapping and local realignment

Conversion-compatible substitutions at CpGs are scored using methylation-aware scoring during read mapping and local realignment. Other substitutions are scored using the standard scoring model, as described in Read mapping. Conversion-compatible substitutions are not proposed as candidate variants during local realignment.

Methylation calling

Each CpG is evaluated as a single unit comprising both cytosines. Every reference CpG with at least one fragment providing conversion information is evaluated. De novo CpGs, i.e., CpGs created by sequence variants, are also evaluated and reported when at least one cytosine is called methylated.

The model jointly estimates the sequence genotype, including variants that create or disrupt a CpG, and the methylation level of each cytosine. Joint inference allows methylation-associated conversion to be distinguished from C $ \rightarrow$T or G $ \rightarrow$A sequence variants, including at heterozygous sites. The model accounts for the tendency of the two cytosines in a CpG to have similar methylation levels while allowing strand-specific differences. The expected distribution of methylation levels is estimated separately from the sample data for each reference sequence. A cytosine is called methylated when the evidence from the joint model is sufficient to support methylation.

Bases at the beginning of each read can be excluded from conversion measurements to reduce biases associated with library preparation. The number of excluded bases is configurable. In addition, the last base at the 3' end of each read is always excluded from conversion measurements. Note that bases excluded at this step can still contribute to determining the sequence genotype.

Non-specific reads, reads in broken pairs, and fragments with a mapping quality below 5 are not used for methylation calling. These reads remain in the corrected read mapping, where converted bases are reverted based on the methylation and genotype inference from eligible fragments.

Reverting converted bases

The read mapping is corrected so that methylation-associated conversions do not appear as sequence variants. Specifically, at cytosines called methylated, converted bases in fragments originating from the corresponding DNA strand are reverted: T is changed to C at the reference C position, and A is changed to G at the reference G position. For de novo CpGs, the corrected read mapping also retains the sequence difference that created the CpG. Note that converted bases can also be reverted at cytosines that are not called methylated. When the inferred genotype contains a CpG allele, converted bases on fragments supporting that allele are reverted even when the methylation evidence is insufficient for the cytosine to be called methylated. This prevents residual methylation-associated conversions from introducing noise into germline variant detection.

Note that at some heterozygous sites it is not possible to infer whether a read supports a sequence variant or methylation-associated conversion. For example, at a CG/TG site, an observed T can represent either a converted C or an unconverted T allele. Where possible, fragments at such sites are assigned to alleles using nearby heterozygous variants. Bases assigned to the CpG allele are reverted, whereas bases assigned to the alternative allele are unchanged. If the allele cannot be determined, both converted and unconverted bases on the relevant fragments are replaced by N at the ambiguous site in the corrected read mapping. Thus, both C and T observations are masked at a C $ \rightarrow$T ambiguous site, and both G and A observations are masked at a G $ \rightarrow$A ambiguous site. This prevents methylation-associated conversion from altering the allele balance used for germline variant detection.

Output

Methylation detection results are provided in a Methylation track with one row per reported cytosine. Reference CpGs with conversion information are reported regardless of whether they are called methylated. De novo CpGs are reported when at least one cytosine is called methylated. The output contains the following columns:

The corrected read mapping used for germline variant detection is also provided.