TDAstats: R pipeline for computing persistent homology in topological data analysis