Skip to content

Modeling and MEG evidence of early consonance processing in auditory cortex (Tabas et al 2019)

License

Notifications You must be signed in to change notification settings

ModelDBRepository/256624

Repository files navigation

<html>
<p/>This is the model code associated with the paper:
<p/>
<p/>Tabas A, Andermann M, Schuberth V, Riedel H, Balaguer-Ballester E, Rupp A (2019)
Modeling and MEG evidence of early consonance processing in auditory cortex.
PLoS Comput Biol 15(2): e1006820<br/>
<a href="https://doi.org/10.1371/journal.pcbi.1006820">https://doi.org/10.1371/journal.pcbi.1006820</a>
<p/>
<p/>This code was contributed by Alejandro Tabas.
<p/>
<p/>--- Installation ---<br/>
These instructions are written for UNIX, but tranferring them to a windows system should be trivial. The libs were tested in both, Linux and Windows.
<p/>
<p/>This libs use both MATLAB and python. MATLAB is the main wrapper and everything can be run from there. Python is used to compute the output of the peripheral system and the cortical input. The peripheral system runs from a external library contained in the pip package cochlea, which in turn uses thorns to adjust the stimulus loudness. You will need both. The code runs in python 2.7.
<p/>
<p/>First, install cochlea and thorns using pip:<p/>
$ pip install thorns<br/>
$ pip install cochlea
<p/>
or<p/>
python -m pip install thorns --user</br>
python -m pip install cochlea --user</br>
<p/>Next, set line 54 in tdoch.m to point to your python installation. Just "python" should work in most systems. I wrote a few extra tips in the comments preceding the line in case that does not work. You must be able to run python and import cochlea from matlab using 
&gt;&gt;&gt; system(pythonCommandString)
<p/>
<p/>That's it!
<p/>
<p/>--- Usage ---<br/>
The model wrapper is tdoch.m. Thorought examples reproducing the figures shown in the original paper are available in the folder "examples-from-the-paper". Some easy UNIX-to-windows modifications might be necessary to make the functions work in windows O:).
<p/>
Add the paths to example-from-the-paper and the top-level folders and then run the examples-from-the-paper matlab scripts, for example:<p/>
<pre>
addpath(pwd)
addpath([pwd '/examples-from-the-paper'])
fig1
</pre>
This should generate figures (in about 28 minutes) and store them in the top level folder similar to fig 1 in the paper:<p/>
<p/>
<img src="./fig1-0.png" alt="fig1-0" width="550">
<p/>
<img src="./fig1-1.png" alt="fig1-1" width="550">
<p/>
fig2
<p/> produces (in about 15 minutes) this figure similar to fig 2 in the paper:<p/>
<img src="./fig2.png" alt="fig2" width="550"><p/>
<p/>Have fun!
<p/>
<p/>--- Citation ---<br/>
If you use the model, please cite the original publication with the formulation of the model: <a href="https://doi.org/10.1371/journal.pcbi.1006820">https://doi.org/10.1371/journal.pcbi.1006820</a><p/>
</html>

About

Modeling and MEG evidence of early consonance processing in auditory cortex (Tabas et al 2019)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published