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. Source code and data: https://github.com/malabz/WMSA2.
latest release of WMSA 2:
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)
java -jar WMSA2.jar -i test.fasta -o test_algined_WMSA2.fastaUse 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
Copyright@2023 by MALAB, UESTC.