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
T on the original top strand and G
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
T or G
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:
- Read mapping Reads are mapped, as described in Read mapping, but with methylation-aware scoring, thereby tolerating conversion-compatible substitutions.
- Deduplication Duplicate read pairs are identified as described in Deduplication. However, instead of building a consensus read pair from a group of duplicated read pairs, the read pair with the fewest deviations from the reference is retained. If several read pairs have the same number of deviations, the read pair with the highest mapping quality is retained.
- Local realignment Reads are locally realigned as described in Local realignment, but with methylation-aware scoring, thereby tolerating conversion-compatible substitutions.
- Methylation calling The sequence genotype and methylation level are inferred jointly at CpGs.
- Reversion of converted bases Bases representing methylation-associated conversion are reverted to produce a corrected read mapping eligible for germline variant detection.
- Germline variant detection Germline variants are detected from the corrected read mapping, as described in Germline variant detection.
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 COnly 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
T or G
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
T ambiguous site, and both G and A observations are masked at a G
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:- Chromosome Reference sequence containing the reported cytosine.
- Region Position of the reported cytosine. Top-strand cytosines are reported at the C position. Bottom-strand cytosines are reported at the G position, with complement indicated in the Region column.
- Context Reference dinucleotide. A value other than CG indicates a CpG created by a sequence variant.
- Sequence Inferred sequence genotype, for example CG/TG.
- Unmodified read count Number of fragments containing the unconverted base used for methylation inference.
- Modified read count Number of fragments containing the converted base used for methylation inference.
- Beta Estimated methylation level from the joint CpG model. The value is 0 when the available conversion evidence indicates no conversion. The value is NaN when the genotype contains no CpG allele.
- p-value methylation Probability that a CpG allele is present and that the cytosine has a methylation level of at least 0.1.
- Posterior - sequence Probability of the inferred sequence genotype.
- Strand methylation rate Observed methylation rate for the individual cytosine, calculated independently of the joint CpG model.
The corrected read mapping used for germline variant detection is also provided.
