def nmds(file,dimensions=2): samples, distmtx = parse_distmat(file) nmds_res = nmds_module.NMDS(distmtx,verbosity=0,dimension=dimensions) pts = nmds_res.getPoints() stress = nmds_res.getStress() return format_nmds_coords(samples, pts, stress)
def nmds(file, dimensions=2): samples, distmtx = parse_distmat(file) nmds_res = nmds_module.NMDS(distmtx, verbosity=0, dimension=dimensions) pts = nmds_res.getPoints() stress = nmds_res.getStress() return format_nmds_coords(samples, pts, stress)