You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/src/intro_dmr.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,16 @@ modkit dmr pair \
158
158
159
159
Keep in mind that the MAP-based p-value provided in single-site analysis is based on a "modified" vs "unmodified" model, see the [scoring section](./dmr_scoring_details.md) and [limitations](./limitations.md) for additional details.
160
160
161
+
### Note about modification codes
162
+
The `modkit dmr` commands require the `--base` option to determine which genome positions to compare, i.e. `--base C` tells `modkit` to compare methylation at cytosine bases.
163
+
You may use this option multiple times to compare methylation at multiple primary sequence bases.
164
+
It is possible that, during `pileup` a read will have a mismatch and a modification call, such as a C->A mismatch and a 6mA call on that A, and you may not want to use that 6mA call when calculating the differential methylation metrics.
165
+
To filter out bedMethyl records like this, `modkit` uses the [SAM specification](https://samtools.github.io/hts-specs/SAMtags.pdf) (page 9) of modification codes to determine which modification codes apply to which primary sequence bases.
166
+
For example, `h` is 5hmC and applies to cytosine bases, `a` is 6mA and applies to adenine bases.
167
+
However, `modkit pileup` does not require that you use modification codes only in the specification.
168
+
If your bedMethyl has records with custom modification codes or codes that aren't in the specification yet, use `--assign-code <mod_code>:<primary_base>` to indicate the code applies to a given primary sequence base.
169
+
170
+
161
171
## Differential methylation output format
162
172
The output from `modkit dmr pair` (and for each pairwise comparison with `modkit dmr multi`) is (roughly)
Copy file name to clipboardExpand all lines: docs/intro_dmr.html
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -309,6 +309,14 @@ <h2 id="3-detecting-differential-modification-at-single-base-positions"><a class
309
309
--log-filepath dmr.log
310
310
</code></pre>
311
311
<p>Keep in mind that the MAP-based p-value provided in single-site analysis is based on a "modified" vs "unmodified" model, see the <ahref="./dmr_scoring_details.html">scoring section</a> and <ahref="./limitations.html">limitations</a> for additional details.</p>
312
+
<h3id="note-about-modification-codes"><aclass="header" href="#note-about-modification-codes">Note about modification codes</a></h3>
313
+
<p>The <code>modkit dmr</code> commands require the <code>--base</code> option to determine which genome positions to compare, i.e. <code>--base C</code> tells <code>modkit</code> to compare methylation at cytosine bases.
314
+
You may use this option multiple times to compare methylation at multiple primary sequence bases.
315
+
It is possible that, during <code>pileup</code> a read will have a mismatch and a modification call, such as a C->A mismatch and a 6mA call on that A, and you may not want to use that 6mA call when calculating the differential methylation metrics.
316
+
To filter out bedMethyl records like this, <code>modkit</code> uses the <ahref="https://samtools.github.io/hts-specs/SAMtags.pdf">SAM specification</a> (page 9) of modification codes to determine which modification codes apply to which primary sequence bases.
317
+
For example, <code>h</code> is 5hmC and applies to cytosine bases, <code>a</code> is 6mA and applies to adenine bases.
318
+
However, <code>modkit pileup</code> does not require that you use modification codes only in the specification.
319
+
If your bedMethyl has records with custom modification codes or codes that aren't in the specification yet, use <code>--assign-code <mod_code>:<primary_base></code> to indicate the code applies to a given primary sequence base.</p>
Copy file name to clipboardExpand all lines: docs/print.html
+40-5Lines changed: 40 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -898,6 +898,14 @@ <h2 id="3-detecting-differential-modification-at-single-base-positions"><a class
898
898
--log-filepath dmr.log
899
899
</code></pre>
900
900
<p>Keep in mind that the MAP-based p-value provided in single-site analysis is based on a "modified" vs "unmodified" model, see the <ahref="./dmr_scoring_details.html">scoring section</a> and <ahref="./limitations.html">limitations</a> for additional details.</p>
901
+
<h3id="note-about-modification-codes"><aclass="header" href="#note-about-modification-codes">Note about modification codes</a></h3>
902
+
<p>The <code>modkit dmr</code> commands require the <code>--base</code> option to determine which genome positions to compare, i.e. <code>--base C</code> tells <code>modkit</code> to compare methylation at cytosine bases.
903
+
You may use this option multiple times to compare methylation at multiple primary sequence bases.
904
+
It is possible that, during <code>pileup</code> a read will have a mismatch and a modification call, such as a C->A mismatch and a 6mA call on that A, and you may not want to use that 6mA call when calculating the differential methylation metrics.
905
+
To filter out bedMethyl records like this, <code>modkit</code> uses the <ahref="https://samtools.github.io/hts-specs/SAMtags.pdf">SAM specification</a> (page 9) of modification codes to determine which modification codes apply to which primary sequence bases.
906
+
For example, <code>h</code> is 5hmC and applies to cytosine bases, <code>a</code> is 6mA and applies to adenine bases.
907
+
However, <code>modkit pileup</code> does not require that you use modification codes only in the specification.
908
+
If your bedMethyl has records with custom modification codes or codes that aren't in the specification yet, use <code>--assign-code <mod_code>:<primary_base></code> to indicate the code applies to a given primary sequence base.</p>
0 commit comments