Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

am_cellgen: command not found #16

Open
FireworkZhao opened this issue Jul 25, 2024 · 3 comments
Open

am_cellgen: command not found #16

FireworkZhao opened this issue Jul 25, 2024 · 3 comments

Comments

@FireworkZhao
Copy link

After cmake .. and make, I got the reslult:

[100%] Built target am_meshstat```
But, when I try to run ```am_cellgen -i L-glu-8-31-16-b0023-image.CNG.swc```, it says: am_cellgen: command not found.
What's the possible cause of this situation
@FireworkZhao
Copy link
Author

I tried to add the newly generated bin file to the path and tried to generated again.
The result shows:
AnaMorph cell generator (non-linear geometric modelling). swc input file name: "L-glu-8-31-16-b0023-image.CNG.swc"
reading network from input swc file "L-glu-8-31-16-b0023-image.CNG.swc"..ERROR: Caught string exception at top level. message: "CellNetwork::readFromNeuroMorphoSWCFile(): unable to open SWC file for reading."

@FireworkZhao
Copy link
Author

the error seems to change once I input a different swc file. Some of them can be processed but the output seems to be fault.
for example this swc file and its corresponding result:
fig1

@bsumirak
Copy link
Member

Hi FireworkZhao,

I downloaded the "L-glu-8-31-16-b0023-image.CNG.swc" geometry from neuromorpho.org and also got an error.
The (initial) problem is that the file does not specify any soma points. This is unsupported (yet the absenece of any useful hint to this problem is definitely not helping).
Apparently, any vertex without parent (predecessor index -1) must be a soma vertex. Changing vertex 1 to soma type (1) circumvents this issue. But then there are geometrical problems in the geometry and the 3d geometry generation still fails.

The problem with the geometry "cell011.CNG" (also obtained from neuromorpho-org) is that it contains "custom" vertices (compartment type 7), which are unsupported in AnaMorph and silently ignored.
I replaced 7 by 3 (basal dendrite) and then it worked and the output seems to be in line with what your picture displays.

I do not know why only compartment types 1 through 4 are supported, as the type does not matter to AnaMorph anyway (except soma/non-soma), but that is what the code says.

Hth. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants