Skip to content

malabz/WMSA2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WMSA 2: A multiple DNA/RNA sequence alignment tool implemented with accurate progressive mode and a fast win-win mode combining the center star and progressive strategies

website

CLUSTAR

Introduction

Multiple sequence alignment is widely used for sequence analysis, such as identifying important sites and phylogenetic analysis. Traditional methods, such as progressive alignment, are time-consuming. To address this issue, we introduce StarTree, a novel method to fast construct a guide tree by combining sequence clustering and hierarchical clustering. Furthermore, we develop a new heuristic similar region detection algorithm using the FM-index and apply the k-banded dynamic program to the profile alignment. We also introduce a win-win alignment algorithm that applies the central star strategy within the clusters to fast the alignment process, then uses the progressive strategy to align the central-aligned profiles, guaranteeing the final alignment's accuracy. We present WMSA 2 based on these improvements and compare the speed and accuracy with other popular methods. The results show that the guide tree made by the StarTree clustering method can lead to better accuracy than that of PartTree while consuming less time and memory than that of UPGMA and mBed methods on datasets with thousands of sequences. During the alignment of simulated data sets, WMSA 2 can consume less time and memory while ranking at the top of Q and TC scores. The WMSA 2 is still better at the time, and memory efficiency on the real datasets and ranks at the top on the average sum of pairs score. For the alignment of 1 million SARS-CoV-2 genomes, the win-win mode of WMSA 2 significantly decreased the consumption time than the former version. The source code and data are available at https://github.com/malabz/WMSA2.

Installation

For OSX/Linux/Windows

  1. Download and install JDK (version >= 11) for different systems from here.
  2. Download WMSA 2 from relseases.

Usages

java -jar WMSA2.jar [-m] mode [-s] similarity [-i] path [-o] path
necessary arguments: 
    -i  Input file path (nucleotide sequences in fasta format)
    -o  Output file path

optional arguments:
  -m  align option (default mode: Pro)
       1. Pro        progressive alignment with StarTree method
       2. Win        combine central and progressive alignment with CluStar method
       3. StarTree   only output the guidetree
  -t  tow guide tree option for MSA (default: StarTree)
       1. StarTree
       2. UPGMA
  -s  the similarity of the cluster (used in Win mode. default: 0.9)

Example

  1. Download data and uncompress the data.
  2. Align the data with WMSA 2.

Use Pro mode to align the data.

java -jar WMSA2.jar -i test.fasta -o test_algined_WMSA2.fasta

Use Win mode to align the data(the default similarity value is 0.9).

java -jar WMSA2.jar -m Win -s 0.95 -i test.fasta -o test_algined_WMSA2.fasta

Download

Data

Hierarchical tree simulated datasets

Ref: HAlign 3: Fast Multiple Alignment of Ultra-Large Numbers of Similar DNA/RNA Sequences.

Download: (more information)

simluation RNA

Download: (more information) (all)

Ancient human partial mitochondrial DNA

Ref: Ancient DNA Reveals Key Stages in the Formation of Central European Mitochondrial Genetic Diversity. DOI: 10.1126/science.1241844

Download:

SARS-CoV-2 genome

Ref: HAlign 3: Fast Multiple Alignment of Ultra-Large Numbers of Similar DNA/RNA Sequences.

Download:

Related Tools

Score scripts

MSA tools

License

WMSA 2 is a free software, License under MIT.

Citation

If you use this software, please cite:

Chen J, Chao J, Liu H, Yang F, Zou Q, Tang F. WMSA 2: a multiple DNA/RNA sequence alignment tool implemented with accurate progressive mode and a fast win-win mode combining the center star and progressive strategies. Brief Bioinform. 2023 May 17:bbad190. doi: 10.1093/bib/bbad190. Epub ahead of print. PMID: 37200156.

Contact us

The software tools are developed and maintained by ZOU's lab. If you find any bug, welcome to contact us on the issues page. More tools and infomation can visit our github.