# mafft を Homebrew, apt, MacPorts, Nix でインストール

mafft のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:mafft
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install mafft
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mafft
```

  証拠: MacPorts ports tree: science/mafft/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install mafft
```

  証拠: Debian stable package indexes: mafft from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#mafft
```

  証拠: nixpkgs package indexes: pkgs/by-name/ma/mafft/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:mafft
- **パッケージマネージャ:** Homebrew
- **バージョン:** 7.526
- **ソース概要:** Multiple alignments with fast Fourier transforms
- **ホームページ:** <https://mafft.cbrc.jp/alignment/software/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- einsi (エイリアス)
- fftns (エイリアス)
- fftnsi (エイリアス)
- ginsi (エイリアス)
- linsi (エイリアス)
- mafft (エイリアス)
- mafft-distance (エイリアス)
- mafft-einsi (エイリアス)
- mafft-fftns (エイリアス)
- mafft-fftnsi (エイリアス)
- mafft-ginsi (エイリアス)
- mafft-homologs.rb (エイリアス)
- mafft-linsi (エイリアス)
- mafft-nwns (エイリアス)
- mafft-nwnsi (エイリアス)
- mafft-profile (エイリアス)
- mafft-qinsi (エイリアス)
- mafft-sparsecore.rb (エイリアス)
- mafft-xinsi (エイリアス)
- nwns (エイリアス)
- nwnsi (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 7.526
## プロジェクトの歴史と使われ方

MAFFT is a multiple sequence alignment program for amino acid or nucleotide sequences. The official site describes MAFFT version 7 as software for Unix-like operating systems with a range of methods, including accurate L-INS-i for smaller alignments and fast FFT-NS-2 for larger sequence sets.

### プロジェクトの歴史

MAFFT originated as a fast Fourier transform-based approach to multiple sequence alignment, described in the 2002 Nucleic Acids Research paper cited by the official site. Subsequent official references trace major method and usability improvements through version 5, version 6, version 7, PartTree for large alignments, RNA structural alignment, multithreading, adding unaligned sequences, over-alignment control, large-data workflows, MPI parallelization, and MAFFT-DASH.

The official manual documents MAFFT as a Unix-style command-line program with aliases such as `linsi`, `ginsi`, `einsi`, `fftnsi`, `fftns`, `nwns`, and `mafft-profile`, each exposing a different speed/accuracy tradeoff.

### 採用の歴史

MAFFT became a standard bioinformatics command-line package because it covers both routine and high-accuracy multiple sequence alignment workflows. The official site links to web services at EBI, MPI Bioinformatics Toolkit, GenomeNet, SIB MyHits, T-REX, DDBJ WABI, and CIPRES, showing adoption beyond a single downloadable CLI.

Package managers matter for MAFFT because alignment tools are commonly installed into reproducible research environments, HPC systems, and workflow managers. The supplied package facts show distribution through Homebrew, Debian, MacPorts, Nix, and Ubuntu, while the official site maintains source, Linux, macOS, and Windows download paths.

### 使われ方

The basic invocation is `mafft input > output` with FASTA input. The official site recommends `mafft-linsi input > output` as an accurate option for up to roughly 200 sequences and `mafft input > output` as a fast option for larger alignments, with `mafft --auto input > output` for automatic strategy selection.

The manual organizes MAFFT around algorithm families: accuracy-oriented L-INS-i, G-INS-i, and E-INS-i; speed-oriented FFT-NS and NW-NS variants; PartTree for very large sequence counts; and profile alignment for group-to-group workflows.

### パッケージ好きにとっての重要性

MAFFT is one of those scientific CLI packages that anchors entire downstream workflows. It matters to package maintainers because it has many executable aliases, platform-specific source/binary packaging, a long citation trail, and users who care about exact version behavior for reproducibility.

Its history also illustrates a common bioinformatics packaging pattern: a command-line core, official web services, and many package-manager builds coexisting because researchers need both interactive alignment services and scriptable local installs.

### タイムライン

- 2002: Official references cite the original MAFFT fast Fourier transform alignment method in Nucleic Acids Research.
- 2005: Official references cite MAFFT version 5 accuracy improvements.
- 2007: Official manual updated on Jun 9, 2007.
- 2008: Official references cite recent developments outlining version 6.
- 2010: Official references cite multithreaded MAFFT.
- 2013: Official references cite MAFFT version 7 performance and usability improvements.
- 2018: Official references cite MPI parallelization for large-scale alignments.
- 2019: Official references cite MAFFT-DASH and the MAFFT online service.
- 2024: Official site lists MAFFT 7.526 as the latest version in Apr 2024.

### Related projects

- MAFFT is related to ClustalW, T-Coffee, PRRN, GenomeNet alignment services, EBI and MPI MAFFT servers, Jalview, Pfam, BioRuby, Vienna RNA package extensions, MXSCARNA, and ProbConsRNA, many of which are linked or referenced from the official site.

### ソース

- <https://gitlab.com/sysimm/mafft>
- <https://mafft.cbrc.jp/alignment/software/>
- <https://mafft.cbrc.jp/alignment/software/manual/manual.html>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - mafft - 7.505-1: normalized package name match | Debian stable package indexes: mafft from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Multiple alignment program for amino acid or nucleotide sequences | https://mafft.cbrc.jp/alignment/software/
- Nix - mafft: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mafft/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mafft - 7.505-1: normalized package name match | Ubuntu 24.04 LTS package indexes: mafft from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Multiple alignment program for amino acid or nucleotide sequences | https://mafft.cbrc.jp/alignment/software/
- MacPorts - mafft: normalized package name match | MacPorts ports tree: science/mafft/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mafft.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mafft.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
