Multiple sequence alignment. This is a Python wrapper for MAFFT.
Download and run the standalone executables without installing Python.
See the latest release here.
Installing from source requires a C++ compiler:
$ pip install git+https://github.com/iTaxoTools/MAFFTpy.git
You must have Git and MS Visual Studio 2019 or later installed. Please make sure your environment is properly configured to use MSVC. The Windows version depends on the open pthread-win32 library, which is included as a git submodule. Setuptools will automatically fetch and compile the library.
Run the GUI:
$ mafftpy-gui
Simple command line tools:
$ mafftpy-fftns1 tests/sample tests/sample.out
$ mafftpy-ginsi tests/sample
Call the functions from within Python:
from itaxotools.mafftpy import quick, fftns1, ginsi
from pathlib import Path
quick(Path('tests/sample'), strategy='auto')
fftns1(Path('tests/sample'), Path('tests/sample.out'))
ginsi(Path('tests/sample'))
It is advised to use PyInstaller within a virtual environment:
$ pip install ".[dev]" -f packages.html
$ pyinstaller scripts/mafftpy.spec