Parameterized DBSCAN to take filename