diff --git a/README.md b/README.md index d1911d2..da53738 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,9 @@ Next, use the image to create an interactive container. docker run --rm -it guestoxenham2021 ``` +- `--rm` flag tells Docker to "clean up" after itself and to remove any files generated while running the image after the container is closed +- `-it` tells Docker this is an interactive session + This container starts with an interactive bash shell located in a copy of the present repository. From there, you can either manually run individual scripts using the `python3` and `Rscript` commands for Python and R, respectively, or you can generate the all the figures in the paper via: ``` bash run.sh @@ -62,9 +65,11 @@ bash run.sh However, the figures will be saved out to the container's non-persistent storage and will be destroyed when you exit or end the container. To have permanent copies of the outputs figures saved to your disk, you can link the output `plots` directory inside the container to a preferred output location somewhere on your disk (called `output` in the example below). First, exit the container with the `exit` command, then run the following: ``` -docker run --rm -v output:/GuestOxenham2021/plots -it guestoxenham2021 +docker run --rm -v /home/daniel/GuestOxenham2021/plots:/GuestOxenham2021/plots -it guestoxenham2021 ``` +- `-v` flag tells Docker to link the `plots` folder on your disk (path to the left of `:`) with the `plots` folder in the container (path to the right of `:`). Obviously, you will need to adjust the path on the left to point to wherever you have stored your local copy of the repository. + Now, if you call `run.sh` or any of the individual plotting files (e.g., `figure1.R`), whatever is saved in the `plots` folder of the repository will be accessible on your hard drive (outside of the container) in the `output` folder. # Data files diff --git a/plots/fig5.png b/plots/fig5.png index 96e7206..732dac1 100644 Binary files a/plots/fig5.png and b/plots/fig5.png differ diff --git a/plots/fig5.svg b/plots/fig5.svg index 94092cc..bdc8021 100644 --- a/plots/fig5.svg +++ b/plots/fig5.svg @@ -11,8 +11,8 @@ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="9.4268332in" - height="8.5793791in" - viewBox="0 0 239.44153 217.91623" + height="9.0377188in" + viewBox="0 0 239.44153 229.55806" version="1.1" id="svg5982" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" @@ -30,8 +30,8 @@ inkscape:pageopacity="1" inkscape:pageshadow="2" inkscape:zoom="0.9899495" - inkscape:cx="378.07441" - inkscape:cy="479.02638" + inkscape:cx="414.44303" + inkscape:cy="527.01102" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="false" @@ -39,10 +39,10 @@ fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" - inkscape:window-width="1920" - inkscape:window-height="1043" - inkscape:window-x="0" - inkscape:window-y="590" + inkscape:window-width="2488" + inkscape:window-height="1376" + inkscape:window-x="1992" + inkscape:window-y="27" inkscape:window-maximized="1" units="in" /> + id="image6535" + preserveAspectRatio="none" + height="112.1291" + width="87.211525" /> Neural harmonic number (CF/F0) Lag (periods of lower F0) 0 dB TMR 4 dB TMR 8 dB TMR 12 dB TMR + y="162.91142" /> + id="image10394" + preserveAspectRatio="none" + height="74.752731" + width="49.835155" /> + id="image10405" + preserveAspectRatio="none" + height="74.752731" + width="49.835155" /> + y="162.70663" /> @@ -200,14 +200,14 @@ width="85.452019" height="4.309721" x="8.7215633" - y="331.52756" /> + y="343.16937" /> + y="346.94992" /> Average firing rate (sp/s) Neural harmonic number (CF/F0) + preserveAspectRatio="none" + id="image4592" + x="119.8703" + y="160.86012" /> LSR fibers HSR fibers + y="274.0629" /> Middle F0 Lower F0 (-5.5 ST) + F0 = 280 Hz + F0 = 1400 Hz + transform="translate(-1.36858,-1.9065702)"> 3F0 4F0 5F0 2F0 F0 F0 F0 Middle F0 Lower F0 (-5.5 ST)