This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Tool: SeqTUI: A fast terminal-based viewer and command-line toolkit for molecular sequences (DNA, AA).

Hi all,

I’m sharing SeqTUI, a small Rust tool to inspect and manipulate biological sequences directly in the terminal (HPC/SSH-friendly).

Some key features:

  • Interactive terminal viewer (DNA/AA, aligned/unaligned, vim-style navigation)
  • CLI utilities (convert/translate/concatenate, build supermatrices, extract SNPs, pipe-friendly)
  • Export isolated biallelic SNPs to VCF

Install

cargo install seqtui

The viewer makes it easy to quickly inspect sequence files right from the terminal (e.g., over SSH).

SeqTUI screenshot

The CLI provides common utilities, e.g.:

# Convert to single-line FASTA
seqtui sequences.fasta -o sequences_1L.fasta

# Translate to amino acids
seqtui sequences.fasta -t -o sequences_AA.fasta

# Supermatrix: fill missing sequences with gaps
seqtui gene*.fasta -s -o supermatrix.fasta

# Supermatrix + partition file (IQ-TREE-compatible NEXUS)
seqtui examples/LOC* -s -t -p partitions.nex -o supermatrix.fasta

# Extract SNPs with at least 300 monomorphic sites on each side
seqtui alignment.fasta -v 300 -o snps.vcf

Since the output is FASTA with sequences on a single line, it composes well with standard Unix tools for even more tasks, e.g.:

# Check for internal stop codons in coding sequences
seqtui sequences.fasta -t -o - | grep "\*."

# Extract a subset of sequences by ID
seqtui sequences.nex -o - | grep -A1 -w -f seq_ids.txt > subset.fasta

Repo: https://github.com/ranwez-search/SeqTUI
Crate: https://crates.io/crates/seqtui

Feedback/issues very welcome.

rust sequence alignment viewer phylogenomics

0 answers

No answers yet.

Log in to answer this question.