Inference of global clusters from locally distributed data