-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added schema for functional properties (#86)
* added schema for functional propertoes * tied the schema to the upper level
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import marshmallow as mm | ||
from emannotationschemas.schemas.base import ( | ||
ReferenceAnnotation, | ||
) | ||
|
||
|
||
class FunctionalPropertiesBCM(ReferenceAnnotation): | ||
session = mm.fields.Int(required=True, description="session ID of imaging") | ||
scan_idx = mm.fields.Int( | ||
required=True, description="index of the scan within the session" | ||
) | ||
unit_id = mm.fields.Int( | ||
required=True, description="unique functional cell ID within the scan" | ||
) | ||
pref_ori = mm.fields.Float( | ||
required=True, desription="preferred orientation in radians (0 - pi)" | ||
) | ||
pref_dir = mm.fields.Float( | ||
required=True, desription="preferred direction in radians (0 - 2pi)" | ||
) | ||
gOSI = mm.fields.Float( | ||
required=True, desription="global orientation selectivity index" | ||
) | ||
gDSI = mm.fields.Float( | ||
required=True, desription="global direction selectivity index" | ||
) | ||
cc_abs = mm.fields.Float( | ||
required=True, | ||
desription="prediction performance of the model, higher is better", | ||
) |