Skip to content

FAMSA

FAMSA is a multiple sequence alignment program for large protein datasets. It can align hundreds of thousands, or with its medoid tree heuristic even millions, of sequences in reasonable time.

License

Free to use and open source under GNU GPLv3.

Available

  • Roihu-CPU: 2.5.2, via the bio-apps module.

Usage

FAMSA is part of the bio-apps collection on Roihu. Load the bio-apps module tree and then the FAMSA module:

module load bio-apps/v202603
module load famsa/2.5.2

FAMSA takes the sequences to align in FASTA format (optionally gzipped) and writes the alignment in FASTA format:

famsa -t 8 sequences.fasta alignment.fasta

Always set the number of threads with -t to match the cores reserved for your job.

Other useful options:

  • -gt: guide tree method: sl (single linkage, default), upgma or nj
  • -medoidtree: fast approximate guide tree for very large datasets
  • -gz: write the alignment gzipped

Run famsa -help to see all options.

Example batch script

#!/bin/bash
#SBATCH --job-name=famsa
#SBATCH --account=<project>
#SBATCH --output=output_%j.txt
#SBATCH --error=errors_%j.txt
#SBATCH --partition=small
#SBATCH --time=04:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem=8G

module load bio-apps/v202603
module load famsa/2.5.2

famsa -t $SLURM_CPUS_PER_TASK sequences.fasta alignment.fasta

Replace <project> with your CSC project (for example project_2001234).

See creating a batch job script for Roihu for more information about running batch jobs.

Support

CSC Service Desk

More information

Do you find this page useful?
Thank you for your feedback!
Thank you! Your feedback is appreciated.

Please let us know how we could improve this page by contacting us or by creating an issue in GitHub. You can also edit this page yourself and contribute your improvements by creating a pull request.

November 13, 2026