Topological data analysis and embedding