ebook img

Scripting reference for BrainVoyager 20.6 PDF

139 Pages·2017·6.63 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Scripting reference for BrainVoyager 20.6

Scripting Reference for BrainVoyager 20.6 HesterBremanandRainerGoebel Copyright2017(cid:13)c BrainInnovationB.V. Contents 1 Introduction 4 1.1 Locationofscriptfiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.1 ScriptinginBrainVoyager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.2 Documentationhistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3 SwitchingfromscriptinginBrainVoyagerQX2.0to2.1orhigher . . . . . . . . . . . . . . 9 2 TheBrainVoyagerScriptEditor 10 2.1 GeneralpropertiesoftheBrainVoyagerScriptEditor. . . . . . . . . . . . . . . . . . . . . . 10 2.1.1 Theuserinterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 Creatingscripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 Runningscripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4 Usingtheinterpreter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.5.1 Settingbreakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3 BrainVoyagerScriptingCommands(API) 17 3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.1.1 InvokingBrainVoyagerscriptingfunctionsfromotherprograms . . . . . . . . . . 17 3.1.2 Examplescript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.2 Listofallmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3 BrainVoyager-specificclasses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.4 FunctionsoftheBrainVoyagerobject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.4.1 Listofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.4.2 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.5 Createprojects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.5.1 ListofMethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.5.2 CreateFMRproject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.5.3 CreateDMRprojects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.5.4 CreateVMRprojects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.5.5 CreateAMRprojects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.5.6 Forallprojects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.5.7 Examplescripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.6 BVDocumentfunctions: Preprocessingoffunctionaldata(FMR) . . . . . . . . . . . . . . 31 3.6.1 Listofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.6.2 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.6.3 Examplescript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.6.4 Examplescript‘HighPassFilterUsingGLM.js’ . . . . . . . . . . . . . . . . . . . . . . 38 3.7 BVdocumentfunctions: Preprocessingoffunctionaldata(VTC) . . . . . . . . . . . . . . . 39 3.7.1 Listofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 3.7.2 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.7.3 Examplescript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.8 BVdocument(mesh)functions: Preprocessingoffunctionaldata(MTC) . . . . . . . . . . 42 3.8.1 Listofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.8.2 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.8.3 Examplescript“MeshMTCPreprocessing.js” . . . . . . . . . . . . . . . . . . . . . . 44 3.9 BVProjectfunctions: Experimentaldesign. . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 1 3.9.1 ListofMethodsforstimulationprotocols . . . . . . . . . . . . . . . . . . . . . . . . 45 3.9.2 ListofPropertiesforstimulationprotocols . . . . . . . . . . . . . . . . . . . . . . . 45 3.9.3 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.9.4 Examplescripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.9.5 ListofMethodsfordesignmatrices . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.9.6 ListofPropertiesfordesignmatrices . . . . . . . . . . . . . . . . . . . . . . . . . . 49 3.9.7 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 3.9.8 Someelaborationondesignmatrixproperties . . . . . . . . . . . . . . . . . . . . . 51 3.9.9 Examplescripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.10 BVProjectfunctions: Statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.10.1 ListofMethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.10.2 ListofProperties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.10.3 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.10.4 Examplescripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 3.11 BVProjectfunctions: Statisticsonregions-of-interest(ROI/VOI) . . . . . . . . . . . . . . . 62 3.11.1 ListofMethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 3.11.2 ListofProperties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 3.11.3 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 3.11.4 Examplescript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 3.12 BVProjectfunctions: TransformationsandNormalization . . . . . . . . . . . . . . . . . . 66 3.12.1 Listofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 3.12.2 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 3.12.3 ExamplescripttocreateaVMRandtransformtoTalairachspace . . . . . . . . . . 74 3.12.4 ExamplescripttocreateVTCfiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 3.12.5 Creatingdiffusionweighted(VDW)files . . . . . . . . . . . . . . . . . . . . . . . . 76 3.12.6 ExamplescripttocreateVDWfiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 3.13 BVProjectfunctions: Surfacefunctions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 3.13.1 ListofMethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 3.13.2 ListofProperties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 3.13.3 DescriptionofVMRobjectmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 3.13.4 DescriptionofMeshobjectandMeshSceneobjectmethods . . . . . . . . . . . . . . 81 3.13.5 Descriptionofproperties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 3.13.6 Examplescript: visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 3.13.7 Examplescript: createMTC(viaVMR) . . . . . . . . . . . . . . . . . . . . . . . . . 92 3.13.8 Examplescript: createMTC(viameshobject) . . . . . . . . . . . . . . . . . . . . . 92 3.13.9 Examplescript: Cortex-BasedAlignment(viameshsceneobject) . . . . . . . . . . 93 3.13.10Examplescript: loadingamesh(viameshsceneobject) . . . . . . . . . . . . . . . . 94 3.13.11Examplescript: smoothingandinflatingamesh(viameshobject) . . . . . . . . . . 95 3.13.12Examplescript: createMTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 3.13.13Examplescript: preprocessingan*.mtcfile(viameshobject) . . . . . . . . . . . . . 96 3.13.14Examplescript: singlestudyGLMonmeshdata(viameshobject) . . . . . . . . . 97 4 Fileinputandoutput(I/O) 98 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 4.1.1 UsingtheBrainVoyagerobject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 4.1.2 UsingQtobjects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 4.1.3 Listof(some)methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 4.1.4 Detaileddescriptionofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 4.2 ClassQIODevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 4.2.1 Listofmethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 4.2.2 ClassQTextStream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 4.3 Examplescripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4.3.1 Examplescripts: getfilenameanddirectoryname . . . . . . . . . . . . . . . . . . . 101 4.3.2 Examplescripts: writeafileI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4.3.3 Examplescript: writeafileII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4.3.4 Examplescript: readafile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.3.5 Example: deleteafile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 2 5 Creatingscriptswithdialogs 105 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.2 WritingGUIscripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.2.1 Capturingemittedsignals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.2.2 Collectinginformationinthedialog . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3 Otherfunctionsthatcanbeusedwiththewidgets . . . . . . . . . . . . . . . . . . . . . . . 106 5.3.1 ComboBox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 5.3.2 QListWidget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 5.3.3 Functionsfornon-GUIscriptsvs. functionsinGUIscripts: theScriptObject . . . . 108 5.3.4 Anexamplescriptwithdifferentwidgets . . . . . . . . . . . . . . . . . . . . . . . . 109 5.3.5 TheJavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 5.3.6 Theuserinterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 5.4 ProceduretocreateaGUIscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 5.4.1 Theuserinterface(*.ui) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 5.4.2 Runningascriptwithuserinterface . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 5.4.3 Catchingerrors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 6 JavaScriptlanguagereference 119 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.2 Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.2.1 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.2.2 Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 6.2.3 Controlstatements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 6.2.4 Errorhandling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 6.2.5 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 6.3 Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 6.3.1 Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 6.3.2 String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 6.3.3 Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 6.3.4 RegExp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 6.3.5 Dateandtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 6.4 Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.4.1 Creatingobjects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.4.2 UsingQtObjects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 3 Chapter 1 Introduction WelcometotheBrainVoyagerScriptingReferenceManual!1 Inadditiontothenewdatamanagement tools,scriptingcanbeanoptiontoautomatedataanalysisprocesses. ThisreferencemanualcanbeusedforscriptinginBrainVoyager20.x(BrainVoyagerQX3.0),butmost commands can also be used in BrainVoyager QX 2.8, 2.6, 2.4 and 2.3, some even in BrainVoyager QX 2.2,andsomeinBrainVoyagerQX2.1. ThismanualcontainstheBrainVoyagerfunctions(Application Programmer’s Interface (API), see Chapter 3), some introduction to the JavaScript language (Chapter 6)andashortsectiononwritingscriptsinBrainVoyagerwithauserinterface(seeChapter5). Whenstartingwithscripting,inBrainVoyageroringeneral,pleasealsocheckoutourGettingStarted withScripting inBrainVoyagerGuide. This canbefoundin the“GettingStartedGuides”folder ofthe BrainVoyagerdirectoryoronlineattheBrainVoyagersupportsite. Latestupdate: 15-08-2017 1.1 Location of script files Scripts(*.js)forBrainVoyagercanbestoredinthefolder (My) Documents/BVExtensions/Scripts/,sothattheywillbepresentintheBrainVoyager“Scripts” menu. ScriptsforBrainVoyagerQXcanbestoredinthefolder (My) Documents/BVQXExtensions/Scripts/. An option to specify a custom scripts folder has beenaddedinv2.4.1. Userscanswitchbetweenstandardandcustomfolderin“Settings”dialog. 1Thisusedtobecalledthe‘ScriptingGuide’butthenewnames‘GettingStartedGuideforscripting’and‘ScriptingReference Manual’arehopefullymoreclear. 4 1.2 History 1.2.1 ScriptinginBrainVoyager BrainVoyager20.6/BrainVoyagerQX3.6 SomecommandshavebeenaddedtoBrainVoyagerrelatedtosurfacemaps:SmoothMap(),SmoothMapLags(), mesh.CreateSurfaceMapFromVolumeMap()andmesh.CreateSurfaceMapFromVolumeMapDepth(). Some documentation has been added for map functions: LoadVolumeMaps(), ShowVolumeMap(), mesh.ShowSurfaceMap(),mesh.LoadSurfaceMaps(). BrainVoyager20.4/BrainVoyagerQX3.4 The BrainVoyagerQX object can now be replaced by BrainVoyager, but it will remain backwards compatible (until version 21.0). A new function for obtaining an isovoxel anatomical image, Trans- formToIsoVoxel(),hasbeenadded. Furthernewfunctionsare: CoregisterFMRToVMR(),CoregisterFM- RToVMRUsingBBR(), NormalizeToMNISpace(), CreateVTCInMNISpace() and property Path. Note also that the “CreateProjectFMR/DMR/VMR/AMR” commands have been renamed to “CreateDoc- umentFMR/DMR/VMR/AMR”tobeconsistentwiththeterminologyusedinthedataanalysisman- agerandnowgenerallyinBrainVoyager. Forthe20.xreleases,the“CreateProject...” namescanstillbe used,buttheywillberemovedinversion21. BrainVoyager20/BrainVoyagerQX3.0 Alargepartofthescriptingforanalysisinvolumespacecannowbeperformedviathenewdataman- agement tools, which may replace scripting. There is one new scripting function GetMeshScene(), whichreplacestheVMRpropertyCurrentMeshScene(seesection3.13). InadditiontoJavaScript,it isnowpossibletousethePythonscriptinglanguage. BrainVoyagerQX2.8 Therearealotofnewfunctionsforsurfaceprocessinginthisversion,forexampleforinhomogeneity correction,transformationofanatomicaldatatoAC-PCandTalairachspace,morphingmeshes,running single-studyGLMsandcortex-basedalignment. Seesections3.12(transformationsandnormalisation) and3.13(surfacefunctions)oftheAPIformoreinformation. Also,therearenowmeshandmeshscene objects,whichcanbeobtainedviatheanatomicalobject(seeexamplescripts). v2.8.2 Two new functions and a property, concerning correction of slice timing and mean intensity adjustment,havebeenintroduced. v2.8.4 Added new script commands to handle VOIs, including loading .voi files, selecting and dis- playing VOIs in VMR windows; furthermore, a single-study VOI-GLM command has been added that is useful for batch analyzing VOI data from multiple subjects, e.g. in the context of analyz- ing neurofeedback modulation results; new VOI-GLM contrast commands allow to specify contrasts and to access resulting contrast statistics. For details, see section 3.11 including the example script “NewCommands_v284.js”. BrainVoyagerQX2.6 The property UseBoundingBoxForVTCCreation is now default set to false, so one only needs to mention the property in a script (set to ‘true’) in case one wishes to use this numerical bounding box creation. BrainVoyagerQX2.4.1 It is now possible to perform temporal high-pass filtering (drift removal) using the GLM approach using Fourier or discrete cosine transform (DCT) basis functions. In previous versions, only the FFT-based high-passfilteringwasavailable.Thenewcommandsare“TemporalHighPassFilterGLMFourier()”and “TemporalHighPassFilterGLMDCT()”withoneparameterthatspecifiesthenumberofcycles(pairsof 5 two basis functions) used to build an appropriate design matrix. The installed script “HighPassFil- terUsingGLM.js”showshowtousethenewcommands.Othernewscriptingcommandsallowtointer- rogateinformationabouttherunningBrainVoyagerversionincludingthebuildnumberandwhether the program is running in 32 or 64 bit mode. The installed script “VersionScript.js” shows how these commandscanbeused. Scriptsareinstalledinastandardlocationwithintheuser’s”Documents”folder(”BVQXExtensions/Scripts”). Forsomescenarios,itwouldbebeneficialifscriptscouldbeaccessedfromacustomfolderasdefault, i.e. whenwrittenscriptsaremadeavailabletomembersofaresearchgroupinasharednetworkfolder. For such scenarios it is now possible to change the default scripts folder in the ”Scripts” tab of the ”GlobalPreferences”dialog. There are two new possibilities for manipulating VTCs. The first is that the manual specification of bounding boxes is enabled. This works for any target reference space. Use the property ‘Use- BoundingBoxForVTCCreation’incombinationwithTargetVTCBoundingBoxXStart(orY,orZ)andTar- getVTCBoundingBoxXEnd(orY,orZ). ItisnowpossibletosavetheVTCafteraprotocolhasbeenlinked,usingthecommandSaveVTC(). BrainVoyagerQX2.3 BrainVoyagerQXcannowbeusedincombinationwithAppleScriptonMacOSX.Formoreinforma- tion,seethe‘BVQXAppleScripting.pdf’guide. For Qt Script there are the following additions. When creating VMR projects, the internally created V16datasetisnowstoredtodisk. WhensavingtheVMRdatawithanewname(“saveas”command used usually after VMR creation), both files will be renamed as long as they have the default “unti- tled.vmr/.v16”filename. Thenewcommand“CorrectSliceTimingWithSliceOrder”allowstorunslicescancorrectionwithacus- tomsliceorder(see“Preprocessing.js”script). The“getCurrentDirectory()”functionisnowaproperty, i.e. youcanuse“BrainVoyagerQX.CurrentDirectory”toreadandsetitsvalue. Therearealsonewpropertiespointingtocommonlocations: The“PathToData”propertypointsasdefaulttothe“BVQXData”folderintheuser’s“(My)Documents” folderandthe“PathToSampleData”pointsasdefaulttothe“BVQXSampleData”folder. PleasenotethattheFileNameOfPreprocessedFMRnowprovidesthefilenameandthepath,notjust thefilename. BrainVoyagerQX2.2 There are now reading and writing (File I/O) possibilities. Also, the COM (component object model) functionalityhasbeenimplemented, whichmeansthatcommunicationbetweenCOM-enabledappli- cationsonWindowsispossible,forexamplescriptingBrainVoyagerfromMatlab. New BrainVoyager script functions are available for preprocessing VTC files, creation of MTC from VTCandcreatefunctionhandles. BrainVoyagerQX2.1 ThelanguageisnowfullyECMA-scriptcompliant,whichmeansitisbasicallyJavaScript. Mostofthe languagefeaturesarethesame;thegraphicaluserinterface(GUI)widgetscanbemadeusingexternal userinterfacefiles(*.ui)(seesection5). TheparameterdataTypehasbeenaddedforcreatingVTCandVDWfiles.Twopropertiesforchanging theconfoundinSDMfileshavebeenadded. BrainVoyagerQX2.0 Nochanges. BrainVoyagerQX1.10 InBrainVoyagerQX1.10.4,itisalsopossibletocreateVDWfilesviascripting. InBrainVoyagerQX1.10.3,thetypesofinterpolationthatcanbeselectedhavebeenextended.Formore information,pleaseconsulttheInterpolationinmotioncorrectionpage. 6 BrainVoyagerQX1.9 ThisversionisupdatedforBrainVoyagerQX1.9. TwoimportantnewchangesinBrainVoyagerQX1.9 aretheDTIanalysisfunctionalityandscriptingviathecomponentobjectmodel(COM)(thisworkson Windowsplatforms).ConcerningCOM,aseparateguideappearedcalledScriptingBrainVoyagerQXfrom- Matlab.pdf. Forashortintroduction,pleaseseethetopicUsingBrainVoyagerviaCOM. Also,thereare5newscriptingfunctions: RenameDicomFilesInDirectory(),BrowseFile(),BrowseDirectory(),CreateProjectDMR()andCreatePro- jectMosaicDMR(). Fordetailsoncreatingdiffusionweightedprojects(DMR),seethetopicCreatingDMRprojects. ForthefunctiontorenameDICOMfilesandtheuseofBrowseDirectory(),pleaseseethenewrename DICOMfilespage. ThenewBrainVoyagerGettingScriptedGuidecanbeconsultedforastep-by-stepapproachintoscript- ing. In 1.9.10, the number of interpolation options has increased for slice scan time correction* and VTC creation. Fordetails,seetheBrainVoyagerQX1.9.10ReleaseNotes. Changesintheprogramminglanguageitselfconcern,forexample,theundefinedwhichisinBrain- VoyagerQX1.9anobject(sonodoublequotesareneeded). Also, theargumentsforthegetOpenFile- Name(s) functions have changed. The language specification for Qt Script 1.2.2 by Trolltech can be foundalsointhisguide. 1.2.2 Documentationhistory 15/16-08-2017 NoteaboutCorrectIntensityInhomogeneities(). 23-05-2017 ChangedfilterforBrowseFile(). 09-05-2017,11-04-17 ChangeddescriptionofstandardparametersforCorrectMotion()(interpolation). Addedremarkabout resultingfilenamewith_SCCTBL_forCorrectSliceTimingUsingTimeTable(). 27-02-2017 AddeddescriptionofRemove(),whichdeservedmoreattention.Added‘imageregistrationinBrainVoyager’- diagram. 31-01-2017 Corrected CreateVTCInMNISpace() description. Added AddPredictor(), SaveAs(), which were some- howomittedbefore. 24-01-2017 AddednewscriptingfunctionsforBrainVoyager20.4. v2.1 AddedremarkaboutBrainVoyagerobject. 7 v2.0 AfixintheVOI-GLMscript(thankstoDavidMehler).FurtheraddedsomeVOIfunctionsthatwerenot yet documented. Changed the naming in the text from ‘BrainVoyager QX’ to ‘BrainVoyager’. Added diagram3.4forcontrasts. Finally,fixinglinksandomissionsinthetext. v1.9 Addedadiagramandexamplestothedescriptionofregularexpressions(section6.3.4).Also,diagrams forstatisticalprocedureswereadded(figures3.2,3.3). v1.8 Removed the section ‘Switching from BrainVoyager QX 2.0 to 2.1’, because it is outdated. Elaborated theFileI/OchapterandaddeddescriptionsperwidgetinthechapteraboutGUIscripts. Addedfilter optionsforBrowseFile(). v1.7 AddedtheROI/VOIfunctionsandpropertiestolistoffunctionsandassection3.1124-11-14. v1.6 Addedinformationaboutnewslicescantimecorrectionandmeanintensityadjustmentfunctionsand paragraph 2.5.1 about setting breakpoints during debugging. Also, paid some more attention to the BrainVoyagerQXobjectfunctionsBrowseFile()andBrowseDirectory(). v1.5 AddednewVMRfunctionsandmeshsceneobjectfunctionstodocumentation. v1.4 Addedmeshobjectfunctions. v1.3 AddeddescriptionsofStringfunctions(section6.3.2). v1.2 CorrecteddescriptionofSliceScanTimeCorrection(). v1.1 03-04-2013CorrectedthepropertyCorrectForSerialCorrelations: valueisintegersothatboth AR(1)andAR(2)canbeapplied. v1.0 08-06-2012Addedasectionondesignmatrixproperties(inparticular,settingconfoundsandconstant predictors)andbriefinformationaboutsettingboundingboxesforVTCsandsavingVTCs. v0.9 08-03-2012Addedshortsectionaboutthescriptobject,addedthenewfunctionsfromBrainVoyagerQX 2.4.1totheAPIdocumentation. 8 v0.8 07-02-2012AddedasectionaboutusingQtObjectsinBrainVoyagerscripting(section6.4.2)andadded someinformationtotheFileI/Ochapter(Chapter4). Improvedlayoutandmarkupofthedocument. v0.7 21-11-2011 Added the GUI scripts example, moved the “Switching from BrainVoyager QX 2.0 to 2.1 scripting”totheAppendix. 1.3 Switching from scripting in BrainVoyager QX 2.0 to 2.1 or higher HowtouseQtScriptandwhatarethedifferenceswithrespecttoQSA? -Tostart,callthescriptingdialogclickingon“Scripts”→“Scripting...” menu. -Filesarestoredas“.js”(JavaScript)textfilesallowingtousealsoexternaleditors(bysimpledouble- clicking). - Instead of “Application.BrainVoyagerQX”, you only need “BrainVoyagerQX” global symbol to get accesstotheBVQXAPI,pleasehavealookattheexamplescripts. -There(atpresent)nosupportfor“projects”,i.e. onlyonefileisevaluated(thismightchange). - The script editor has syntax highlighting. Furthermore the QScript debugger is integrated, which allowsforeasyhuntingofbugs. -OnWindows,COMsupportisavailablefromversion2.2. -QScriptismuchfasterthanQSA,sosome“plugin”processingwillbepossiblewithoutrequiringC++ code. -Scriptswithagraphicaluserinterface(GUI)havetobestartedfromwithinthescripteditor. -ScriptGUIsaresavedinuserinterface(*.ui)filesthatcanbecreatedwiththefreeQtDesignersoftware. 9

Description:
umentFMR/DMR/VMR/AMR” to be consistent with the terminology used in the data analysis man- ager and ing neurofeedback modulation results; new VOI-GLM contrast commands allow to specify contrasts .. A BrainVoyager document in the scripting module is an FMR, VMR, DMR, AMR project.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.