quinngroup / ornet-reu-2018

OrNet work part of summer 2018 REU.
MIT License
0 stars 0 forks source link

Run existing GMM pipeline on cell data #8

Open magsol opened 6 years ago

magsol commented 6 years ago

Run @Adurden 's GMM pipeline as designed for SciPy on the cell data. Generate as many trajectories across control/LLO/mdivi as possible.

Store the intermediate values (parameters for GMM components for each frame for each cell) for downstream analysis. Could probably run for every 100th frame.

Adurden commented 6 years ago

This process should be fairly simple for all of the .mov segmented videos. The skl_gmm method in sklearngmm.py is currently set up to return the means and covars as numpy arrays shaped f,k,2 means and f,k,2,2 for the covars where f is the number of frames and k is the number of nodes. These could be saved as a .npy file which can then be passed into the get_all_aff_tables from the affinityfunc.py.

would these .npy files be fine for storing the intermediate values?

Adurden commented 6 years ago

I added a script to the ornet-trajectories repository (I know it's a different repo, but it depends on scripts in that repo) that can be passed a directory of .npy files of shape (f,x,y) where f is the number of frames and generate and save npy files of the gaussians' means and covars for each video. This will allow us to make and save the intermediates will little manual effort, just computation time . However with the artifact I'm getting from the read_video.py script (described here: https://github.com/quinngroup/ornet-trajectories/issues/12) I will have to doctor all of the .npy files I generate before being able to run it. Is anyone else experiencing that artifact with the read_video.py script when it is run on the .mov files in the dat share?

magsol commented 6 years ago

Let's try to make this repo as self-contained as possible; it has a read_video.py implementation, so let's go with that and see if the problem still crops up. If so, we'll make a ticket for it here.