Skip to content

davidackerman/nnmf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Non-negative Matrix Factorization

This code was originally developed and written by the Kaspar Podgorski lab at Janelia.

Non-negative matrix factorization (NMF) is a technique used to find correlated regions in a series of images. The goal is to find a limited number basis set of images that can be combined with different weightings to recreate - as best as possible - each of the different images in the dataset. Here is a good explanation.

In this repository, the goal is to use non-negative matrix factorization to find correlated clusters of pixels in a time series of fluorescent images during neuronal firing. In other words, it is used to find clusters of pixels that fire similarly throughout the time series. This process involves several stages:

  1. The code takes in a flourescent time series as well as an optional sigma to be used in a guassian smoothing of images; the default sigma is 2.
  2. A smoothed fluorescent baseline F0 is calculated for each pixel using a leaky cumulative minimum.
  3. ΔF is calculated for each image in the series by subtracting F0 from the image; F0 is then ensured to be positive.
  4. A high pass filter is applied to the ΔF time series. The resultant images are smoothed and used to create a correlation image.
  5. Peaks in the correlation image are used as input to the NMF to help initialize cluster finding.
  6. NMF is then applied to the ΔF time series, with additional contiguous contraints on clusters such that each correlated cluster of pixels must be contiguous.
  7. Small correlated clusters are then merged.
  8. Cluster metrics are calculated using the most sensitive pixels per cluster.
  9. All relevant information is returned as a struct.

processMiniData_edited.m is the function used to perform the NMF.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages