6. Bisulfite sequencing

1. Reads were mapped to the reference genome using Bismark (v0.24.0) and assigning the mapping tool as Bowtie by parameter -bowtie.

      a. For PBAT libraries, --pbat mode was used for mapping (PBAT libraries pull down strands of DNA that       are complementary to the 'usual' DNA strands (OT and OB), and therefore normally require mapping in       --pbat mode).

      b. For the others, the default mode was applied.

2. The resulting BAM files were deduplicated using deduplicate_bismark. But for Reduced-representation bisulfite sequencing (RRBS-Seq) data, deduplication was not performed.

3. Multiple mapping and low-quality reads were filtered out using samtools view

      a. with the parameter -F 4 to exclude any reads without the "mapped" flag,

      b. and -q 20 that only retained reads with mapping quality score above 20.

4. Methylation quatification were conducted using bismark_methylation_extractor.