-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New function extract_dataframe that extract morphometrics as a datafr…
…ame (#841) if the optional argument as_frame=True, otherwise the legacy return type (dict) is used The dataframe looks like: name neurite_type ... max_segment_midpoint_Y max_segment_midpoint_Z 0 Neuron axon ... 0.000000 49.520306 1 Neuron apical_dendrite ... 0.000000 53.750948 4 simple axon ... -2.000000 0.000000 5 simple apical_dendrite ... NaN NaN And the 'neurite_type' key becomes optional for `extract_dataframe` and `extract_stats`
- Loading branch information
Benoit Coste
authored
Jul 17, 2020
1 parent
e41a817
commit df5bc62
Showing
6 changed files
with
160 additions
and
25 deletions.
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
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
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,9 @@ | ||
,name,neurite_type,max_section_length,total_section_length,total_section_volume,max_section_branch_order,max_segment_midpoint_X,max_segment_midpoint_Y,max_segment_midpoint_Z | ||
0,Neuron,axon,11.018460736176685,207.8797522090813,276.7385765728952,10.0,0.0,0.0,49.52030596415 | ||
1,Neuron,apical_dendrite,11.758281556059444,214.37304577550353,271.9412385728449,10.0,64.40167498405,0.0,53.750947521650005 | ||
2,Neuron,basal_dendrite,11.652508126101711,418.43241643793476,556.2279268208382,10.0,64.00787233325,48.48197694465,51.575580778049996 | ||
3,Neuron,all,11.758281556059444,840.6852144225195,1104.9077419665782,10.0,64.40167498405,48.48197694465,53.750947521650005 | ||
4,simple,axon,6.0,15.0,24.08554367752175,1.0,3.0,-2.0,0.0 | ||
5,simple,apical_dendrite,,0.0,0.0,,,, | ||
6,simple,basal_dendrite,6.0,16.0,27.227136331111538,1.0,3.0,5.0,0.0 | ||
7,simple,all,6.0,31.0,51.312680008633286,1.0,3.0,5.0,0.0 |