Text this: Single-cell trajectory inference for detecting transient events in biological processes