Error in Statistical Test: Cannot find output folder

Hi. I have an EEG oddball experiment in which I am looking at the habituation of the ERP to repetition of the standard. Hence, I have got within subject conditions where I am looking at ERPs to the 1st time a standard occurs, compared to the 2nd time a standard occurs- similar in practice to the standard vs deviant comparison that is detailed on your tutorials. I have epoched the trials to separate folders. And when I try to run the t-test as described on this tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/Statistics

it gives the following error:

Line:1222: bst_process>ProcessStat (line1222)
Could not find output folder...Please report this error on user forum for assistance

I am not sure why this is happening. When I run the test within just 1 subject, it runs fine. But when I run it across subjects, it does not work.
Any help would be much appreciated!

Best wishes,
Iti.

First reload your database, and try again.
If you still get the same error, we'll need you to share an example dataset, so that we can reproduce this error:

  • Make a copy of your protocol folder (with your file manager, outside of Brainstorm)
  • Load it in Brainstorm (menu File > Load protocol > Load from folder)
  • Delete all the files that are not needed to reproduce the error (keep maybe two subjects, two files per subject, delete all the anatomy files that are not used...)
  • Make sure you can still reproduce the error with this minimal dataset.
  • Menu File > Export protocol > Export as .zip file
  • Upload this file somewhere and post the download link here
  • Post exact instructions for us to reproduce the error (include maybe a screen capture of the file selection in the Process2 tab, and another one of the process options)

Thanks

Hi Francois,

When I re-loaded the protocol, and then deleted subjects to share the protocol with you, I also deleted the existing Group Analysis folder. Once I did so, the process ran fine. It seems that it was struggling to create a Group-level analysis folder due to the existing group analysis folder... Anyway, running fine now. Happy to provide information if you would like it.

Best wishes,
Iti.

Good! Maybe reloading only solved the problem? (without deleting anything?)

Please let me know if you face this problem again and find a way to reproduce it completely, or if running the same test twice fails the second time because the group analysis folder already exists.
What would be interesting for us is to know how the previous Group Analysis folder was created, in order to debug why it was causing problems in your statistical test.

Dear Francois,

Just reloading did not solve the problem- I did try to run the test after simply reloading before deleting any files.
The group analysis folder I had previously created contained Grand Averages of epochs (separately by trial type). Therefore, it had sub-folders of each trial type with the grand average across subjects of that trial type. I have attached a picture to show you what this looks like in my database.

In comparison, for the t-test, Brainstorm appears to create an Intra-subject folder within the Group Analysis folder which it seemed to struggle with when the above grand averages folder existed.

I will definitely get in touch if the problem comes up again. Thanks for your help!

Best wishes,
Iti.