SEGUL comes as a desktop and mobile app (GUI), a terminal command (CLI), and libraries for Python, Rust, and R (API). This page gets you from install to a first run.
On Linux and macOS, the installer script picks the right build and needs no root access:
Terminal window
curl-fsSLhttps://segul.app/install.sh|sh
On Windows, or to install by hand, download the binary for your system, unpack it, and put segul on your PATH. The CLI installation guide walks through each method.
On Linux or macOS with Bioconda set up, you can use conda instead. It may not work on older Linux systems found on some HPC clusters. See the Bioconda guide.
Terminal window
condainstallbioconda::segul
PySEGUL is the Python binding to the SEGUL library. It needs no Rust knowledge.
Terminal window
pipinstallpysegul
Add the SEGUL crate from crates.io to your project. The same crate also works from R, which needs some Rust knowledge.
Removing an input file only takes it off the list. It stays on disk.
Open the app and choose a task group in the navigation bar, such as Alignments. Then pick a tool, such as Concatenate alignments. On narrow windows, tap the tool name at the top to switch tools.
Select Browse files, Browse folder, or Open archive to add the input.
Choose an output folder and fill in any parameters the task needs. On mobile, output goes to the app's own folder.
Select Run. Open the output files in the built-in viewer, or export them as a ZIP or gzip archive.
Without --output, SEGUL writes to a default folder named after the task, such as Align-Concat.
SEGUL detects the input format from the file extension. For other extensions, set it with --input-format. Common commands:
Concatenate a folder of NEXUS alignments into FASTA with a RAxML partition file:
import pysegul
concat = pysegul.AlignmentConcatenation(
"nexus",# input format
"dna",# data type
"output",# output folder
"fasta",# output format
"raxml",# partition format
"concatenated",# output file prefix
)
concat.from_dir("alignments")
Most classes follow this pattern. Tasks with extra parameters, such as filtering or extraction, set the input first and then call a method. See the PySEGUL guide.
This material is based upon work supported by the National Science Foundation under grant numbers: DEB-1754393 and DEB-2244754. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.