nf-core/cap is a bioinformatics pipeline for Centromere Analysis in genomic assemblies. It identifies and characterizes centromeric regions using tandem repeat detection, machine learning-based prediction, and comprehensive genomic feature analysis. The pipeline accepts genome assemblies in FASTA format and produces publication-ready visualizations and annotations of centromeric regions.
The pipeline performs the following steps:
- Dependency checking (
nhmmer,mafft) - Tandem repeat detection (
TRASH2) - Repeat classification and filtering
- Optional: Transposable element annotation parsing (EDTA output)
- Optional: Gene annotation parsing (Helixer output)
- Centromeric scoring based on repeat families, GC content, and sequence complexity
- Machine learning-based centromere prediction (
XGBoost) - GC content and Context Tree Weighting (CTW) analysis
- Generation of comprehensive visualizations and reports
Note
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.
Now, you can run the pipeline using:
nextflow run nf-core/cap \
-profile <docker/singularity/conda/.../institute> \
--assembly genome.fasta \
--outdir <OUTDIR>nextflow run nf-core/cap \
-profile <docker/singularity/conda/.../institute> \
--assembly genome.fasta \
--te_gff EDTA.gff3 \
--gene_gff helixer.gff \
--templates custom_repeats.fasta \
--cores 8 \
--outdir <OUTDIR>Warning
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.
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.
nf-core/cap was originally written by Piotr Włodzimierz. Original repo is here.
We thank the following people for their extensive assistance in the development of this pipeline:
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 #cap channel (you can join with this invite).
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.