forked from NeuroML/pyNeuroML
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NeuroML#404 from AdityaBITMESRA/feat/ExportSWC
Feat/export swc-Adds function to export SWC graph to a new SWC file
- Loading branch information
Showing
8 changed files
with
159 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Case 1: Single contour soma case | ||
# Fixed: 3 point soma centred at origin, length 20um, radius 10um | ||
|
||
1 1 0 0 0 10 -1 | ||
2 1 0 -10 0 10 1 | ||
3 1 0 10 0 10 1 | ||
|
||
# Branching dendrite starting at "edge" of soma | ||
|
||
4 3 10 0 0 2 1 | ||
5 3 30 0 0 2 4 | ||
6 3 40 10 0 2 5 | ||
7 3 40 -10 0 2 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Case 2: No soma case | ||
# NO CHANGE FROM ORIGINAL FORMAT | ||
|
||
# Soma not reconstructed... | ||
# 3 axons emanate from the same point | ||
|
||
1 2 0 0 0 2 -1 | ||
2 2 20 0 0 2 1 | ||
|
||
3 2 0 20 0 2 1 | ||
4 2 0 30 0 2 3 | ||
|
||
5 2 0 -20 0 2 1 | ||
6 2 0 -30 0 2 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Case 3: Multiple contours soma case | ||
# Fixed: 3 point soma centred at origin, length 20um, radius 10um | ||
|
||
1 1 0 0 0 10 -1 | ||
2 1 0 -10 0 10 1 | ||
3 1 0 10 0 10 1 | ||
|
||
# Single dendrite starting at "edge" of soma | ||
|
||
4 3 10 0 0 2 1 | ||
5 3 20 0 0 2 4 | ||
6 3 30 0 0 2 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Case 4: Multiple cylinder soma case | ||
# NO CHANGE FROM ORIGINAL FORMAT | ||
|
||
# 4 real soma points, i.e. 3 real segments starting at origin | ||
|
||
1 1 0 0 0 5 -1 | ||
2 1 0 5 0 10 1 | ||
3 1 0 10 0 10 2 | ||
4 1 0 15 0 5 3 | ||
|
||
# One dendrite starting at top of soma, one starting at the bottom, one from side | ||
|
||
5 3 0 20 0 5 4 | ||
6 3 0 30 0 5 5 | ||
|
||
7 3 0 -5 0 5 1 | ||
8 3 0 -15 0 2.5 7 | ||
|
||
9 3 10 10 0 5 2 | ||
10 3 20 10 0 5 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Case 5: Spherical soma case | ||
# Fixed: 3 point soma centred at origin, length 20um, radius 10um | ||
|
||
1 1 0 0 0 10 -1 | ||
2 1 0 -10 0 10 1 | ||
3 1 0 10 0 10 1 | ||
|
||
# 3 dendrites emanate from the soma, starting at a distance of 10um from the origin | ||
|
||
4 3 10 0 0 2 1 | ||
5 3 30 0 0 2 4 | ||
|
||
6 3 0 10 0 2 1 | ||
7 3 0 30 0 2 6 | ||
|
||
8 3 0 -10 0 2 1 | ||
9 3 0 -30 0 2 8 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters