-
Notifications
You must be signed in to change notification settings - Fork 24
Cannot read this morphology #456
Comments
The first point is not of soma type (1) but rather a custom neurite type (6). Is that intended? 1 6 -84.61 -137.5 20.87 1.000000 -1 |
@eleftherioszisis I just found it here http://www.flycircuit.tw/modules.php?name=browsing&parent=browsing&op=list_gene and was trying to build it. So I don't really know. |
Does it work if you replace 6 -> 1 in the first line? Sometimes the file formats are not standardized, and for swc the first rows should represent the soma. |
I can't remember if we're picky about the soma being the first rows (we are internally; they should be standardized); however, what don't allow is |
Hey @mgeplf I have just noticed over the last few days that there are several morphologies that identify the soma with an id that is not 1 in the SWC file. This makes me wonder whether we have to make MorphIO aware of such morphologies and load them anyways! CC: @jplanasc |
One more morphology with a branch ID of 18 !!!
Can't we just handle and branch with any id and consider it a basal dendrite just for the sake of loading it? |
According to the "spec", 1 is the soma. I don't think it's wise to start trying to detect what is a soma, vs what is not a soma for files that are non-compliant.
Arbitrarily assuming something is a basal dendrite also seems dangerous. We can add more "custom" types here: |
@mgeplf I agree with you. Nonetheless, it is really interesting that several morphologies that are even used in certain cases for validation are really not following the standard format! This is really really bad. I would therefore close the ticket. |
Yeah, I find it strange, considering the "specification" is so simple, and quite relaxed about things (too much so, IMO) |
Interesting. I see that Ascoli is an author, and there are many Allen people. There appears to be efforts to make the SWC specification more clear, and Ascoli is part of that, as are Allen people: This includes the specification:
and that the soma is labeled as |
While trying to load an SWC morphology using MorphIO, I get this error:
The morphology is attached.
104198-F-000000_seg001_linesetTransformRelease.zip
The text was updated successfully, but these errors were encountered: