Coder Social home page Coder Social logo

xgen-ont-pipeline's Introduction

Nanopore xGen Amplicon Assembly Pipeline

This pipeline automates the process of assembling genomes from IDT's xGen Amplicon Panels sequenced using Oxford Nanopore technology.

Technical Considerations

xGen Primer File

For primer clipping, this pipeline uses the tool Primerclip which was developed for IDT's xGen technology (formerly Swift Biosciences) specifically.

The input for Primerclip is different from the traditional BED file used for tools such as iVar. Instead, IDT creates a special "Masterfile" text file that contains information about each potential amplicon (amplicon coordinates, primer coordinates, primer sequences, etc). IDT will provided this file to those who have purchased one of their products.

This file is requires for the pipeline, and must be specified via the --primers option.

Medaka Model

Medaka requires information about the pore, sequencing device, and basecaller. This information is specified to the tool through a 'model', which is a string of text in the following format:

{pore}_{device}_{caller variant}_{caller version}

The pipeline requires a medaka model as input. To see a list of medaka models, use the command medaka tools list_models.

As well, it is important to note, the models will not contain individual versions of Guppy. Thus, you should choose the version most closest to and less than the version you used (Ex: using Guppy 6.00, enter R***_min_hac_g507)

Installation

To install this pipeline, enter the following commands:

# Clone the repository
git clone https://github.com/rchapman2000/xgen-ont-pipeline

# Create a conda environment using the provided environment.yml file
conda env create -f environment.yml

# Activate the conda environment
conda activate xGenONTAssembly

Updating the Pipeline

If you already have the pipeline installed, you can update it using the following commands:

# Navigate to your installation directory
cd xgen-ont-pipeline

# Use git to pull the latest update
git pull

# Activate the conda environment and use the environment.yml file to download updates
conda activate xGenONTAssembly
conda env update --file environment.yml --prune

Usage

To run the pipeline, use the following command:

# You must be either in the same directory as the main.nf file or reference the file location
nextflow run main.nf [options] --input INPUT_DIR --output OUTPUT_DIR --reference REFERENCE_FASTA --primers XGEN_MASTERFILE --model MEDAKA_MODEL

Optional Arguments

The pipeline also supports the following optional arguments:

Option Type Description
--minCov int The minimum depth of coverage required to report a site in the final consensus genome. Sites below this threshold will be masked [Default = 20]
--threads int The number of CPU threads that can be use to run pipeline tools in parallel

To view the list of options from the command line, use the following command:

nextflow run main.nf --help

xgen-ont-pipeline's People

Contributors

rchapman2000 avatar

Stargazers

Jessica Wiley, PhD avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.