scorreard / Canadian_Biogenome_Project

This repo contains the pipeline used by the Canadian Biogenome Project (http://earthbiogenome.ca) to generate assemblies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CBP Genome Assembly pipeline

This pipeline is used by the Canadian Biogenome project to generate genome assemblies from a variety of species.

The pipeline is built using nextflow.

In short, each step of the pipeline is included in a module. Most of the modules uses one container which makes it much easier to maintain and update software dependencies. Some modules rely on locally installed tools. Future updates of the pipeline may include better portability.

A lot of the modules available in this pipeline were developed by members of the nf-core/genomeassembler group, if you want to participate, feel free to join the community.

Table of Contents

Input data

The pipeline was developped to take as input PacBio ccs files (bam) and Hi-C files (fastq.gz). The pipeline also support the inclusion of nanopore data and short-reads for polishing.

The pipeline also require information related to the specie of interest such as genome size or ploidy. This information can be found on GoaT.

Output files

The pipeline generates many files and intermediate files, most are self explanatory.

Process

An overview of the pipeline is visible on the following subway map. Some parts of the pipeline may have been commented out in this version as they relied on locaaly installed software. The code is still available in case you also want to locally install the software and try it out.

By default, the pipeline will use hifiasm with PacBio data for the assembly, and if Hi-C data is available, YAHS is used for the scaffolding. Other assembler and scaffolder are available within the pipeline, to change, you need to edit the nextflow.config file.

Software used that would require local installation:

Software that relies on locally downloaded files / databases :

Figure : Overview of the Canadian Biogenome project assembly pipeline

Running the pipeline with test data (will work once the repo is public)

To run this pipeline, you need nextflow, conda and singularity installed on your system.

A set of test data are available in this repo to allow you to test the pipeline with just one command line:

nextflow run bcgsc/Canadian_Biogenome_Project -latest -r dev

The outputs are organized in several subfolder that are self-explenatory.

Running the pipeline with your own data

Clone the repository in your local environment:

git clone https://github.com/bcgsc/Canadian_Biogenome_Project.git
cd Canadian_Biogenome_Project

Modify the nextflow.config file:

  • Indicate the location of the input file
  • Indicate the required information

Launch the pipeline

nextflow run main.nf -profile singularity

Credits

The pipeline was originnally written by @scorreard with the help and input from :

  • Members of the Jones lab (Canada's Michael Smith Genome Sciences Centre, Vancouver, Canada).

  • Members of the Earth Biogenome Project and other affiliated projects.

  • Members of the nf-core / nextflow community.

Details on the test dataset

The PacBio data is a subset of covid sequences obtained with this command lines :

wget https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/m64187e_211217_130958.hifi_reads.bam
samtools view -b m64187e_211217_130958.hifi_reads.bam -s 123.001 > subset_covid_hifi.bam

The Hi-C data was downloaded from one of the nf-core test dataset

wget https://github.com/nf-core/test-datasets/blob/modules/data/genomics/sarscov2/illumina/fastq/test_1.fastq.gz?raw=true
wget https://github.com/nf-core/test-datasets/blob/modules/data/genomics/sarscov2/illumina/fastq/test_2.fastq.gz?raw=true

About

This repo contains the pipeline used by the Canadian Biogenome Project (http://earthbiogenome.ca) to generate assemblies

License:GNU General Public License v3.0


Languages

Language:Nextflow 54.3%Language:Python 21.9%Language:Groovy 13.0%Language:C++ 9.5%Language:HTML 0.7%Language:Shell 0.6%