22.10.6
.
Learn more.
Introduction
nf-core/methylong is a bioinformatics pipeline that processes modification basecalled ONT reads or PacBio HiFi reads (modBam) by performing preprocessing steps (including trimming and tag repair), aligning them to the provided genome assembly, and extracting methylation calls into BED/BEDGraph format, ready for direct downstream analysis.
ONT workflow:
-
trim and repair tags of input modBam
- trim and repair workflow:
- sort modBam -
samtools sort
- convert modBam to fastq -
samtools fastq
- trim barcode and adapters -
porechop
- convert trimmed modfastq to modBam -
samtools import
- repair MM/ML tags of trimmed modBam -
modkit repair
- sort modBam -
- trim and repair workflow:
-
align to reference (plus sorting and indexing) -
dorado aligner
- include alignment summary -
samtools flagstat
- include alignment summary -
-
create bedMethyl -
modkit pileup
-
create bedgraphs (optional)
PacBio workflow:
-
align to reference -
pbmm2
(default) orminimap2
-
minimap workflow:
- convert modBam to fastq -
samtools convert
- alignment -
minimap2
- sort and index -
samtools sort
- alignment summary -
samtools flagstat
- convert modBam to fastq -
-
pbmm2 workflow:
- alignment and sorting -
pbmm2
- index -
samtools index
- alignment summary -
samtools flagstat
- alignment and sorting -
-
-
create bedMethyl -
pb-CpG-tools
(default) ormodkit pileup
- 2 pile up methods available from
pb-CpG-tools
:- default using
model
- or
count
(differences described here: https://github.com/PacificBiosciences/pb-CpG-tools)
- default using
- 2 pile up methods available from
-
create bedgraph (optional)
Usage
If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with -profile test
before running the workflow on actual data.
First, prepare a samplesheet with your input data that looks as follows:
samplesheet.csv
:
Column | Content |
---|---|
sample | Name of the sample |
modBam | Path to basecalled modBam file |
ref | Path to assembly fasta/fa file |
method | specify ont / pacbio |
Now, you can run the pipeline using:
Please provide pipeline parameters via the CLI or Nextflow -params-file
option. Custom config files including those provided by the -c
Nextflow option can be used to provide any configuration except for parameters; see docs.
For more details and further functionality, please refer to the usage documentation and the parameter documentation.
Parameters
Parameter | Purpose |
---|---|
--samplesheet | path to samplesheet |
--outdir | results directory, default: './results' |
--no_trim | skip trimming in ONT workflow, process will start directly alignment |
--aligner | aligner option in PacBio workflow, default is pbmm2, specify minimap2 to switch |
--pileup_method | pileup method in PacBio workflow, default is pbcpgtools, specify modkit to switch |
--pileup_count | specify pbcpgtools pileup mode, default is using model mode, specify this argument to switch to count mode |
--bedgraph | indicate if required bedgraphs as output |
Pipeline output
To see the results of an example test run with a full size dataset refer to the results tab on the nf-core website pipeline page. For more details about the output files and reports, please refer to the output documentation.
Folder stuctures of the outputs:
Credits
nf-core/methylong was originally written by Jin Yan Khoo.
We thank the following people for their extensive assistance in the development of this pipeline:
Contributions and Support
If you would like to contribute to this pipeline, please see the contributing guidelines.
For further information or help, donβt hesitate to get in touch on the Slack #methylong
channel (you can join with this invite).
Citations
An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md
file.
You can cite the nf-core
publication as follows:
The nf-core framework for community-curated bioinformatics pipelines.
Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.
Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.