From a3a7c7df14485272e33e0cc8333c89b276b3681f Mon Sep 17 00:00:00 2001 From: Ariosky Areces Gonzalez <48639831+arioskyag@users.noreply.github.com> Date: Fri, 1 Dec 2023 20:27:10 +0800 Subject: [PATCH 1/4] updating structure --- .../defaults/process_comp_headmodel.json | 206 +++++++++--------- .../defaults/process_import_anat.json | 14 +- .../defaults/process_import_channel.json | 12 +- cfs_properties/functions/cfs_create_db.m | 31 +++ cfs_properties/functions/cfs_get.m | 9 +- cfs_properties/functions/check_properties.m | 129 ++--------- cfs_properties/functions/get_properties.m | 74 ++++++- cfs_properties/process_comp_headmodel.json | 2 +- cfs_properties/process_import_anat.json | 2 +- cfs_properties/process_import_channel.json | 2 +- 10 files changed, 240 insertions(+), 241 deletions(-) create mode 100644 cfs_properties/functions/cfs_create_db.m diff --git a/cfs_properties/defaults/process_comp_headmodel.json b/cfs_properties/defaults/process_comp_headmodel.json index 6301245..bbb4997 100644 --- a/cfs_properties/defaults/process_comp_headmodel.json +++ b/cfs_properties/defaults/process_comp_headmodel.json @@ -2,114 +2,114 @@ "description":"", "Method":{ "description":"Recommended options EEG=<> MEG=<>. Others options <> <> <> ", - "value":"openmeeg" - }, - "method_type":[ - { - "name":"meg_sphere", - "description":"", - "MEGMethod":"meg_sphere" - }, - { - "name":"os_meg", - "description":"", - "MEGMethod":"os_meg" - }, - { - "name":"eeg_3sphereberg", - "description":"", - "EEGMethod":"eeg_3sphereberg" - }, - { - "name":"openmeeg", - "description":"", - "EEGMethod":"openmeeg", - "BemNames":["Scalp","Skull","Brain"], - "BemCond":[1,0.0125,1], - "BemSelect":[true,true,true], - "isAdjoint":false, - "isAdaptative":true, - "isSplit":false, - "SplitLength":4000 - }, - { - "name":"duneuro", - "description":"", - "EEGMethod":"duneuro", - "FemCond":[1.79,0.008,0.43], - "FemSelect":[true,true,true], - "Isotropic":true, - "UseTensor":false, - "FemMesh":{ - "Method":{ - "description":"<> <> <> <> <> <>", - "value":"iso2mesh-2021" - }, - "Methods":[ - { - "name":"iso2mesh-2021", - "MergeMethod":{ - "description":"iso2mesh <>|<> Function used to merge the meshes", - "value":"mergesurf" - }, - "MaxVol":{ - "description":"Default <<0.1>>. iso2mesh Max tetrahedral volume (10=coarse - 0.0001=fine)", - "value":0.1 - }, - "KeepRatio":{ - "description":"Default <<100>>. iso2mesh Percentage of elements kept (1-100%)", - "value":100 - } + "value":"openmeeg", + "methods":[ + { + "name":"meg_sphere", + "description":"", + "MEGMethod":"meg_sphere" + }, + { + "name":"os_meg", + "description":"", + "MEGMethod":"os_meg" + }, + { + "name":"eeg_3sphereberg", + "description":"", + "EEGMethod":"eeg_3sphereberg" + }, + { + "name":"openmeeg", + "description":"", + "EEGMethod":"openmeeg", + "BemNames":["Scalp","Skull","Brain"], + "BemCond":[1,0.0125,1], + "BemSelect":[true,true,true], + "isAdjoint":false, + "isAdaptative":true, + "isSplit":false, + "SplitLength":4000 + }, + { + "name":"duneuro", + "description":"", + "EEGMethod":"duneuro", + "FemCond":[1.79,0.008,0.43], + "FemSelect":[true,true,true], + "Isotropic":true, + "UseTensor":false, + "FemMesh":{ + "Method":{ + "description":"<> <> <> <> <> <>", + "value":"iso2mesh-2021" }, - { - "name":"iso2mesh", - "MergeMethod":{ - "description":"iso2mesh <>|<> Function used to merge the meshes", - "value":"mergesurf" + "Methods":[ + { + "name":"iso2mesh-2021", + "MergeMethod":{ + "description":"iso2mesh <>|<> Function used to merge the meshes", + "value":"mergesurf" + }, + "MaxVol":{ + "description":"Default <<0.1>>. iso2mesh Max tetrahedral volume (10=coarse - 0.0001=fine)", + "value":0.1 + }, + "KeepRatio":{ + "description":"Default <<100>>. iso2mesh Percentage of elements kept (1-100%)", + "value":100 + } }, - "MaxVol":{ - "description":"Default <<0.1>>. iso2mesh Max tetrahedral volume (10=coarse - 0.0001=fine)", - "value":0.1 + { + "name":"iso2mesh", + "MergeMethod":{ + "description":"iso2mesh <>|<> Function used to merge the meshes", + "value":"mergesurf" + }, + "MaxVol":{ + "description":"Default <<0.1>>. iso2mesh Max tetrahedral volume (10=coarse - 0.0001=fine)", + "value":0.1 + }, + "KeepRatio":{ + "description":"Default <<100>>. iso2mesh Percentage of elements kept (1-100%)", + "value":100 + } }, - "KeepRatio":{ - "description":"Default <<100>>. iso2mesh Percentage of elements kept (1-100%)", - "value":100 - } - }, - { - "name":"brain2mesh" - }, - { - "name":"simnibs3", - "VertexDensity":{ - "description":"SimNIBS <<0.1 - X>> setting the vertex density (nodes per mm2) of the surface meshes", - "value":0.5 + { + "name":"brain2mesh" }, - "NbVertices":{ - "description":"SimNIBS Number of vertices for the cortex surface imported from CAT12", - "value":15000 - } - }, - { - "name":"simnibs4", - "NbVertices":{ - "description":"SimNIBS Number of vertices for the cortex surface imported from CAT12", - "value":15000 - } - }, - { - "name":"fieldtrip", - "Downsample":{ - "description":"FieldTrip Integer, Downsampling factor to apply to the volumes before meshing", - "value":3 + { + "name":"simnibs3", + "VertexDensity":{ + "description":"SimNIBS <<0.1 - X>> setting the vertex density (nodes per mm2) of the surface meshes", + "value":0.5 + }, + "NbVertices":{ + "description":"SimNIBS Number of vertices for the cortex surface imported from CAT12", + "value":15000 + } + }, + { + "name":"simnibs4", + "NbVertices":{ + "description":"SimNIBS Number of vertices for the cortex surface imported from CAT12", + "value":15000 + } }, - "NodeShift":{ - "description":"FieldTrip <<0 - 0.49>> Improves the geometrical properties of the mesh", - "value":0.3 + { + "name":"fieldtrip", + "Downsample":{ + "description":"FieldTrip Integer, Downsampling factor to apply to the volumes before meshing", + "value":3 + }, + "NodeShift":{ + "description":"FieldTrip <<0 - 0.49>> Improves the geometrical properties of the mesh", + "value":0.3 + } } - } - ] + ] + } } - } - ] + ] + } } \ No newline at end of file diff --git a/cfs_properties/defaults/process_import_anat.json b/cfs_properties/defaults/process_import_anat.json index affd7cd..dc989e8 100644 --- a/cfs_properties/defaults/process_import_anat.json +++ b/cfs_properties/defaults/process_import_anat.json @@ -1,18 +1,18 @@ { "description":"", "anatomy_type":{ - "description":"Select the type of anatomy to use. <<1>> Brainstorm default anatomy. <<2>> HCP anatomy as Template <<3>> HCP individual anatomy", - "type":2, + "description":"Select the type of anatomy to use. <