vlad0x00 / ntLink

Assembly scaffolder using long reads and minimizers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub release (latest by date) Conda Logo

Scaffolding genome assemblies using long reads and minimizers

Description of the algorithm

ntLink uses minimizers to perform a lightweight mapping between the input target assembly and the supplied long reads. These long-read mappings are then used as evidence to orient and order the output scaffolds.

General steps in the algorithm:

  1. Compute ordered minimizer sketches of the input target assembly and long reads
  2. Use minimizers to map the long reads to the target assembly contigs
  3. Find contig pairs, where joins are suggested by the long-read mapping evidence
  4. Output a scaffold graph, where the nodes are oriented contigs and the edges are joins suggested by the long read data
  5. Traverse the scaffold graph using abyss-scaffold to output the final scaffolds

Credits

Concept: Rene Warren and Lauren Coombe

Design and implementation: Lauren Coombe

Citing ntLink

If you use ntLink in your research, please cite:

Coombe L, Li JX, Lo T, Wong J, Nikolic V, Warren RL and Birol I. LongStitch: High-quality genome assembly correction and scaffolding using long reads. bioRxiv. 2021;2021.06.17.448848. doi: https://doi.org/10.1101/2021.06.17.448848.

Usage

ntLink: Scaffolding assemblies using long reads
Usage: ntLink scaffold target=<target scaffolds> reads='List of long read files'

Options:
target			Target assembly to be scaffolded in fasta format
reads		        List of long read files (separated by a space)
prefix			Prefix of intermediate output files [<target>.k<k>.w<w>.n<n>]
t			Number of threads [4]
k			K-mer size for minimizers [32]
w			Window size for minimizers [100]
n			Minimum graph edge weight [1]
g			Minimum gap size (bp) [20]
f			Maximum number of contigs in a run for full transitive edge addition [10]
a                       Minimum number of anchored ONT reads required for an edge [1]
z			Minimum size of contig (bp) to scaffold [1000]
v                       If 1, track time and memory for each step of the pipeline [0]
conservative		If False, runs ntLink in stitching mode [True]

Note: 
	- Ensure all assembly and read files are in the current working directory, making soft links if necessary

Running ntLink help prints the help documentation.

  • Input reads files can be gzipped (or not), and in either fastq or fasta format
  • Input read and contigs files must be in single-line fasta format

Example

Input files:

  • target assembly my_assembly.fa (in single-line fasta format)
  • long read file long_reads.fq.gz

ntLink command:

ntLink scaffold target=my_assembly.fa reads=long_reads.fq.gz k=32 w=250

The post-ntLink scaffolds file will have the suffix *ntLink.scaffolds.fa

Installation

ntLink is available from conda and homebrew package managers.

Installing using conda:

conda install -c bioconda -c conda-forge ntlink

Installing using brew:

brew install brewsci/bio/ntlink

Installing from source code:

git clone https://github.com/bcgsc/ntLink.git
cd src
make

Testing your installation

To test your ntLink installation:

cd tests
./test_installation.sh

The expected output files can be found in: tests/expected_outputs

Dependencies

Python dependencies can be installed with:

pip3 install -r requirements.txt

License

ntLink Copyright (c) 2020 British Columbia Cancer Agency Branch. All rights reserved.

ntLink is released under the GNU General Public License v3

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

For commercial licensing options, please contact Patrick Rebstein (prebstein@bccancer.bc.ca).

About

Assembly scaffolder using long reads and minimizers

License:GNU General Public License v3.0


Languages

Language:C++ 89.1%Language:Java 6.7%Language:Python 2.8%Language:Shell 0.8%Language:Meson 0.4%Language:Makefile 0.3%