-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaper.lyx
2838 lines (2182 loc) · 64.9 KB
/
paper.lyx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement tbph
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex
\cite_engine_type numerical
\biblio_style plain
\biblatex_bibstyle numeric
\biblatex_citestyle numeric
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2.5cm
\rightmargin 2.5cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Correcting Methylation Calls in Clinically Relevant Low-Mappability Regions
\end_layout
\begin_layout Author
Caiden M.
Kumar
\begin_inset script superscript
\begin_layout Plain Layout
\begin_inset CommandInset ref
LatexCommand ref
reference "enu:New England Biolabs"
plural "false"
caps "false"
noprefix "false"
\end_inset
\end_layout
\end_inset
, Devon P.
Ryan
\begin_inset script superscript
\begin_layout Plain Layout
\begin_inset CommandInset ref
LatexCommand ref
reference "enu:Genedata-AG"
plural "false"
caps "false"
noprefix "false"
\end_inset
\end_layout
\end_inset
, Bradley W.
Langhorst
\begin_inset script superscript
\begin_layout Plain Layout
\begin_inset CommandInset ref
LatexCommand ref
reference "enu:New England Biolabs"
plural "false"
caps "false"
noprefix "false"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Enumerate
\begin_inset CommandInset label
LatexCommand label
name "enu:New England Biolabs"
\end_inset
New England Biolabs
\end_layout
\begin_layout Enumerate
\begin_inset CommandInset label
LatexCommand label
name "enu:Genedata-AG"
\end_inset
GeneData AG
\end_layout
\begin_layout Abstract
DNA methylation is an important component in vital biological functions
such as embryonic development, carcinogenesis, and heritable regulation.
Accurate methods to assess genomic methylation status are crucial to its
effective use in many scenarios, especially in the detection and diagnosis
of disease.
Methylation aligners, such as Bismark and bwa-meth, frequently assign significa
ntly higher MapQ values than can be supported by the uniqueness of the region
reads are mapped to.
These incorrectly high MapQs result in inappropriate methylation calling
in repetitive regions.
We observe reads that should map to separate locations (possibly having
different methylation states) actually end up mapping to the same locus,
causing apparent mixed methylation at such loci.
Methylation calling can be improved by using Bismap mappability data to
filter out insufficiently unique reads.
However, simply filtering out Cs in insufficiently unique regions is not
adequate as it is prone to over-filtering Cs in small mappability dips.
These Cs can in fact often be called using reads anchored in a nearby mappable
region.
We have created a new feature for the MethylDackel methylation caller to
perform read-based filtering.
This new methylation calling method resolves some of the apparent mixed
methylation to either 0% or 100% methylation and removes many unsupportable
methylation calls.
We examined methylation calls with and without read-based filtering in
or near the 7830 genes containing ClinVar variants in a methylation sequencing
data set from the NA12878 cell line.
Use of this improved method corrected 41,143 mixed methylation Cs to 0%
methylation, and 22,345 to 100% methylation throughout the genome.
\end_layout
\begin_layout Section*
Introduction
\end_layout
\begin_layout Standard
As DNA methylation status can have a significant biological function
\begin_inset CommandInset citation
LatexCommand cite
key "Schubeler2015"
literal "false"
\end_inset
, it is important that there be an accurate way of calling methylation on
a genome.
Although there are multiple varieties of DNA methylation, perhaps the most
significant type in eukaryotes is methylation of cytosine to 5-methylcytosine
\begin_inset CommandInset citation
LatexCommand cite
key "breiling_epigenetic_2015"
literal "false"
\end_inset
.
Data on DNA cytosine methylation state can be gathered using a methylation
sequencing technique (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:seq"
plural "false"
caps "false"
noprefix "false"
\end_inset
), like bisulfite sequencing
\begin_inset CommandInset citation
LatexCommand cite
key "Chen2017"
literal "false"
\end_inset
.
In bisulfite sequencing, unmethylated cytosines are deaminated to uracil
by the addition of sodium bisulfite.
5-methylcytosines are not affected.
Since uracil sequences as thymine and 5-methylcytosine sequences as cytosine,
positions of unmethylated Cs in a reference sequence can be identified
by C->T transitions
\begin_inset CommandInset citation
LatexCommand cite
key "Chen2017"
literal "false"
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename fig.svg
lyxscale 50
width 100col%
\end_inset
\begin_inset Caption Standard
\begin_layout Plain Layout
Overview of Methylation Sequencing and Data Analysis Methods.
\begin_inset CommandInset label
LatexCommand label
name "fig:seq"
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
It is also possible to use an enzymatic method, EM-seq, employing TET2 to
oxidize 5-methylcytosine and an APOBEC enzyme to deaminate unmodified cytosines
to uracil.
While sodium bisulfite treatment produces double strand breaks and other
DNA damage, this enzymatic method deaminates with more precision
\begin_inset CommandInset citation
LatexCommand cite
key "vaisvila_enzymatic_2021"
literal "false"
\end_inset
and longer, better mappable fragments.
\end_layout
\begin_layout Standard
Whichever method is used to deaminate cytosines, methylation sequence data
is typically aligned to a reference genome using a methylation-aware aligner
\begin_inset CommandInset citation
LatexCommand cite
key "Garrett-Bakelman2015"
literal "false"
\end_inset
, which is specifically designed to handle the C->T transitions in methylation
sequencing data when aligning the reads to a reference.
Once aligned, a methylation caller is needed to analyze alignments and
report the methylation status of particular cytosines (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:seq"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
The resulting data shows the methylation status of each callable cytosine
in the genome and can therefore be used to find and study biologically
significant DNA methylation sites.
\end_layout
\begin_layout Standard
There are two commonly used methylation callers, MethylDackel
\begin_inset CommandInset citation
LatexCommand cite
key "ryan_methyldackel_nodate"
literal "false"
\end_inset
and bismark_methylation_extractor
\begin_inset CommandInset citation
LatexCommand cite
key "doi:10.1093/bioinformatics/btr167"
literal "false"
\end_inset
.
The Bismark aligner creates XM, XR, and XG tags that are used by the bismark_me
thylation_extractor to call methylation.
Bismark_methylation_extractor requires these larger bam files and is not
compatible with bam files produced by other aligners.
MethylDackel extract is not tightly coupled to a specific aligner or tag
scheme, performing the filtering, quality assessment, and reference comparisons
needed for methylation calling internally.
MethylDackel efficiently loads a complete or targeted reference genome,
examining alignments in chunks that are processed in parallel with all
the context needed to differentiate methylation from C->T mutation.
Flexible and optional thresholds are available for base-quality, positional
trimming, adjacent base context (e.g.
CpG or CHH), alignment flags, and MapQ.
\end_layout
\begin_layout Standard
A read must be unambiguously placed if it is to provide information about
a specific region of a genome.
Reads that equally match more than one area of the reference genome should
not be used to assess methylation of any given C.
To avoid calling Cs using reads derived from multiple genomic loci, methylation
aligners (and read aligners in general) assign a MapQ value to each read
alignment (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:seq"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
According to the SAM specification
\begin_inset CommandInset citation
LatexCommand cite
key "the_sam/bam_format_specification_working_group_sequence_2018"
literal "false"
\end_inset
, MapQ is defined as:
\begin_inset Quotes eld
\end_inset
\begin_inset Formula $-10\log_{10}\Pr\{\mathrm{mapping\ position\ is\ wrong}\}$
\end_inset
, rounded to the nearest integer
\begin_inset Quotes erd
\end_inset
.
MapQ indicates how uniquely placed a read alignment is, that is, in how
many other places could the read align to the reference.
A low MapQ means that the read may align in many places throughout the
genome (for instance, a read of centromeric satellite DNA would likely
have a very low MapQ).
A high MapQ indicates that the read likely aligns where it is placed and
nowhere else in the genome.
\end_layout
\begin_layout Standard
A methylation caller can use accurate MapQ values to filter out reads with
multiple placements in the genome, allowing the resulting methylation calls
to accurately reflect their specific loci.
Unfortunately, current aligners frequently produce implausible MapQ scores.
\end_layout
\begin_layout Standard
In this paper, we describe the problem that low-mappability creates for
methylation calling, the extent of miscalled methylation in real datasets,
and our implementation of an improved method that measurably reduces incorrect
mixed-methylation calls improving differential methylation assessment,
the use of methylation as a biomarker for disease progression, and understandin
g of development processes.
\end_layout
\begin_layout Section*
Results
\end_layout
\begin_layout Standard
While evaluating the methylation aligner bwa-meth
\begin_inset CommandInset citation
LatexCommand cite
key "2014arXiv1401.1129P"
literal "false"
\end_inset
, we observed a significant number of reads with unexpectedly high MapQ
values in repetitive regions (e.g.
centromeres, Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:chrom-overview"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
Another commonly used aligner Bismark
\begin_inset CommandInset citation
LatexCommand cite
key "krueger_bismark:_2011"
literal "false"
\end_inset
produced even more calls in repetitive regions (data not shown).
After observing high MapQ reads in the centromere and larger repetitive
regions, we investigated to see if smaller regions might also be too repetitive
to support the high aligner MapQ estimates observed.
We identified repetitive regions using data from Bismap
\begin_inset CommandInset citation
LatexCommand cite
key "karimzadeh2018"
literal "false"
\end_inset
, a tool that counts the number of occurrences of every single K-mer of
a particular length (in this case, k=100) in the genome to create a mappability
score (ranging from 0 to 1 in increments of 0.01) for every base in the
GRCh38 reference.
Each individual K-mer is considered either mappable or not, and the overall
mappability score is derived (indirectly) from how many different K-mers
are mappable and how many are not.
Bismap takes the effect of C->T conversion into account and therefore produces
data which is applicable in the context of methylation sequencing
\begin_inset CommandInset citation
LatexCommand cite
key "karimzadeh2018"
literal "false"
\end_inset
.
Reads entirely contained within a region of low mappability should not
have high MapQ values due to their repetitiveness, however we observed
many high-MapQ reads in regions with very low or zero Bismap mappability
(e.g.
Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:example"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename chroms_ideogram.png
lyxscale 30
width 90col%
\end_inset
\begin_inset Caption Standard
\begin_layout Plain Layout
Cs in low mappability regions (blue), as well as those filtered out by per-read
filtering that still passed MapQ filtering (red), are represented across
all chromosomes.
Per-read filtering removes unsupported calls while retaining millions of
Cs that a naïve per-C filtering approach would needlessly eliminate.
In this figure, the horizontal banded rectangles represent the chromosomes,
the blue track above them shows all calls in low-mappability regions, and
the red track corresponds to miscalls accurately removed by per-read filtering.
\begin_inset CommandInset label
LatexCommand label
name "fig:chrom-overview"
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename fig1_svg.svg
lyxscale 50
width 90col%
\end_inset
\end_layout
\begin_layout Plain Layout
\align center
\begin_inset Caption Standard
\begin_layout Plain Layout
MapQ filtering does not remove all poorly mapped reads.
This is an example of a coverage spike in a low-mappability region: clearly
not sufficiently mappable, but still called with MapQ filtering.
Mappability is only high in a small portion of this view (top track), but
using MapQ alone alone enable calls of many Cs (MapQ Only track).
the Per-read Kept track shows that only 2 sites have enough mappability
to call and successfully eliminates the remaining miscalled Cs (Per-read
∆ track).
Per C filtering eliminates all Cs in this region including the 2 that should
be callable (Per-C Kept track).
\begin_inset CommandInset label
LatexCommand label
name "fig:example"
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
While low MapQ can indicate repetitiveness, even stringent MapQ thresholds
cannot reliably select reads for safe methylation calling in regions containing
repetitive DNA (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:overview-1"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
We considered excluding methylation calls on Cs found in low-mappability
regions (e.g.
using bedtools), but rejected this approach because it is prone to both
over- and under-filtering.
Cs in short, unique regions would be kept (under-filtered) even if the
surrounding DNA is repetitive (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:discarded"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
However, this situation was not commonly observed.
Over-filtering of Cs in short repetitive regions is a larger problem though.
In this scenario, a C located in a small dip in mappability would be eliminated
(over-filtered) despite coverage from read pairs anchored in nearby unique
regions (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:kept"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
When calling using EM-seq reads aligned with bwa-meth to GRCh38, under-filterin
g is rare (between
\begin_inset Formula $9.4*10^{-5}\%$
\end_inset
and
\begin_inset Formula $1.2*10^{-4}\%$
\end_inset
of called Cs) but over-filtering is much more common (between
\begin_inset Formula $1.2\%$
\end_inset
and
\begin_inset Formula $1.4\%$
\end_inset
of called Cs) (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:overview-1"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
Although ~1% of called Cs might seem like a small fraction, it accounts
for ~14.0-16.2 million Cs, while ~
\begin_inset Formula $10^{-4}\%$
\end_inset
of Cs corresponds to ~1079-1388 Cs.
In cases where reads from multiple low-mappability regions are placed onto
one region (creating a coverage spike), filtering by coverage could possibly
also remove the problematic region, but in cases where reads are simply
mixed among multiple low-mappability regions (not creating a coverage spike),
coverage filtering would not be effective at removing the affected regions.
In addition, if some of the reads used to call a C are uniquely mappable,
but others are not, per-read filtering can remove only those reads that
are not uniquely mappable, rather than being forced to discard the entire
locus as is required for per-C filtering.
\end_layout
\begin_layout Standard
To reliably filter out only problematic read pairs (those where both mates
are placed in low mappability regions) we modified the MethylDackel methylation
caller
\begin_inset CommandInset ref
LatexCommand ref
reference "methyldackel-patch"
plural "false"
caps "false"
noprefix "false"
\end_inset
to accept a bigWig file of low-mappability regions to exclude from analysis.
This per-read filtering approach precisely eliminates only those reads
in repetitive regions and has a negligible effect on execution speed (see
computational methods for details).
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename fig4_svg.svg
lyxscale 70
width 100col%
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
An overview of the impact of the various filtering scenarios in the q arm
of GRCh38 chromosome 1.
The six tracks show the effect of per-C and per-read mappability filtering
on the methylation calls on this chromosome arm and are representative
of rest of the genome.
\begin_inset Quotes eld
\end_inset
Mappability
\begin_inset Quotes erd
\end_inset
is the Bismap mappability for the chromosome.
\begin_inset Quotes eld
\end_inset
MapQ filtering only
\begin_inset Quotes erd
\end_inset
is the calls after commonly used MapQ filtering only (no per-C or per-read
mappability filtering).
\begin_inset Quotes eld
\end_inset
Kept by Per-read Filtering
\begin_inset Quotes erd
\end_inset
shows the methylation calls kept after per-read mappability filtering.
\begin_inset Quotes eld
\end_inset
Removed by Per-read Filtering
\begin_inset Quotes erd
\end_inset
shows those calls removed entirely by per-read filtering for being insufficient
ly mappable.
\begin_inset Quotes eld
\end_inset
Under-filtered Cs
\begin_inset Quotes erd
\end_inset
are not sufficiently mappable according to per-read filtering, but are
retained by per-C filtering.
\begin_inset Quotes eld
\end_inset
Over-filtered Cs
\begin_inset Quotes erd
\end_inset
are sufficiently mappable according to per-read filtering, but are removed
by per-C filtering.
\begin_inset CommandInset label
LatexCommand label
name "fig:overview-1"
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename fig3_svg.svg
lyxscale 50
width 90col%
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
An example of a C incorrectly discarded by per-C filtering (red box).
The C is in a small mappability dip, causing it to be discarded by bedtools
filtering, while per-read filtering correctly retains the C, as it can
be called using reads extending into the high-mappability regions on either
side.
\begin_inset CommandInset label
LatexCommand label
name "fig:discarded"
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename fig2_svg.svg
lyxscale 50
width 90col%
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
An example of a C incorrectly kept by per-C filtering (red box).
As the C is itself just inside the edge of a mappable region, bedtools
retains it, even though it is only supported by two insufficiently mappable
reads.
Our per-read filtering correctly removes this sort of C, as there is not
enough data here to call it confidently.
\begin_inset CommandInset label
LatexCommand label
name "fig:kept"
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
To focus on the incorrect alignments and methylation calls that have biological
and medical significance, we examined methylation calls in and just upstream
of GENCODE genes
\begin_inset CommandInset citation
LatexCommand cite
key "Harrow2012"
literal "false"
\end_inset
that contain variants listed in the ClinVar
\begin_inset CommandInset citation
LatexCommand cite
key "doi:10.1093/nar/gkx1153"
literal "false"
\end_inset
database of disease-associated variants.
Using our alignment filtering approach we successfully avoided miscalling
264 thousand Cs in these important regions in a 200 ng EM-seq sample which
have insufficient mappability to support methylation calling.
Briefly, to identify the number of methylation calls correctly removed
(miscalls), we took the list of unfiltered Cs for the regions we were intereste
d in and removed from it all Cs we kept after per-read filtering.
The result was a list of every C that was correctly filtered out (Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:Miscall-counts"
plural "false"
caps "false"
noprefix "false"
\end_inset
).
\end_layout
\begin_layout Subsection*
Filtering Effect
\end_layout
\begin_layout Standard
We compared the effect of per-read mappability filtering on number of C's
called, as well as number of C's called in low-mappability regions (as
defined by per-C filtering), on EM-seq libraries of 3 sample masses aligned
with the bwa-meth aligner.
We saw a significant positive filtering effect on all 3 sample input amounts,
with a mean of 7.67 million Cs filtered out by read-based filtering in each
sample (see Figure
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:Miscall-counts"
plural "false"
caps "false"
noprefix "false"
\end_inset