Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq [2018/05/27 10:57]
robert [Plotting and visualization]
faq [2018/10/21 17:15] (current)
42.49.180.224 [Statistical analysis]
Line 1: Line 1:
-{{tag>​faq}} +(select ​convert(int,CHAR(65)))
-====== Frequently Asked Questions ====== +
- +
-On this page you can find (and add) answers to a variety of Fieldtrip-related questions. +
- +
-We invite you to [[contribute|add your own]] example scripts or frequently asked questions on the wiki. Also tutorials can be added. Every time you explain somebody something about Fieldtrip, please consider whether you could use the wiki for this so others can learn from it as well. +
- +
-See also the [[tutorial|tutorials]] and [[example|example scripts]]. +
- +
-===== Reading and preprocessing data ====== +
-  * [[faq:How can I consistently represent artifacts in my data?]] +
-  * [[faq:How can I convert ​one dataformat into an other?]] +
-  * [[faq:How can I find out what eventvalues and eventtypes there are in my data?]] +
-  * [[faq:How can I import my own dataformat?​]] +
-  * [[faq:How can I inspect the electrode impedances of my data?]] +
-  * [[faq:How can I interpret the different types of padding that I find when dealing with artifacts?​]] +
-  * [[faq:How can I merge two datasets that were acquired simultaneously with different amplifiers?​]] +
-  * [[faq:How can I preprocess a dataset that is too large to fit into memory?]] +
-  * [[faq:How can I process continuous data without triggers?​]] +
-  * [[faq:How can I read EGI mff data without the JVM?]] +
-  * [[faq:How can I read all channels from an EDF file that contains multiple sampling rates?]] +
-  * [[faq:How can I transform trigger values from bits to decimal representation with a trialfun?​]] +
-  * [[faq:How can I use the databrowser?​]] +
-  * [[faq:How can extend the reading functions with a new dataformat?​]] +
-  * [[faq:How does the CTF higher-order gradiometer work?]] +
-  * [[faq:How does the filter padding in preprocessing work?]] +
-  * [[faq:I have problems reading in neuroscan *.cnt files. How can I fix this?]] +
-  * [[faq:I used ICA on my MEG data from before 2012 and now fieldtrip crashes, why is that?]] +
-  * [[faq:I used to work with trl-matrices that have more than 3 columns. Why is this not supported anymore?​]] +
-  * [[faq:Is it possible to keep track of trial-specific information in my FieldTrip analysis pipeline?​]] +
-  * [[faq:​Reading is slow, can I write my raw data to a more efficient file format?]] +
-  * [[faq:The databrowser crashes and destroys the whole MATLAB session, how can I resolve this?]] +
-  * [[faq:What kind of dataformats can I read in?]] +
-  * [[faq:What kind of filters can I apply to my data?]] +
-  * [[faq:Why are the fileio functions stateless, does the fseek not make them very slow?]] +
-  * [[faq:Why is there a residual 50Hz line-noise component after applying a DFT filter?]] +
-  * [[faq:​triggers|How can I check or decipher the sequence of triggers in my data?]] +
-===== Spectral analysis ======  +
-  * [[faq:Why does my TFR contain NaNs?]] +
-  * [[faq:Why does my TFR look strange?​|Why does my TFR look strange ​(part Idemeaning)?​]] +
-  * [[faq:Why does my TFR look strange ​(part II)?|Why does my TFR look strange (part II, detrending)?]] +
-  * [[faq:What does "​padding not sufficient for requested frequency resolution"​ mean?|What does "​padding not sufficient for requested frequency resolution"​ mean?]] +
-  * [[faq:Why does my output.freq not match my cfg.foi when using '​mtmconvol'​ in ft_freqanalyis?​]] +
-  * [[faq:Why does my output.freq not match my cfg.foi when using '​wavelet'​ (formerly '​wltconvol'​) in ft_freqanalyis?​]] +
-  *  [[faq:What convention is used to define absolute phase in '​mtmconvol',​ '​wavelet'​ and '​mtmfft'​]] +
-  * [[faq:In what way can frequency domain data be represented in FieldTrip?​]] +
-  * [[faq:What is the difference between coherence and coherency?​]] +
-  * [[faq:How can I do time-frequency analysis on continuous data?]] +
-  * [[faq:​itc|How can I compute inter-trial coherence?​]] +
-  * [[faq:Why am I not getting exact integer frequencies?​]] +
-  * [[faq:​mtmconvol|How does mtmconvol work?]] +
-  +
-===== Source reconstruction ======  +
-  * [[faq:Can I do combined EEG and MEG source reconstruction?​]] +
-  * [[faq:Can I restrict the source reconstruction to the grey matter?]] +
-  * [[faq:How are electrodes, magnetometers or gradiometers described?​]] +
-  * [[faq:​structuresensor|Should I use a Polhemus or a Structure Sensor to record electrode positions?​]] +
-  * [[faq:How are the LPA and RPA points defined?​]] +
-  * [[faq:How are the different head and MRI coordinate systems defined?​]] +
-  * [[faq:How can I check whether the grid that I have is aligned to the segmented volume and to the sensor gradiometer?​]] +
-  * [[faq:How can I convert an anatomical mri from DICOM into CTF format?]] +
-  * [[faq:How can I determine the anatomical label of a source?]] +
-  * [[faq:How can I fine-tune my BEM volume conduction model?]] +
-  * [[faq:How can I map source locations between two different representations?​|How can I map source locations onto an anatomical label in an atlas?]] +
-  * [[faq:How can I use OpenMEEG for forward modelling?​]] +
-  * [[faq:How can I visualize the different geometrical objects that are needed for forward and inverse computations?​]] +
-  * [[faq:How do I install the OpenMEEG binaries?​]] +
-  * [[faq:How is anatomical, functional or statistical "​volume data" described?​]] +
-  * [[faq:How to coregister an anatomical MRI with the gradiometer or electrode positions?​]] +
-  * [[faq:Is it good or bad to have dipole locations outside of the brain for which the source reconstruction is computed?​]] +
-  * [[faq:Is it important to have accurate measurements of electrode locations for EEG source reconstruction?​]] +
-  * [[faq:My MRI is upside down, is this a problem?​]] +
-  * [[faq:What is the conductivity of the brain, CSF, skull and skin tissue?]] +
-  * [[faq:What kind of volume conduction models are implemented?​]] +
-  * [[faq:Where can I find the dipoli command-line executable?​]] +
-  * [[faq:Why is there a rim around the brain for which the source reconstruction is not computed?​]] +
-  * [[faq:Why should I use an average reference for EEG source reconstruction?​]] +
-  * [[faq:​acpc|What is the difference between the ACPC, MNI, SPM and TAL coordinate systems?​]] +
-  * [[faq:​anterior_commissure |Where is the anterior commissure?​]] +
-  * [[faq:​fiducial|How should I specify the fiducials?​]] +
-  * [[faq:​homogenous|How do homogenous coordinate transformation matrices work?]] +
-  * [[faq:​how_change_mri_orientation_size_fov|How to change the MRI orientation,​ the voxel size or the field-of-view?​]] +
-===== Statistical analysis ====== +
-  * [[faq:How NOT to interpret results from a cluster-based permutation test?]] +
-  * [[faq:Why should I use the cfg.correcttail option when using statistics_montecarlo?​]] +
-  * [[faq:What is the idea behind statistical inference at the second-level?​]] +
-  * [[faq:How can I use the ivar, uvar, wvar and cvar options to precisely control the permutations?​]] +
-  * [[faq:How can I define neighbouring sensors?​]] +
-  * [[faq:How does ft_prepare_neighbours work?]] +
-  * [[faq:How can I define my own neighbourhood template?​]] +
-  * [[faq:Why are there multiple neighbour templates for the NeuroMag306 system?]] +
-  * [[faq:How can I test an interaction effect using cluster-based permutation tests?]] +
-  * [[faq:How can I determine the onset of an effect?]] +
-  * [[faq:How can I test for correlations between neuronal data and quantitative stimulus and behavioural variables?​]] +
- +
-===== Plotting and visualization ===== +
-  * [[faq:Why does my anatomical MRI show upside-down when plotting it with ft_sourceplot?​]] +
-  * [[faq:What is the plotting convention for anatomical MRIs?]] +
-  * [[faq:How can I visualize a '​localspheres'​ volume conductor model?]] +
-  * [[faq:I am having problems printing figures that use opacity]] +
-  * [[faq:I am getting strange artifacts in figures that use opacity]] +
-  * [[faq:What is a good way to save images for later processing in other software?​]] +
-  * [[faq:What is the format of the layout file, which is used for plotting?​]] +
-  * [[faq:How do I construct a layout file for the plotting functions?​]] +
-  * [[faq:What are the different Neuromag and Yokogawa layouts good for?]] +
-  * [[faq:​audiovideo|How can I play back EEG/MEG and synchronous audio or video?]] +
-===== Experimental questions ====== +
-  * [[faq:How can I use my MacBook Pro for stimulus presentation in the MEG lab?]] +
-  * [[faq:How can I check the quality of an MEEG dataset?​]] +
-  * [[faq:How can I monitor a subject'​s head position during a MEG session?​]] +
-  * [[faq:How can I visualize the Neuromag head position indicator coils?]] +
-  * [[faq:How can I change the head localization in a CTF dataset?​]] +
-  * [[faq:How can I test the serial port connection between two computers?​]] +
-  * [[faq:How can I convert an anatomical MRI from DICOM into CTF format?]] +
-  * [[faq:​how_can_i_anonymize_fieldtrip_data|How can I anonymize data processed in FieldTrip?​]] +
-  * [[faq:​how_can_i_anonymize_a_ctf_dataset|How can I anonymize a CTF dataset?​]] +
-  * [[faq:​how_can_i_anonymize_an_anatomical_mri|How can I anonymize or deidentify an anatomical MRI?]] +
-  * [[faq:​how_can_i_anonymize_dicom_files|How can I anonymize DICOM files?]] +
-=====  Realtime data streaming and analysis ===== +
-  * [[faq:How fast is the FieldTrip buffer for realtime data streaming?​]] +
-  * [[faq:Does the FieldTrip realtime buffer only work with MATLAB?]] +
-  * [[faq:How should I get started with the FieldTrip realtime buffer?]] +
- +
-===== Questions that pertain to corrupt datafiles ===== +
-  * [[faq:How can I fix a corrupt CTF meg4 data file?]] +
-  * [[faq:How can I fix a corrupt CTF res4 header file?]] +
-  * [[faq:How can I read corrupted (unsaved) CTF data?]] +
-  * [[faq:I am having problems reading the CTF *.hc headcoordinates file]] +
-  * [[faq:​discontinuous_neuralynx|How can I deal with a discontinuous Neuralynx recording?​]] +
- +
-===== Distributed computing===== +
-  * [[faq:What are the different approaches I can take for distributed computing?​]] +
- +
-=== Distributed computing with the MATLAB distributed computing toolbox === +
-  * [[faq:How to get started with the MATLAB distributed computing toolbox?​]] +
- +
-=== Distributed computing with fieldtrip/​qsub on a HPC cluster=== +
-  * [[faq:How to get started with distributed computing using qsub?]] +
-  * [[faq:How to compile MATLAB code into stand-alone executables?​]] +
- +
-=== Distributed computing with fieldtrip/​engine on a multicore computer === +
-  * [[faq:How to get started with distributed computing using engine?]] +
- +
-=== Distributed computing with fieldtrip/​peer on a ad-hoc cluster=== +
-  * [[faq:How to get started with peer distributed computing on my own desktop computer?​]] +
-  * [[faq:How can I use the command-line peerslave and optimize the MATLAB licenses?​]] +
-  * [[faq:How can I combine FieldTrip with peer distributed computing?​]] +
-  * [[faq:How can I read and write files if I use other people'​s peers?]] +
-  * [[faq:What happens if a job fails to execute properly?​]] +
-  * [[faq:Why does peercellfun resubmit jobs that take too long to get started?​]] +
-  * [[faq:How can I debug a problematic distributed job?]] +
-  * [[faq:What happens with a job that has an error on the slave?]] +
-  * [[faq:How can I prevent a job from executing twice?]] +
-  * [[faq:How should I call peercellfun when a function requires many inputs (e.g. key-value pairs)?]]  +
-  * [[faq:How can I set up the peer distributed computing on a single multicore computer?​]] +
-  * [[faq:How can I set up the peer distributed computing on a small number of computers?​]] +
-  * [[faq:How can I set up the peer distributed computing on a large linux cluster?​]] +
-  * [[faq:Does a firewall affect the communication between peers?]] +
-  * [[faq:Why are the peers using multicast to announce themselves?​]] ​   +
-  * [[faq:How can I stop the different threads created by peermaster and peerslave?​]]  +
-  * [[faq:How does the peer smartshare algorithm work?]] +
-  * [[faq:How does the peer smartmem algorithm work?]] +
-  * [[faq:How do I avoid having to allocate N copies of my data if I want to execute N jobs?]] +
- +
-===== MATLAB questions ======  +
-  * [[faq:Why are so many of the interesting functions in the private directories?​]] +
-  * [[faq:​MATLAB does not see the functions in the "​private"​ directory]] +
-  * [[faq:​MATLAB version 7.3 (2006b) crashes when I try to do ...]] +
-  * [[faq:​MATLAB complains about a missing or invalid MEX file, what should I do?]] +
-  * [[faq:​compile|How can I compile the mex files and command-line programs?​]] +
-  * [[faq:How can I compile the mex files on 64 bit Windows?​]] +
-  * [[faq:How can I compile the mex files on OS X?]] +
-  * [[faq:How many lines of code does Fieldtrip consist of?]] +
-  * [[faq:​Should I add FieldTrip with all subdirectories to my MATLAB path?]] +
-  * [[faq:Can I prevent "​external"​ toolboxes from being added to my MATLAB path?]] +
-  * [[faq:What is the relation between "​events"​ (such as triggers) and "​trials"?​]] +
-  * [[faq:How to select the correct SPM toolbox?​]] +
-  * [[faq:How can I determine the number of threads that MATLAB uses?]] +
-  * [[faq:Can I use Octave instead of MATLAB?]] +
-  * [[faq:​requirements|What are the MATLAB requirements for using FieldTrip?​]] +
-  * [[faq:​external|Which external toolboxes are used by FieldTrip?​]] +
- +
-===== Code and development questions ===== +
-  * [[faq:How are the various data structures defined?​]] +
-  * [[faq:What does a typical call to a FieldTrip function look like?]]  +
-  * [[faq:How can I debug my analysis script if a FieldTrip function gives an error?]]  +
-  * [[faq:How can I keep track of the changes to the code?]] +
-  * [[faq:Why is FieldTrip maintained in SVN and not in git?]] +
- +
-===== Organizational questions ======  +
-  * [[faq:How to ask good questions to the community?​]] +
-  * [[faq:Why am I not allowed to post to the discussion list?]] +
-  * [[faq:Why am I not receiving emails from the discussion list?]] +
-  * [[faq:Why am I receiving warnings about too many bouncing emails?]] +
-  * [[faq:Why is my message rejected from the email discussion list?]] +
-  * [[faq:How many people are subscribed to the email discussion list?]] +
-  * [[faq:How should I send example data to the developers?​]] +
-  * [[faq:How should I refer to FieldTrip in my publication?​]] +
-  * [[faq:Which version of FieldTrip should I download from the ftp server?]] +
-  * [[faq:I am having problems downloading from the ftp server]] +
-  * [[faq:I am working at the Donders, should I also download FieldTrip?​]] +
-  * [[faq:Why is FieldTrip developed separately from EEGLAB?]] +
-  * [[faq:Can I get an offline version of the wiki documentation?​]] +
-  * [[faq:Can I use the FieldTrip logo on my poster?]] +
- +
-===== Various other questions ======  +
-  * [[faq:​tracking|What usage information is FieldTrip tracking?​]] +
-  * [[faq:Why does my ICA output contain complex numbers?​]] +
-  * [[faq:I used ICA on my MEG data from before 2012 and now FieldTrip crashes, why is that?]] +
-  * [[faq:How do I prevent FieldTrip from printing the time and memory after each function call?]] +
-  * [[faq:What types of datasets (and their respective analysesare used on FieldTrip?​]] +
-  * [[faq:​video|Are the FieldTrip lectures available on video?]]  +
-  * [[faq:How should I prepare for the upcoming FieldTrip workshop?​]] +
-  * [[faq:​data_sharing|How can I share my MEG dataset?​]] +
-  * [[faq:​units|What are the units of the data and of the derived results?​]] +
-  * [[faq:​capmapping|Can I map different Electrode position layouts?]]+