Inverse problem solution from command line

Hi

Finally i have all my EEG signals that i need in my subjects study, however i need to run the inverse solution process, but i need to run this from command line. Until now i know that the process

sFiles = bst_process(‘CallProcess’, ‘process_inverse’, sFiles, [], …
‘Comment’, ‘’, …
‘method’, 1, … % Minimum norm estimates (wMNE)
‘wmne’, struct(…
‘SourceOrient’, {{‘fixed’}}, …
‘loose’, 0.2, …
‘SNR’, 3, …
‘pca’, 0, …
‘diagnoise’, 1, …
‘regnoise’, 1, …
‘depth’, 1, …
‘weightexp’, 0.5, …
‘weightlimit’, 10), …
‘sensortypes’, ‘EEG’, …
‘output’, 3);

let me run the inverse solution, but i don’t know what would be the correct input for the function, or how to call this with the information that i need.
For example i have my subject1 into the subject1 i have the eeg with the folder name 63, afterwards i have my lead field calculated and saved in the subject, so how can i use the inverse resolution for my subject?

Regards

I’m sorry, I’m not sure I understand what your question is.

Is it about the file selection? If so, you could use the process “File > Select files: data”.
See this discussion, it may help you: http://neuroimage.usc.edu/forums/showthread.php?2456

If this is about the options of the process: configure it the way you want from the pipeline editor, then generate the corresponding Matlab script.

Otherwise, please explain better what you are trying to do (a few screen captures showing your database can help).

Francois

wooooooow

very usefull i forgot that thanks for the first, and the code look like this

% Input files
sFiles = {…
‘14y_ref/64/data_sim_160519_1615.mat’};

% Start a new report
bst_report(‘Start’, sFiles);

% Process: Compute sources
sFiles = bst_process(‘CallProcess’, ‘process_inverse’, sFiles, [], …
‘Comment’, ‘’, …
‘method’, 1, … % Minimum norm estimates (wMNE)
‘wmne’, struct(…
‘NoiseCov’, [], …
‘InverseMethod’, ‘wmne’, …
‘ChannelTypes’, {{}}, …
‘SNR’, 3, …
‘diagnoise’, 0, …
‘SourceOrient’, {{‘fixed’}}, …
‘loose’, 0.2, …
‘depth’, 1, …
‘weightexp’, 0.5, …
‘weightlimit’, 10, …
‘regnoise’, 1, …
‘magreg’, 0.1, …
‘gradreg’, 0.1, …
‘eegreg’, 0.1, …
‘ecogreg’, 0.1, …
‘seegreg’, 0.1, …
‘fMRI’, [], …
‘fMRIthresh’, [], …
‘fMRIoff’, 0.1, …
‘pca’, 1), …
‘sensortypes’, ‘EEG’, …
‘output’, 3); % Full results: one per file

% Save and display report
ReportFile = bst_report(‘Save’, sFiles);
bst_report(‘Open’, ReportFile);

However i need the path of the specific data

sFiles = {…
‘14y_ref/64/data_sim_160519_1615.mat’};

how can i access to the full structure information of the eeg data about one specific subject?

i want for example give the information of ‘14y_ref/64/data_sim_160519_1615.mat’ through the command line, so i need to know how take one per one every one of the data_sim that i have. There is some function with which can i take the data structure of one specific subject? So can I automate the extraction of my data by command line?

Regards and thaaaanks

To read the content of a file: use function in_bst_data for recordings (or in_bst_results for sources)
http://neuroimage.usc.edu/brainstorm/Tutorials/Epoching#On_the_hard_drive

To get the full path to file: use function file_fullpath.

To get the list of all the files, use process “File > Select files: data” (generate a script to call it from a script).

Was this your question?