Using rcicr with data based on the older python scripts

If you have generated reverse correlation stimuli with my older python script and now want to analyze your data with the much more user friendly rcicr, feel free to download these two PythonR Conversion scripts.

Then follow these steps:

1) Make sure you have rcicr version 0.3.0 or higher installed. Currently, this means you have to install the development version (see here).

2) Adapt to point to the right .pkl file generated with the reverse correlation python scripts (this is the file containing the contrast parameters for each stimulus and is also used in analysis) and run it. It will output a contrasts.csv file.

3) If your base image is not 256×256, 512×512, or 1024×1024, rescale it with any image editor your have available.

4) Then edit create_r_data_file.r. You only need to edit the lines between Customize below and Until here, and run it. Make sure the contacts.csv file and the base image jpg is in the working directory you specified. Run the script in R.

And you’re done. A new .rdata file is generated, which you can reference with rcicr.

Comments are closed, but trackbacks and pingbacks are open.