gp3sequencespy 0.1.2 Stable · PyPI

See sequence structure.
Model what changes.

A parity-first Python toolkit for ordered categorical sequences and scanpaths: audit data, discover motifs, compare trajectories, model transitions and latent states, test group structure, and report every analytical choice transparently.

81/81 R API counterparts 292 tests 100% statement + branch coverage 3/3 mutation smoke
sequence explorer
S01
S02
S03
S04
S05
distance0.28
motifs12
states4
states → structure → evidence
Install stable pip install gp3sequencespy==0.1.2
01

Start from the research question

Choose the analysis by what you need to learn.

Move from a substantive question to an auditable method instead of starting from a function name.

Not sure which route fits?Use the method map to move from question → assumptions → function family.
Open method map
02

A defensible workflow

From raw events to a reportable result.

Every stage keeps assumptions and transformations visible.

01Auditintegrity · order · missingness
02Prepareexplicit transformation policy
03Describestates · paths · motifs
04Comparedistance · groups · stability
05Modeltransitions · networks · HMMs
06Reportplots · parameters · audit trail

A small API, composed into a full workflow

The same prepared sequence object can feed descriptive summaries, distances, networks, latent models, inference, and visualisation.

Quickstart →
import gp3sequencespy as g

validation = g.validate_sequence_data(data)
prepared = g.prepare_sequence_data(data)

states = g.summarise_sequence_states(prepared.data)
distance = g.compute_sequence_distance(
    prepared.data,
    method="lcs",
)
network = g.create_transition_network(
    prepared.data,
    normalise="from",
)
03

See the structure

Visual outputs that stay connected to the method.

Use plots as analytical summaries, not decoration. Each gallery entry links back to the generating function and interpretation notes.

04

Evidence, not just features

Built around explicit scientific contracts.

The Python implementation is tested against a frozen R reference and exposes its translation boundaries instead of hiding them.

Parity-first implementation

Frozen behavior. Audited translation. Python-native integration.

gp3sequencespy implements the frozen gp3sequences 0.3.0 public contract. Public signatures, translated test blocks, deterministic oracles, and deliberate R→Python boundaries are documented as release evidence.

81 / 81public R counterparts exported
81 / 81public signatures audited
130 / 130frozen R test blocks translated
15methodology articles
R→Py

Coming from gp3sequences in R?

Use the translation guide to map function names, return structures, plotting conventions, and documented semantic differences.

Open the R → Python guide →
API

Already know the method?

Jump directly to the frozen public API and inspect signatures, parameters, return objects, and implementation notes.

Browse all public functions →
!
Interpretation boundary

Sequence structure is not a psychological state.

Sequence structure does not independently establish attention, cognition, emotion, comprehension, personality, intention, deception, diagnosis, or causality. Observational group contrasts remain associational unless a defensible randomized design supports causal interpretation.

Ready to analyse a sequence?

Start small. Keep every decision visible.

Install 0.1.2, validate a three-column sequence table, and expand only when the research question requires it.