Unsupervised methods for neural data analysis with single trial resolution