-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add endoplasmic reticulum API for morphio.mut (#174)
- Loading branch information
Benoit Coste
authored
Mar 12, 2020
1 parent
33f69c7
commit 5447b32
Showing
17 changed files
with
348 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#pragma once | ||
|
||
#include <morphio/properties.h> | ||
#include <morphio/types.h> | ||
|
||
namespace morphio { | ||
namespace mut { | ||
/** | ||
* The entry-point class to access endoplasmic reticulum data | ||
* | ||
* Spec https://bbpteam.epfl.ch/documentation/projects/Morphology%20Documentation/latest/h5v1.html | ||
**/ | ||
class EndoplasmicReticulum | ||
{ | ||
public: | ||
EndoplasmicReticulum() = default; | ||
EndoplasmicReticulum(const std::vector<uint32_t>& sectionIndices, | ||
const std::vector<float>& volumes, | ||
const std::vector<float>& surfaceAreas, | ||
const std::vector<uint32_t>& filamentCounts); | ||
EndoplasmicReticulum(const EndoplasmicReticulum& endoplasmicReticulum); | ||
EndoplasmicReticulum(const morphio::EndoplasmicReticulum& endoplasmicReticulum); | ||
|
||
|
||
/** | ||
Returns the list of neuronal section indices | ||
**/ | ||
const std::vector<uint32_t>& sectionIndices() const noexcept; | ||
std::vector<uint32_t>& sectionIndices() noexcept; | ||
|
||
/** | ||
Returns the volumes for each neuronal section | ||
**/ | ||
const std::vector<float>& volumes() const noexcept; | ||
std::vector<float>& volumes() noexcept; | ||
|
||
/** | ||
Returns the surface areas for each neuronal section | ||
**/ | ||
const std::vector<float>& surfaceAreas() const noexcept; | ||
std::vector<float>& surfaceAreas() noexcept; | ||
|
||
/** | ||
Returns the number of filaments for each neuronal section | ||
**/ | ||
const std::vector<uint32_t>& filamentCounts() const noexcept; | ||
std::vector<uint32_t>& filamentCounts() noexcept; | ||
|
||
private: | ||
morphio::Property::EndoplasmicReticulumLevel _properties; | ||
EndoplasmicReticulum(const morphio::Property::EndoplasmicReticulumLevel&); | ||
}; | ||
} // namespace mut | ||
} // namespace morphio |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#include <morphio/mut/mitochondria.h> | ||
#include <morphio/mut/morphology.h> | ||
|
||
namespace morphio { | ||
|
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
Oops, something went wrong.