Partial traceback and dynamic programming | Synapse