Hi Sanja,
On Wed, Oct 31, 2018 at 04:26:47AM -0700, Sanja Jasek wrote:
>I have several questions about attachment connectors:
Just to provide some context, attachment connectors were originally
created to link vesicles to a particular synapse or location on a
skeleton. The relevant relations with respect to a connector are
"attachment_of" and "close_to". A attachment connector is attached to a
particular treenode. Other single treenodes can then link to it using
the close_to relation.
>1. We want to mark attachments like tight junctions and desmosomes.
>What would be the best approach for this? We think the attachment
>connector type is closest to what we are looking for, but that's only
>one connector type and we want to mark several different junction
>types.
I guess it depends a bit on how exactly you want to annotate this. If
you want to attach the mere fact that there are tight junctions and
desmosomes at a particular location in a skeleton, an attachment
connector with its close_to relation would only work if you woul
additionally qualify the attachment treenodes with an annotation or,
alternatively, tag the connector nodes.
Looking at your screenshot though it looks like you would want to link
two skeletons through such a junction connector or desmosomes connector.
In that case I believe it might be better if I would just add these
connector types to CATMAID itself. I suppose both types would work like
gap junctions, i.e. non-directional and a maximum of two skeletons can
be linked with a gap junction connector? This would make it easier to
look at the two types separately from each other. It would be relatively
easy to add support in the creation context menu, default connector
types, Connectivtiy Widget, Graph Widget and 3D Viewer.
>2. There are two ways of adding the attachment connector, with
>different color codes:
>a) select a skeleton, alt+click somewhere and select attachment,
>shift+click on another skeleton (upper connector in
>attachments_2018-10-37.png)
>b) select a skeleton, alt+click somewhere and select attachment, alt+click
>on another skeleton (lower connector in attachments_2018-10-37.png)
>This is confusing. Does the b) version have a function?
I agree, this behavior is confusing. Alt + Click has two modes of
operation at the moment, depending on whether a connector or a treenode
is selected. Originally, Alt + Click was only used to mark gap
junctions. With the introduction of more connector types, we started to
use the context menu on Alt + Click when a node is selected. I changed
this behavior so that on Alt + Click now always a menu is shown,
regardless of what node type is selected. This I feel is the least
surprising mode of operation, plus it provides the most flexibility.
>3. Only attachments marked with method 2.a) show up in the connectivity
>widget. Is this intentional?
Yes, because the Connectivity Widget displays connections between
skeletons, which means both the link from skeleton A to a connector and
the link from the connector to skeleton B are looked at. Only a
particular set of link type combinations is supported by the
Connectivity Widget: pre->post, post<-pre, gapjunction-gapjunction,
attachment-close_to. For attachment connectors this currently means that
they are only shown if skeleton A and B are linked by A using the
"attached_to" relation with a connector and skeleton B using the
"close_to" relation to link to that connector (which are automatically
used with Shift + Click on an attachment connector, link arrows are
shown in yellow).This is admittedly not obvious at all, but is the
semantic I chose attachment connectors to have at some point to be
easier to extend.
By the way, you can also show other connection types in the Graph
Widget, by selecting the representative link types from the "Properties"
dialog or the "Edges" tab.
>3. When listing connections in the connectivity widget, attachments
>only show up on the "pre-synaptic" neuron (attachments_2018-10-37.png shows the
>"post-synaptic" neuron). But aren't attachments supposed to be
>non-directional?
Well, not really. Like said above, originally I created them to
represent things that were attached to a particular location in a
skeleton (e.g. vesicles) and not necessarily two neurons. In this
context the neuron with the "attached_to" relation (the "first" relation
created to the connector) is sort of the "origin" of these links. With
dedicated connector types,
>4. Setting attachment as the default connector type doesn't work and I
>get a warning (see unknown_connector_type_2018-10-31.png). This only
>happens with the attachment connector type; synaptic, abutting, and gap
>junction all work.
Thanks for reporting this. Shift + Click with attachment connectors
should work now if they are set as default connector type.
Best,
Tom