--add functionality to parse inferred TFS (or infer them with the python
implementation)
--fix boundary cases with subsampling