Expand description
§Utilities for alignment manipulation and summary statistics
SEGUL provides fast and memory efficient utilities for alignment manipulation and summary statistics.
§Features:
- Alignment concatenation
- Alignment conversion
- Alignment filtering
- Alignment partition conversion
- Alignment splitting
- Alignment summary statistics
- Contiguous sequence summary statistics
- Raw read summary statistics
- Sample distribution mapping
- Sequence extraction
- Sequence ID renaming
- Sequence removal
- Sequence translation
- Sequence unique ID parsing
§Example
§Convert fasta to philip alignment
ⓘ
use std::path::Path;
use segul::helper::types::{DataType, Header, InputFmt, OutputFmt, SeqMatrix};
use segul::helper::sequence::SeqParser;
use segul::writer::sequences::SeqWriter;
let input = Path::new("tests/files/simple.fas");
let output = Path::new("tests/data/alignment.phy");
let input_fmt = InputFmt::Fasta;
let output_fmt = OutputFmt::Phylip;
let datatype = DataType::Dna;
let (sequence_matrix, header) = SeqParser::new(input, &datatype).parse(&input_fmt);
let writer = SeqWriter::new(output, &sequence_matrix, &header);
writer.write_sequence(&output_fmt).unwrap()
Modules§
- Command line interface for parsing and executing commands.
- Handle segul main functions.
- Helper functions for the SEGUL features.
- All the parsers for the supported formats.
- Sequence summary statistics
- Writer trait and its implementations.