Functions Comparison
This page gives a compact map for users who know the R sequence-analysis ecosystem and want to find the closest Sequenzo entry points in Python.
Sequenzo is not a line-by-line clone of TraMineR, WeightedCluster, TraMineRextras, or seqHMM. The goal is to preserve the main analytical workflows while using Python-style objects such as SequenceData, NumPy arrays, pandas data frames, and matplotlib-based plotting.
Typical Workflow
| R workflow | Sequenzo entry point | Where to read next |
|---|---|---|
Define state sequences with TraMineR::seqdef() | SequenceData | SequenceData |
Compute sequence distances with TraMineR::seqdist() | get_distance_matrix() | Get Distance Matrix |
Hierarchical clustering with stats::hclust() on a distance matrix | Cluster / ClusterResults | Hierarchical Clustering |
PAM / medoid clustering with WeightedCluster::wcKMedoids() | KMedoids | KMedoids |
| Cluster quality evaluation | ClusterQuality | Cluster Quality |
Module-Level Mapping Pages
| Topic | Mapping page |
|---|---|
| Sequence Characteristics Indicators | Sequence Characteristics: Sequenzo and TraMineR Mapping |
| Statistical summaries | Statistical Helpers: Sequenzo and TraMineR Mapping |
| Visualization | Visualization Functions: Sequenzo and TraMineR Mapping |
| Event sequences | Event Sequences: Sequenzo and TraMineR Mapping |
| Multidomain / polyadic analysis | Multidomain: Sequenzo and TraMineR Mapping |
| Discrepancy analysis | Discrepancy Analysis: Sequenzo and TraMineR Mapping |
| Group comparison | Group Comparison: Sequenzo and TraMineR Mapping |
| Hidden Markov models | Markov Chain Models: Sequenzo and seqHMM Mapping |
Naming Notes
- R arguments such as
alphabetare often represented bystatesin Sequenzo, becauseSequenceDatastores the categorical state space explicitly. - Sequenzo uses snake_case function names, while R functions often use compact names such as
seqdss,seqdur, ordissassoc. - Many Sequenzo pages include a local "R Counterpart" or "TraMineR Parameter Mapping" section for argument-level translation.
For a runnable end-to-end path, start with the Quickstart and then use the Typical Workflow.