Functions and Classes in Sequenzo
This page lists all the tools (functions) and building blocks (classes) available in Sequenzo. Think of it as a complete catalog of everything you can do with the package. Click on any item to see detailed instructions and examples.
Core Building Blocks
SequenceData- The foundation class for working with your sequence data
Data Preparation Tools
- Data format conversion
wide_to_long_format_data()andlong_to_wide_format_data()- Convert between wide and long data formats
handle_missing_values()- Check missing data pointsassign_unique_ids()- Generate stable identifiers for sequencesclean_time_columns()- Parse and normalize time-related columnsreplace_cluster_id_by_labels()- Replace numeric cluster IDs with labels
Sequence Analysis
Visualization
plot_sequence_index()- Create visual timeline of sequencesplot_state_distribution()- Show how states change over timeplot_modal_state()- Visualize the most common state at each timeplot_most_frequent_sequences()- Display the most common sequencesplot_mean_time()- Average time spent in each stateplot_transition_matrix()- Visualize transitions between statesplot_relative_frequency()- Relative frequency of statesplot_single_medoid()- Plot a representative sequence for a cluster
Measuring Dissimilarities Between Sequences
get_distance_matrix()- Calculate how different sequences are from each other
Clustering Analysis: Grouping Similar Sequences
KMedoids- Partitioning-based clustering for sequencesCluster()- Overview of hierarchical clustering for sequences, andCluster()ClusterQuality()- Evaluate clustering qualityClusterResults()- Inspect results and extract representatives
Tools for Large Datasets
CLARA (KMedoids for large datasets)- Efficient clustering on large datasets