brainlit
brainlit copied to clipboard
Convert .swc file to .mat file, and randomly merge neurons
While neuron traces are often stored in the .swc format, there are certain limitations to neuron structure within .swc files. A feature is needed to convert .swc files to .mat files, which store neurons as vertex and edge lists.
Additionally, the feature should allow for the merging of multiple individual neurons by creating random edges between two neurons - this will be used to evaluate the performance of G-Cut, a program from the following paper designed to segment individual neurons from neuron clusters: https://www.nature.com/articles/s41467-019-09515-0
link to G-cut code
More specifically, lets have the random edge function run according to the inputs "number of new edges" (which I think is clear what it does) and "proximity bias" (which should be some way to choose between randomly connecting nodes of different neurons, to a method that preferentially, bu still randomly connects nodes that are close to another). Then the output should be a mat file
G-cut code: https://[email protected]/muyezhu/gcut.git