Code Monkey home page Code Monkey logo

nanoflow's Introduction

Installation

  1. Clone Jesse's conda-gcc5 repository and create an new environment nanoflow with GCC5 installed
git clone https://github.com/ressy/conda-gcc5.git
bash setup.py nanoflow
  1. Clone this repository into a local directory and activate nanoflow environment
git clone https://github.com/zhaoc1/nanoflow.git nanoflow
cd nanoflow
source activate nanoflow
conda install --file conda-requirements.txt
  1. Clone Ryan Wick's Basecalling-comparison repository
mkdir local
cd local
git clone https://github.com/rrwick/Basecalling-comparison.git
  1. Download other packages into local directory
## Nanopolish v0.9.0
git clone --recursive https://github.com/jts/nanopolish.git
cd nanopolish
make

## Unicycler
git clone https://github.com/rrwick/Unicycler.git
cd Unicycler
python3 setup.py install

## set up for Quast
git clone https://github.com/lucian-ilie/E-MEM.git
cd E-MEM
make

Usage

  1. Basecalling:
snakemake --configfile _all_basecalling
  1. Preprocess: quality filter, confidently-binned, and subsampled subsample long reads
snakemake --configfile config.yml _all_preprocess
  1. Hybrid assembly option 1: Canu + Nanopolish + Circlator + Pilon
snakemake --configfile config.yaml --cores 8 _all_draft1
## command to submit jobs to Respublica
snakemake -j 3 --configfile config.yml --cluster-config cluster.json -w 90 --notemp -p -c "qsub -cwd -r n -V -l h_vmem={cluster.h_vmem} -l m_mem_free={cluster.m_mem_free} -pe smp {threads}" _all_draft1
  1. Hybrid assembly option 2: Unicycler

    • depth=X in the FASTA header: to preserve the relative depths. This is mainly used for plasmid sequences, which should be more represented in the reads than the chromosomal sequence.
snakemake --configfile config.yaml _all_draft2
  1. Assembly assess and comparison
  • Metrics description

    • Misjoins: locations where two adjacent sequences in the assembly should be split apart and placed at distinct locations in order to match the reference.

    • Relocation: a misjoin where a segments needs to be moved elsewhere on the chromosome.

    • Misassemblies: QUAST categories misassemblies as either local (less than 1kbp discrepancy) or extensive (more than 1 kbp discrepancy)

  • A good reference guide for interpretting the dot plot is available here.

  • Some good tutorials:

    • Align two draft sequences using MUMmer.
    • Evaluate the assembly using MUMmer.
    • Assembly evaluation with QUAST
    • Multiple assemblies comparison using QUAST
    • Highly similar sequences with rearrangments using run-mummer3 [TODO].
    • Assembly to assembly comparisons using Minimap2 [TODO].
  • Wish you knew sooner ๐Ÿ˜”

    • Minimap2 and the future of BWA, by Heng Li's blog.
    • Long reads assembly: indels cause interrupted genes, by Mick Watson's blog.
snakemake --configfile config.yaml _all_comp --use-conda
  1. IGV: short/long reads mapped to draft assembly
snakemake --configfile config.yaml _all_map_igv
  1. Generate bioinformatics report refer to bioinfo_report.Rmd. An example output is shown in bioinfo_report.pdf.

nanoflow's People

Contributors

zhaoc1 avatar

Stargazers

Johon Li Tuobang ๆŽๆ‹“้‚ฆ avatar

Watchers

James Cloos avatar Adrian Viehweger 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.