From 12ea0d64fda21de1e1eb73401418c87e059814e5 Mon Sep 17 00:00:00 2001 From: Ariosky Areces Gonzalez <48639831+arioskyag@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:16:30 +0800 Subject: [PATCH] Delete export_subject_BCV_structure.m --- .../export/export_subject_BCV_structure.m | 57 ------------------- 1 file changed, 57 deletions(-) delete mode 100644 functions/export/export_subject_BCV_structure.m diff --git a/functions/export/export_subject_BCV_structure.m b/functions/export/export_subject_BCV_structure.m deleted file mode 100644 index 19da4ae..0000000 --- a/functions/export/export_subject_BCV_structure.m +++ /dev/null @@ -1,57 +0,0 @@ -function export_error = export_subject_BCV_structure(properties,subID,CSurfaces,sub_to_FSAve) - -%% -%% Get Protocol information -%% -export_error = []; - -% Get subject directory -ProtocolInfo = bst_get('ProtocolInfo'); -sSubject = bst_get('Subject', subID); -output_path = properties.general_params.output_path; - - -% Get the current Study -[sStudies, ~] = bst_get('StudyWithSubject', sSubject.FileName, 'intra_subject'); -if(length(sStudies)>1) - conditions = [sStudies.Condition]; - sStudy = sStudies(find(contains(conditions,strcat('@raw')),1));else - sStudy = sStudies; -end -if(isempty(sSubject) || isempty(sSubject.iAnatomy) || isempty(sSubject.iCortex) || isempty(sSubject.iInnerSkull) || isempty(sSubject.iOuterSkull) || isempty(sSubject.iScalp)) - return; -end - -%% Uploding Subject file into BrainStorm Protocol -disp('BST-P ->> Uploading Subject file into BrainStorm Protocol.'); -disp('=========================================================================='); - -%% -%% Genering leadfield file -%% -disp ("-->> Genering leadfield file"); -[HeadModels,modality] = get_headmodels(ProtocolInfo.STUDIES,sStudy); - -%% -%% Genering Channels file -%% -disp ("-->> Genering channels file"); -if(isempty(sStudy.iChannel)) - sStudy.iChannel = 1; -end -BSTChannelsFile = bst_fullfile(ProtocolInfo.STUDIES,sStudy.Channel(sStudy.iChannel).FileName); -Cdata = load(BSTChannelsFile); - -%% -%% Getting surfaces -%% -[Shead, Sout, Sinn, Scortex] = get_surfaces(ProtocolInfo, sSubject, CSurfaces, sub_to_FSAve); - -%% -%% Saving files in BC-VARETA Structure -%% -base_path = fullfile(output_path,'BC-V_Structure',ProtocolInfo.Comment); -save_output_files(base_path, modality, subID, HeadModels, Cdata, Shead, Sout, Sinn, Scortex); - -end -