To group by connectivity looks like you need to add

d._group_con.value = True

To figure out this stuff you would need to look at the Segger user interface code, it is in the ChimeraX distribution (under site-packages/chimerax/segger/segment_dialog.py) or on GitHub

https://github.com/tomgoddard/segger/blob/master/Segger/src/segment_dialog.py

  Tom


On Jul 30, 2021, at 10:42 AM, Sam W Marchant <smarchant@UCSD.EDU> wrote:

Thanks so much im trying to group by connectivity and I am having trouble finding the right line of code to add that ability. Any thoughts?

On Jul 29, 2021, at 3:56 PM, Tom Goddard <goddard@sonic.net> wrote:

Hi Sam,

  I did an initial port of Segger from Chimera to ChimeraX (also called Segment Map) but that code was written by Greg Pintilie and he has not worked the ChimeraX version so there is no new command to run it in a script.  It would probably not be too hard to write some Python to run it.  The Chimera script mentioned in the mailing list is attached to my message about it. 


That won't work in ChimeraX, but here I attach the equivalent for ChimeraX.

  Segger was developed to segment molecules in EM maps, so I have doubts that it will do much good for your light microscopy.  But you can decide that by running it by hand on some time steps and see if you like the result.

  Here is a different approach we used to quantify protrusions of crawling neutrophils in light sheet microscopy by placing markers that might be of interest.


  Tom



On Jul 29, 2021, at 3:24 PM, Sam W Marchant via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Hi,
I am looking to apply the Map Segmenting to multiple time series of light sheet imaging and so I was wondering if there is either a command or a python function to automate the process. It looks here that you said it was going to be added to ChimeraX but I cannot find any info on how to do it. If not you mentioned a script in this answer, could you potentially send that to me?
Thanks,
Sam Marchant.
_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

<segscript.py>