Skip to content

Commit 9ed4ea8

Browse files
author
Mitchell R. Vollger
committed
expand ONT docs
1 parent 44b182e commit 9ed4ea8

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

src/quick-start.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ Once you have a phased bam file, you can identify [Fiber-seq inferred regulatory
3636

3737
**ft predict-m6a** does not include a model for ONT data; however, you can use software, such as [Dorado](https://github.com/nanoporetech/dorado), to add CpG and m6A to your ONT BAM file.
3838

39+
### Alignment and phasing
40+
41+
You can either use [Dorado](https://github.com/nanoporetech/dorado) to align your ONT data or use a tool like [minimap2](https://github.com/lh3/minimap2) to align your data. If you do use `minimap2` be sure to include the flag `-y` to preserve the CpG and m6A information in the output BAM file.
42+
43+
If you do want to do phasing we recommend using [WhatsHap](https://whatshap.readthedocs.io/en/latest/) for phasing ONT data. Please see their documentation for more information.
44+
45+
### Filtering m6A calls
46+
3947
If you do use Dorado you must then filter the m6A calls with [modkit](https://github.com/nanoporetech/modkit) using a tenth percentile cutoff for each flow-cell independently. This is the only way to get good m6A calls in our experience, and using any hard ML threshold will not hold between flow-cells. Here is an example command:
4048

4149
```bash
@@ -52,27 +60,22 @@ Once you have CpG and m6A information in your filtered ONT BAM file, you can use
5260
modkit call-mods -p 0.1 input.bam - | ft add-nucleosomes - output.bam
5361
```
5462

55-
### Alignment and phasing
56-
57-
You can either use [Dorado](https://github.com/nanoporetech/dorado) to align your ONT data or use a tool like [minimap2](https://github.com/lh3/minimap2) to align your data. If you do use `minimap2` be sure to include the flag `-y` to preserve the CpG and m6A information in the output BAM file.
58-
59-
If you do want to do phasing we recommend using [WhatsHap](https://whatshap.readthedocs.io/en/latest/) for phasing ONT data. Please see their documentation for more information.
60-
6163
### A full example for processing ONT data
6264

6365
Here is an example summary of the commands to process ONT data assuming you have already completed 6mA and CpG calling with `dorado`:
6466

6567
```bash
68+
`#converts to fastq for keeping all the BAM tags` \
69+
samtools fastq -@ 8 -T "*" ONT.dorado.with.6mA.bam \
70+
`#aligns the data inserting the tags back into the output BAM`
71+
| minimap2 -t 32 --secondary=no -I 8G --eqx --MD -Y -y -ax map-ont reference.fasta - \
72+
`#sort and index the BAM` \
73+
| samtools sort -@ 32 --write-index -o tmp.ONT.fiberseq.bam
74+
6675
#filters the ONT data for the best 6mA calls and write to stdout
67-
modkit call-mods -p 0.1 ONT.dorado.with.6mA.bam - \
76+
modkit call-mods -p 0.1 tmp.ONT.fiberseq.bam - \
6877
`# adds nucleosome calls to the ONT Fiber-seq` \
69-
| ft add-nucleosomes \
70-
`#converts to fastq for keeping all the BAM tags` \
71-
| samtools fastq -@ 8 -T "*" \
72-
`#aligns the data inserting the tags back into the output BAM` \
73-
| minimap2 -t 32 --secondary=no -I 8G --eqx --MD -Y -y -ax map-ont reference.fasta - \
74-
`# sort and index the final BAM` \
75-
| samtools sort -@ 32 --write-index -o ont.fiberseq.bam
78+
| ft add-nucleosomes - ONT.fiberseq.bam
7679
```
7780

7881
After this point, you will have a Fiber-seq BAM file that is compatible with all the [extraction](fibertools/extracting/extracting.md) commands in `fibertools`.

0 commit comments

Comments
 (0)