[](https://doi.org/10.5281/zenodo.XXXXXXX) [](https://www.nextflow.io/) [](https://docs.conda.io/en/latest/) [](https://www.docker.com/) [](https://sylabs.io/docs/) [](https://tower.nf/launch?pipeline=https://github.com/sanger-tol/treeval) ## Introduction **sanger-tol/treeval** is a bioinformatics best-practice analysis pipeline for the generation of data supplemental to the curation of reference quality genomes. This pipeline has been written to generate flat files compatible with [JBrowse2](https://jbrowse.org/jb2/). The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool to run tasks across multiple compute infrastructures in a very portable manner. It uses Docker/Singularity containers making installation trivial and results highly reproducible. The [Nextflow DSL2](https://www.nextflow.io/docs/latest/dsl2.html) implementation of this pipeline uses one container per process which makes it much easier to maintain and update software dependencies. Where possible, these processes have been submitted to and installed from [nf-core/modules](https://github.com/nf-core/modules) in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community! The treeval pipeline has a sister pipeline currently named [curationpretext](https://github.com/sanger-tol/curationpretext) which acts to regenerate the pretext maps and accessory files during genomic curation in order to confirm interventions. This pipeline is sufficiently different to the treeval implementation that it is written as it's own pipeline. 1. Parse input yaml ( YAML_INPUT ) 2. Generate my.genome file ( GENERATE_GENOME ) 3. Generate insilico digests of the input assembly ( INSILICO_DIGEST ) 4. Generate gene alignments with high quality data against the input assembly ( GENE_ALIGNMENT ) 5. Generate a repeat density graph ( REPEAT_DENSITY ) 6. Generate a gap track ( GAP_FINDER ) 7. Generate a map of self complementary sequence ( SELFCOMP ) 8. Generate syntenic alignments with a closely related high quality assembly ( SYNTENY ) 9. Generate a coverage track using PacBio data ( LONGREAD_COVERAGE ) 10. Generate HiC maps, pretext and higlass using HiC cram files ( HIC_MAPPING ) 11. Generate a telomere track based on input motif ( TELO_FINDER ) 12. Run Busco and convert results into bed format ( BUSCO_ANNOTATION ) 13. Ancestral Busco linkage if available for clade ( BUSCO_ANNOTATION:ANCESTRAL_GENE ) ## Usage > **Note** > If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how > to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) > with `-profile test` before running the workflow on actual data. Currently, it is advised to run the pipeline with docker or singularity as a small number of major modules do not currently have a conda env associated with them. Now, you can run the pipeline using: ```bash # For the FULL pipeline nextflow run main.nf -profile singularity --input treeval.yaml --outdir {OUTDIR} # For the RAPID subset nextflow run main.nf -profile singularity --input treeval.yaml -entry RAPID --outdir {OUTDIR} ``` An example treeval.yaml can be found [here](assets/local_testing/nxOscDF5033.yaml). Further documentation about the pipeline can be found in the following files: [usage](https://pipelines.tol.sanger.ac.uk/treeval/dev/usage), [parameters](https://pipelines.tol.sanger.ac.uk/treeval/dev/parameters) and [output](https://pipelines.tol.sanger.ac.uk/treeval/dev/output). > **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](https://nf-co.re/usage/configuration#custom-configuration-files). ## Credits sanger-tol/treeval has been written by Damon-Lee Pointon (@DLBPointon), Yumi Sims (@yumisims) and William Eagles (@weaglesBio). We thank the following people for their extensive assistance in the development of this pipeline: