HAlign 3: Fast multiple alignment of ultra-large similar DNA/RNA sequences

This project is aimed at improving a part of HAlign2.0, which could align multiple nucleotide sequences fast and accurately.

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

 

Introduction

HAlign is a cross-platform program that performs multiple sequence alignment based on the center star strategy. Here, we present two major updates of HAlign 3 which help to improve the time efficiency and the alignment quality. 1) The left-child right-sibling is replaced by K-ary tree to build the suffix tree to reach a higher identical substring searching efficiency at the cost of only a few extra space; 2) a global substring selection algorithm combining directed acyclic graphs with dynamic programming is adopted to screen out the unsatisfactory identical substrings. These improvements make HAlign 3 the only program which can align 1 million SARS-CoV-2 sequences fast and accurately.

 

Installation and Usage

1.1 OSX/Linux/WSL(Windows Subsystem for Linux ) - using anaconda

1.Intall WSL for Windows. Click here for Instructional Video for installation, or here (Copyright belongs to the original work)

2.Download and install Anaconda. Anaconda versions for different systems from here. Installation of anaconda (Instructional Video for command line installation) or here (Copyright belongs to the original work).

3.Install HAlign 3

 

1.2 Usage for conda version

 

1.3 Example usage for conda version

1.Download testdata.

mt_genome.fasta: 672 human mitochondrial genomes (Tanaka et al. 2004)

mt_genome.fasta

 

 

 

 

 

2.1 OSX/Linux/windows - from a release tarball

1.Download and install JDK 11 for different systems from here.

2.Download HAlign3 from relseases.

 

2.2 Usage for release version

 

2.3 Example usage for release version

 

Change Log

pairwise-alignment scoring rules adjusted

optimizations

refactoring and a new feature added

SuffixTree.java rewritten to improve the performance

initialisation

Build

 

 

 

 

 

 

 

 

 

MSAvc: variation calling for genome-scale multiple sequence alignments

Fast variations calling from a FASTA/MAF file of genome-scale multiple sequence alignments

 

Build Status
License: GPL v3
status
install with bioconda
Container ready
Docker Build Status
Docker Pulls
codecov

preview badgehttps://img.shields.io/docker/pulls/sangerpathogens/malaria-lftp

Docker Pulls

Contents

 

Introduction

The precisive study of whole genome for every single individuals and cells has been made possible by the rapid development of sequencing technology. The demand for variation calling among individual whole genomes for prokaryotic and eukaryotic population studies would be sharply increased. Current tools are either time-consuming or less accurate and failed to handle eukaryotic genome-scale multiple sequence alignments. We present MSAvc, a C++ based program, which can efficiently extract variations including substitution, indel and replacement from FASTA and MAF files of multiple genome-scale sequence alignments. MSAvc allows users to set reference sequence for a ccurate variation extraction and filter variations based on position, alternate allele count and variation type. MSAvc is able to accurately extract variations from FASTA alignment of 3 million SARS-CoV-2 sequences and MAF alignment of 21 human whole genomes. It can be easily installed via Debian, Homebrew, Conda and Docker on MacOS, Linux, and Windows (32 and 64 bits) systems. MSAvc is open source code under the GNU General Public License version 3.

 

Installation

There are a few ways to install MSAvc. The simpliest way is using apt (Debian/Ubuntu) or Conda. If you encounter an issue when installing MASvc or encounter a bug please report it here.

Linux/WSL - Ubuntu/Debian

If you have a recent version of Ubuntu or Debian then you can install it using apt.

OSX/Linux/WSL - using Bioconda

  1. Install Anaconda and add the bioconda channels (Instructional Video for command line installation). Download Anaconda versions for different systems from here: 64-Bit Command Line Installer (433 MB) for OSX; 64-Bit (x86) Installer (544 MB) for Linux/WSL.
  1. Install MSAvc through Anaconda.

OSX/Linux/WSL - from source

This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using Conda instead. First install a standard development environment (e.g. gcc, automake, autoconf, libtool). Download the software from GitHub.

OSX/Linux/WSL - from a release tarball

This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using Conda instead. First install a standard development environment (e.g. gcc, automa\ ke, autoconf, libtool).

Windows - Windows Subsystem for Linux (WSL)

Install Ubuntu on Windows 10

First, install Ubuntu on Windows 10, click here to access the instruction. here

Second,

 

 

This requires libcheck (the check package in Ubuntu) to be installed.

All platforms - Docker

Bioconda produce a Docker container so you can use the software out of the box. Install Docker and then pull the container from Bioconda https://quay.io/repository/biocontainers/snp-sites

###

Usage

Option            Function
-i, --in Specify the muti-FASTA/MAF input file
-o, --out Specify the output VCF file name
-r, --reference Specify the reference genome during extracting variation (default=the first sequence of the input file)
-g, --genotype-matrixOutput genotype matrix (default=false)
-n, --nomerge-subDon't merge the SUB variations with the same "POS" and "REF" into one row (default=false)
-b, --filter-begin The filtration of POS column by specifying an integer such as "-b 24" in terms of reference genome, meaning only keep variations with POS>=24 (default=0)
-e, --filter-end The filtration of POS column by specifying an integer such as "--filter-end 1000" in terms of reference genome, meaning only keep variations with POS<1000 (default=18446744073709551615)
-c, --filter-ac The filtration of AC tag in INFO column by specifying an integer such as "-c 100", meaning only output variations with AC>=100 (default=0)
-t, --filter-vt The filtration of VT tag in INFO column by specifying one of sub/ins/del/rep (lowercase) flag such as "-t sub", meaning only output the substitution variations (default=false)
-l, --filter-vl The filtration of VLEN tag in INFO column by specifying an integer such as "-l 25", meaning only output the variations with VLEN>=25bp (default=0)
-s, --sub-blockOutput MSA sub-block into FASTA file after the filtration of POS column, for instance "-b 24 -e 100 -s", meaning produce a sub MSA block, the slice interval is 24=<POS<100 in terms of reference (default=false)
-h, --helpHelp message
-v, --versionVersion

Example

SUB

Input file of single or continuous substitutions:
>sequence1 (as reference)
TCTATCTTCGCTGCTTACGGTTTCGTCC
>sequence2
CCTCCCTTCGCTGCTTACGGTTTCGTGT
>sequence3
CCTGGCTTCGCTGCTTACGGTTTCGTGT

the output is:

#CHROMPOSIDREFALTQUALFILTERINFORFORMATsequence1sequence2sequence3
sequence11.TC..AC=2;VT=SUB;VLEN=1GT011
sequence14.ATCC,GG..AC=1,1;VT=SUB;VLEN=2GT012
sequence127.CCGT..AC=2;VT=SUB;VLEN=2GT011

INS

Input file of single or continuous insertions:
>sequence1 (as reference)
--TCTATCTTCGCTGC---TTACGGTTTCGTCC---
>sequence2
TTTCTATCTTCGCTGCAAATTACGGTTTCGTCCATT
>sequence3
TTTCTATCTTCGCTGC---TTACGGTTTCGTCCATT

the output is:

#CHROMPOSIDREFALTQUALFILTERINFORFORMATsequence1sequence2sequence3
sequence10..TT..AC=2;VT=INS;VLEN=2GT011
sequence114.CCAAA..AC=1;VT=INS;VLEN=3GT010
sequence128.CCATT..AC=2;VT=INS;VLEN=3GT011

DEL

Input file of single or continuous deletions:
>sequence1 (as reference)
TCTATCTTCGCTGCTTACGGTTTCGTCC
>sequence2
--TATCTTCGCTG-TTACGGTTTCG---
>sequence3
--TATCTTCGCTGCTTACGGTTTCG---

the output is:

#CHROMPOSIDREFALTQUALFILTERINFORFORMATsequence1sequence2sequence3
sequence11.TC...AC=2;VT=DEL;VLEN=2GT011
sequence113.GCG..AC=1;VT=DEL;VLEN=1GT010
sequence125.GTCCG..AC=2;VT=DEL;VLEN=3GT011

REP

Input file of mixed situations of SUB/INS/DEL:
>sequence1 (as reference)
---TCTATCTTCGCTGC---TTACGGTTTCGTCC---
>sequence2
TTTAATATCTTCGCTGCAAAAAACGGTTTCGA-----
>sequence3
------TTCTTCGCTA----TTACGGTTTCGTGTATT
>sequence4
------TTCTTCGCTGCAAAAAACGGTTTCGA-----

the output is:

#CHROMPOSIDREFALTQUALFILTERINFORFORMATsequence1sequence2sequence3sequence4
sequence11.TCTTTAA..AC=1;VT=REP;VLEN=5GT0100
sequence11.TCTTTAA..AC=1;VT=REP;VLEN=5GT0100
sequence11.TCTTTAA..AC=1;VT=REP;VLEN=5GT0100
sequence11.TCTTTAA..AC=1;VT=REP;VLEN=5GT0100
sequence11.TCTTTAA..AC=1;VT=REP;VLEN=5GT0100
sequence11.TCTTTAA..AC=1;VT=REP;VLEN=5GT0100

 

 

Example usage

 

Output

Documentary of fixed VCF columns
1 #CHROM The name of user assigned reference genome
2 POS The position of the first base in reference allele according to the given reference genome
3 ID “.” meaning missing value
4 REF Reference allele
5 ALT Alternate Allele
6 QUAL “.” meaning missing value
7 FILTER “.” meaning missing value
8 INFO AC: Alternate Allele Count
VT: the type of variation (SUB, INS, DEL and REP)
VLEN: Difference in length between REF and ALT alleles
9 FORMAT GT: genotype
10 Reference name The genotypes of reference genome which will always be “0”
11 Sequences name* Given one variation, the genotype of sequences is assigned according the order of ALT value (if it matches the first alternate allele, the genotype of sequence will be assigned as “1” and so on)
*The order of other sequences is in the same order of FASTA/MAF file after removing the chosen reference. 

 

License

MSAvc is free software, licensed under GPLv3.

 

Feedback/Issues

MSAcv is supported by ZOU's Lab. If you have any questions and suggestions, please feel free to contact us on the issues page. You are also welcomed to send a copy to Furong.TANG@hotmail.com to make sure we could answer you ASAP!

 

Citation

If you use this software please cite:

MSAvc: variation calling for genome-scale multiple sequence alignments, Furong TANG1, Jiannan CHAO1, Fenglong Yang, Lei Xu2 and Quan Zou2, ?????(?), (2021)

 

 


1 First author ↩ ↩
2 Corresponding author ↩ ↩