Browse Source

Merge remote-tracking branch 'refs/remotes/KISN/master'

Emilio 3 years ago
parent
commit
8e1587abf4
93 changed files with 2234 additions and 0 deletions
  1. 402 0
      LICENSE
  2. 20 0
      README.md
  3. BIN
      all sessions.xlsx
  4. 40 0
      code/Fig_1/Fig_1.m
  5. 48 0
      code/Fig_1/Fig_1.m~
  6. 1 0
      code/Fig_1/data_fig_1.db
  7. 62 0
      code/Fig_1/do_plots.m
  8. 3 0
      code/Fig_1/reg_plots.m
  9. 60 0
      code/Fig_1b/Fig_1c.m
  10. 1 0
      code/Fig_1b/data_fig_1c.db
  11. 225 0
      code/Fig_2/Fig_2.m
  12. 196 0
      code/Fig_2/Fig_2.m~
  13. 8 0
      code/Fig_2/all_fit.m
  14. 19 0
      code/Fig_2/autoc2.m
  15. 1 0
      code/Fig_2/data_fig_2.db
  16. 14 0
      code/Fig_2/do_fit.m
  17. 45 0
      code/Fig_2/do_plot.m
  18. BIN
      code/Fig_2/shuff_acc.mat
  19. BIN
      code/Fig_2/shuff_speed.mat
  20. 149 0
      code/Fig_3/Fig_3.m
  21. 180 0
      code/Fig_3/Fig_3.m~
  22. 1 0
      code/Fig_3/data_fig_3.db
  23. 12 0
      code/Fig_3/gauss_smoothing_2D.m
  24. 116 0
      code/Fig_3d/Fig_3d.m
  25. 120 0
      code/Fig_3d/Fig_3d.m~
  26. 18 0
      code/Fig_3d/do_fit.m
  27. 29 0
      code/Fig_3d/do_plot.m
  28. BIN
      code/Fig_3d/intrinsic_results_ns_res50.mat
  29. 44 0
      code/Fig_5/Fig_5.m
  30. 44 0
      code/Fig_5/Fig_5.m~
  31. 12 0
      code/Fig_5/smooth_theta2.m
  32. 67 0
      code/Fig_6/Fig_6.m
  33. 79 0
      code/Fig_6/Fig_6.m~
  34. 65 0
      code/Fig_6/bandpass_and_hilbert.m
  35. 1 0
      code/Fig_6/data_fig_6.db
  36. 12 0
      code/Fig_6/smooth_theta2.m
  37. 84 0
      datacite.yml
  38. 1 0
      open_field_data.db
  39. 1 0
      raw_data.7z.001
  40. 1 0
      raw_data.7z.002
  41. 1 0
      raw_data.7z.003
  42. 1 0
      raw_data.7z.004
  43. 1 0
      raw_data.7z.005
  44. 1 0
      raw_data.7z.006
  45. 1 0
      raw_data.7z.007
  46. 1 0
      raw_data.7z.008
  47. 1 0
      raw_data.7z.009
  48. 1 0
      raw_data.7z.010
  49. 1 0
      raw_data.7z.011
  50. 1 0
      raw_data.7z.012
  51. 1 0
      raw_data.7z.013
  52. 1 0
      raw_data.7z.014
  53. 1 0
      raw_data.7z.015
  54. 1 0
      raw_data.7z.016
  55. 1 0
      raw_data.7z.017
  56. 1 0
      raw_data.7z.018
  57. 1 0
      raw_data.7z.019
  58. 1 0
      raw_data.7z.020
  59. 1 0
      raw_data.7z.021
  60. 1 0
      raw_data.7z.022
  61. 1 0
      raw_data.7z.023
  62. 1 0
      raw_data.7z.024
  63. 1 0
      raw_data.7z.025
  64. 1 0
      raw_data.7z.026
  65. 1 0
      raw_data.7z.027
  66. 1 0
      raw_data.7z.028
  67. 1 0
      raw_data.7z.029
  68. 1 0
      raw_data.7z.030
  69. 1 0
      raw_data.7z.032
  70. 1 0
      raw_data.7z.033
  71. 1 0
      raw_data.7z.034
  72. 1 0
      raw_data.7z.035
  73. 1 0
      raw_data.7z.036
  74. 1 0
      raw_data.7z.037
  75. 1 0
      raw_data.7z.038
  76. 1 0
      raw_data.7z.039
  77. 1 0
      raw_data.7z.040
  78. 1 0
      raw_data.7z.041
  79. 1 0
      raw_data.7z.042
  80. 1 0
      raw_data.7z.043
  81. 1 0
      raw_data.7z.044
  82. 1 0
      raw_data.7z.045
  83. 1 0
      raw_data.7z.046
  84. 1 0
      raw_data.7z.047
  85. 1 0
      raw_data2.7z.001
  86. 1 0
      raw_data2.7z.002
  87. 1 0
      raw_data2.7z.003
  88. 1 0
      raw_data2.7z.004
  89. 1 0
      raw_data2.7z.005
  90. 1 0
      raw_data2.7z.006
  91. 1 0
      raw_data2.7z.007
  92. 1 0
      raw_data2.7z.008
  93. 1 0
      spike_timestamp_data.db

+ 402 - 0
LICENSE

@@ -0,0 +1,402 @@
+Attribution-NonCommercial-NoDerivatives 4.0 International
+
+=======================================================================
+
+Creative Commons Corporation ("Creative Commons") is not a law firm and
+does not provide legal services or legal advice. Distribution of
+Creative Commons public licenses does not create a lawyer-client or
+other relationship. Creative Commons makes its licenses and related
+information available on an "as-is" basis. Creative Commons gives no
+warranties regarding its licenses, any material licensed under their
+terms and conditions, or any related information. Creative Commons
+disclaims all liability for damages resulting from their use to the
+fullest extent possible.
+
+Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and
+conditions that creators and other rights holders may use to share
+original works of authorship and other material subject to copyright
+and certain other rights specified in the public license below. The
+following considerations are for informational purposes only, are not
+exhaustive, and do not form part of our licenses.
+
+     Considerations for licensors: Our public licenses are
+     intended for use by those authorized to give the public
+     permission to use material in ways otherwise restricted by
+     copyright and certain other rights. Our licenses are
+     irrevocable. Licensors should read and understand the terms
+     and conditions of the license they choose before applying it.
+     Licensors should also secure all rights necessary before
+     applying our licenses so that the public can reuse the
+     material as expected. Licensors should clearly mark any
+     material not subject to the license. This includes other CC-
+     licensed material, or material used under an exception or
+     limitation to copyright. More considerations for licensors:
+    wiki.creativecommons.org/Considerations_for_licensors
+
+     Considerations for the public: By using one of our public
+     licenses, a licensor grants the public permission to use the
+     licensed material under specified terms and conditions. If
+     the licensor's permission is not necessary for any reason--for
+     example, because of any applicable exception or limitation to
+     copyright--then that use is not regulated by the license. Our
+     licenses grant only permissions under copyright and certain
+     other rights that a licensor has authority to grant. Use of
+     the licensed material may still be restricted for other
+     reasons, including because others have copyright or other
+     rights in the material. A licensor may make special requests,
+     such as asking that all changes be marked or described.
+     Although not required by our licenses, you are encouraged to
+     respect those requests where reasonable. More considerations
+     for the public:
+    wiki.creativecommons.org/Considerations_for_licensees
+
+=======================================================================
+
+Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
+International Public License
+
+By exercising the Licensed Rights (defined below), You accept and agree
+to be bound by the terms and conditions of this Creative Commons
+Attribution-NonCommercial-NoDerivatives 4.0 International Public
+License ("Public License"). To the extent this Public License may be
+interpreted as a contract, You are granted the Licensed Rights in
+consideration of Your acceptance of these terms and conditions, and the
+Licensor grants You such rights in consideration of benefits the
+Licensor receives from making the Licensed Material available under
+these terms and conditions.
+
+
+Section 1 -- Definitions.
+
+  a. Adapted Material means material subject to Copyright and Similar
+     Rights that is derived from or based upon the Licensed Material
+     and in which the Licensed Material is translated, altered,
+     arranged, transformed, or otherwise modified in a manner requiring
+     permission under the Copyright and Similar Rights held by the
+     Licensor. For purposes of this Public License, where the Licensed
+     Material is a musical work, performance, or sound recording,
+     Adapted Material is always produced where the Licensed Material is
+     synched in timed relation with a moving image.
+
+  b. Copyright and Similar Rights means copyright and/or similar rights
+     closely related to copyright including, without limitation,
+     performance, broadcast, sound recording, and Sui Generis Database
+     Rights, without regard to how the rights are labeled or
+     categorized. For purposes of this Public License, the rights
+     specified in Section 2(b)(1)-(2) are not Copyright and Similar
+     Rights.
+
+  c. Effective Technological Measures means those measures that, in the
+     absence of proper authority, may not be circumvented under laws
+     fulfilling obligations under Article 11 of the WIPO Copyright
+     Treaty adopted on December 20, 1996, and/or similar international
+     agreements.
+
+  d. Exceptions and Limitations means fair use, fair dealing, and/or
+     any other exception or limitation to Copyright and Similar Rights
+     that applies to Your use of the Licensed Material.
+
+  e. Licensed Material means the artistic or literary work, database,
+     or other material to which the Licensor applied this Public
+     License.
+
+  f. Licensed Rights means the rights granted to You subject to the
+     terms and conditions of this Public License, which are limited to
+     all Copyright and Similar Rights that apply to Your use of the
+     Licensed Material and that the Licensor has authority to license.
+
+  g. Licensor means the individual(s) or entity(ies) granting rights
+     under this Public License.
+
+  h. NonCommercial means not primarily intended for or directed towards
+     commercial advantage or monetary compensation. For purposes of
+     this Public License, the exchange of the Licensed Material for
+     other material subject to Copyright and Similar Rights by digital
+     file-sharing or similar means is NonCommercial provided there is
+     no payment of monetary compensation in connection with the
+     exchange.
+
+  i. Share means to provide material to the public by any means or
+     process that requires permission under the Licensed Rights, such
+     as reproduction, public display, public performance, distribution,
+     dissemination, communication, or importation, and to make material
+     available to the public including in ways that members of the
+     public may access the material from a place and at a time
+     individually chosen by them.
+
+  j. Sui Generis Database Rights means rights other than copyright
+     resulting from Directive 96/9/EC of the European Parliament and of
+     the Council of 11 March 1996 on the legal protection of databases,
+     as amended and/or succeeded, as well as other essentially
+     equivalent rights anywhere in the world.
+
+  k. You means the individual or entity exercising the Licensed Rights
+     under this Public License. Your has a corresponding meaning.
+
+
+Section 2 -- Scope.
+
+  a. License grant.
+
+       1. Subject to the terms and conditions of this Public License,
+          the Licensor hereby grants You a worldwide, royalty-free,
+          non-sublicensable, non-exclusive, irrevocable license to
+          exercise the Licensed Rights in the Licensed Material to:
+
+            a. reproduce and Share the Licensed Material, in whole or
+               in part, for NonCommercial purposes only; and
+
+            b. produce and reproduce, but not Share, Adapted Material
+               for NonCommercial purposes only.
+
+       2. Exceptions and Limitations. For the avoidance of doubt, where
+          Exceptions and Limitations apply to Your use, this Public
+          License does not apply, and You do not need to comply with
+          its terms and conditions.
+
+       3. Term. The term of this Public License is specified in Section
+          6(a).
+
+       4. Media and formats; technical modifications allowed. The
+          Licensor authorizes You to exercise the Licensed Rights in
+          all media and formats whether now known or hereafter created,
+          and to make technical modifications necessary to do so. The
+          Licensor waives and/or agrees not to assert any right or
+          authority to forbid You from making technical modifications
+          necessary to exercise the Licensed Rights, including
+          technical modifications necessary to circumvent Effective
+          Technological Measures. For purposes of this Public License,
+          simply making modifications authorized by this Section 2(a)
+          (4) never produces Adapted Material.
+
+       5. Downstream recipients.
+
+            a. Offer from the Licensor -- Licensed Material. Every
+               recipient of the Licensed Material automatically
+               receives an offer from the Licensor to exercise the
+               Licensed Rights under the terms and conditions of this
+               Public License.
+
+            b. No downstream restrictions. You may not offer or impose
+               any additional or different terms or conditions on, or
+               apply any Effective Technological Measures to, the
+               Licensed Material if doing so restricts exercise of the
+               Licensed Rights by any recipient of the Licensed
+               Material.
+
+       6. No endorsement. Nothing in this Public License constitutes or
+          may be construed as permission to assert or imply that You
+          are, or that Your use of the Licensed Material is, connected
+          with, or sponsored, endorsed, or granted official status by,
+          the Licensor or others designated to receive attribution as
+          provided in Section 3(a)(1)(A)(i).
+
+  b. Other rights.
+
+       1. Moral rights, such as the right of integrity, are not
+          licensed under this Public License, nor are publicity,
+          privacy, and/or other similar personality rights; however, to
+          the extent possible, the Licensor waives and/or agrees not to
+          assert any such rights held by the Licensor to the limited
+          extent necessary to allow You to exercise the Licensed
+          Rights, but not otherwise.
+
+       2. Patent and trademark rights are not licensed under this
+          Public License.
+
+       3. To the extent possible, the Licensor waives any right to
+          collect royalties from You for the exercise of the Licensed
+          Rights, whether directly or through a collecting society
+          under any voluntary or waivable statutory or compulsory
+          licensing scheme. In all other cases the Licensor expressly
+          reserves any right to collect such royalties, including when
+          the Licensed Material is used other than for NonCommercial
+          purposes.
+
+
+Section 3 -- License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the
+following conditions.
+
+  a. Attribution.
+
+       1. If You Share the Licensed Material, You must:
+
+            a. retain the following if it is supplied by the Licensor
+               with the Licensed Material:
+
+                 i. identification of the creator(s) of the Licensed
+                    Material and any others designated to receive
+                    attribution, in any reasonable manner requested by
+                    the Licensor (including by pseudonym if
+                    designated);
+
+                ii. a copyright notice;
+
+               iii. a notice that refers to this Public License;
+
+                iv. a notice that refers to the disclaimer of
+                    warranties;
+
+                 v. a URI or hyperlink to the Licensed Material to the
+                    extent reasonably practicable;
+
+            b. indicate if You modified the Licensed Material and
+               retain an indication of any previous modifications; and
+
+            c. indicate the Licensed Material is licensed under this
+               Public License, and include the text of, or the URI or
+               hyperlink to, this Public License.
+
+          For the avoidance of doubt, You do not have permission under
+          this Public License to Share Adapted Material.
+
+       2. You may satisfy the conditions in Section 3(a)(1) in any
+          reasonable manner based on the medium, means, and context in
+          which You Share the Licensed Material. For example, it may be
+          reasonable to satisfy the conditions by providing a URI or
+          hyperlink to a resource that includes the required
+          information.
+
+       3. If requested by the Licensor, You must remove any of the
+          information required by Section 3(a)(1)(A) to the extent
+          reasonably practicable.
+
+
+Section 4 -- Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that
+apply to Your use of the Licensed Material:
+
+  a. for the avoidance of doubt, Section 2(a)(1) grants You the right
+     to extract, reuse, reproduce, and Share all or a substantial
+     portion of the contents of the database for NonCommercial purposes
+     only and provided You do not Share Adapted Material;
+
+  b. if You include all or a substantial portion of the database
+     contents in a database in which You have Sui Generis Database
+     Rights, then the database in which You have Sui Generis Database
+     Rights (but not its individual contents) is Adapted Material; and
+
+  c. You must comply with the conditions in Section 3(a) if You Share
+     all or a substantial portion of the contents of the database.
+
+For the avoidance of doubt, this Section 4 supplements and does not
+replace Your obligations under this Public License where the Licensed
+Rights include other Copyright and Similar Rights.
+
+
+Section 5 -- Disclaimer of Warranties and Limitation of Liability.
+
+  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
+     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
+     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
+     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
+     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
+     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
+     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
+     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
+     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
+     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
+
+  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
+     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
+     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
+     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
+     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
+     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
+     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
+     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
+     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
+
+  c. The disclaimer of warranties and limitation of liability provided
+     above shall be interpreted in a manner that, to the extent
+     possible, most closely approximates an absolute disclaimer and
+     waiver of all liability.
+
+
+Section 6 -- Term and Termination.
+
+  a. This Public License applies for the term of the Copyright and
+     Similar Rights licensed here. However, if You fail to comply with
+     this Public License, then Your rights under this Public License
+     terminate automatically.
+
+  b. Where Your right to use the Licensed Material has terminated under
+     Section 6(a), it reinstates:
+
+       1. automatically as of the date the violation is cured, provided
+          it is cured within 30 days of Your discovery of the
+          violation; or
+
+       2. upon express reinstatement by the Licensor.
+
+     For the avoidance of doubt, this Section 6(b) does not affect any
+     right the Licensor may have to seek remedies for Your violations
+     of this Public License.
+
+  c. For the avoidance of doubt, the Licensor may also offer the
+     Licensed Material under separate terms or conditions or stop
+     distributing the Licensed Material at any time; however, doing so
+     will not terminate this Public License.
+
+  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
+     License.
+
+
+Section 7 -- Other Terms and Conditions.
+
+  a. The Licensor shall not be bound by any additional or different
+     terms or conditions communicated by You unless expressly agreed.
+
+  b. Any arrangements, understandings, or agreements regarding the
+     Licensed Material not stated herein are separate from and
+     independent of the terms and conditions of this Public License.
+
+
+Section 8 -- Interpretation.
+
+  a. For the avoidance of doubt, this Public License does not, and
+     shall not be interpreted to, reduce, limit, restrict, or impose
+     conditions on any use of the Licensed Material that could lawfully
+     be made without permission under this Public License.
+
+  b. To the extent possible, if any provision of this Public License is
+     deemed unenforceable, it shall be automatically reformed to the
+     minimum extent necessary to make it enforceable. If the provision
+     cannot be reformed, it shall be severed from this Public License
+     without affecting the enforceability of the remaining terms and
+     conditions.
+
+  c. No term or condition of this Public License will be waived and no
+     failure to comply consented to unless expressly agreed to by the
+     Licensor.
+
+  d. Nothing in this Public License constitutes or may be interpreted
+     as a limitation upon, or waiver of, any privileges and immunities
+     that apply to the Licensor or You, including from the legal
+     processes of any jurisdiction or authority.
+
+=======================================================================
+
+Creative Commons is not a party to its public
+licenses. Notwithstanding, Creative Commons may elect to apply one of
+its public licenses to material it publishes and in those instances
+will be considered the “Licensor.” The text of the Creative Commons
+public licenses is dedicated to the public domain under the CC0 Public
+Domain Dedication. Except for the limited purpose of indicating that
+material is shared under a Creative Commons public license or as
+otherwise permitted by the Creative Commons policies published at
+creativecommons.org/policies, Creative Commons does not authorize the
+use of the trademark "Creative Commons" or any other trademark or logo
+of Creative Commons without its prior written consent including,
+without limitation, in connection with any unauthorized modifications
+to any of its public licenses or any other arrangements,
+understandings, or agreements concerning use of licensed material. For
+the avoidance of doubt, this paragraph does not form part of the
+public licenses.
+
+Creative Commons may be contacted at creativecommons.org.

+ 20 - 0
README.md

@@ -0,0 +1,20 @@
+# Theta_acceleration_data
+
+Dataset for the paper:
+
+Frequency of theta rhythm is controlled by acceleration but not speed in running rats
+
+Kropff E., Carmichael J.E., Moser E.I. and Moser M-B.
+
+
+
+
+The raw data in Axona format was compressed using 7-zip. It includes one folder per animal with tracked position (.pos), one 4.8 KHz sampled eeg per tetrode (.egfx), setup file (.set) and log files for car experiments (.log). For animals with 2 .egfx files per session, all data is entorhinal. For animals with 3 .egfx files per session, .egf is hippocampal while .egf2 and .egf3 are entorhinal. Always .egf is for tetrodes 1 to 4, .egf2 for tetrodes 5 to 8 and .egf3 for tetrodes 9 to 12. Filenames contain the date and session number following the format YYMMDDSS (YY = year, MM = month, DD = day, SS = session number).
+
+Log files for car sessions have two columns. The first column indicates the timestamp in milliseconds. The second column indicates the type of event occurring at that timestamp. Events can be either alarm_x, start_x, end_x or a number indicating car speed, x taking values r (right) or l (left). The alarm event corresponds to the beginning of a sound played for 6 seconds before the car starts moving. Consecutive start and end events demark one run along the 4 m track in either left or right direction. Each number event is a signal sent at that moment to the motor controlling the car. It is expressed in arbitrary units that can be converted to actual car speed multiplying the value by a factor of 0.35.
+
+The spreadsheet 'all sessions.xlsx' contains one sheet per experimental animal, with a column for the date (YYMMDD) and six columns indicating type of session for each session number (blank indicates no more sessions conducted that day). Session types are A,B or S for open field, C and V for 2-speed and 4-speed protocol (correspondingly) regular car experiments, P and D for passive transport and dark (correspondingly) car experiments. Other session types are not relevant for this paper.
+
+The 'spike_timestamp_data.db' file contains a single MATLAB structure 'db' saved in '-mat' format. It contains spike timestamps for 2497 entorhinal cells (all sessions on a given day, one day per cell). The fields of the structure are: 'cell_type' (grid, hd, speed, border, putative interneuron), 'timestamps' in seconds relative the start of each session, 'session_type' for each session, rat, date and tetrode. Session types are coded as in 'all sessions.xlsx'.
+
+The 'codes' folder has MATLAB scripts for individual figures.

BIN
all sessions.xlsx


+ 40 - 0
code/Fig_1/Fig_1.m

@@ -0,0 +1,40 @@
+load('data_fig_1.db','-mat');
+figure;
+
+%% theta frequency
+frwin=3;
+for a=1:2
+    rx=size(data.unwrapped_phase_right{a},1);
+    freq_right{a}=([data.unwrapped_phase_right{a}(:,1+frwin:end) nan(rx,frwin)]-[nan(rx,frwin) data.unwrapped_phase_right{a}(:,1:end-frwin)])/2/pi/0.02/frwin/2;
+    rx=size(data.unwrapped_phase_left{a},1);
+    freq_left{a}=([data.unwrapped_phase_left{a}(:,1+frwin:end) nan(rx,frwin)]-[nan(rx,frwin) data.unwrapped_phase_left{a}(:,1:end-frwin)])/2/pi/0.02/frwin/2;    
+end
+
+%% acceleration
+win=10;    %gfr=fr;
+
+
+    rx=size(data.x_right,1);
+    acc_right=-([nan(rx,win) data.x_right(:,1:end-win)]+[data.x_right(:,1+win:end) nan(rx,win)]-2*data.x_right)/0.02/0.02/win/win;
+    rx=size(data.x_left,1);    
+    acc_left=([nan(rx,win) data.x_left(:,1:end-win)]+[data.x_left(:,1+win:end) nan(rx,win)]-2*data.x_left)/0.02/0.02/win/win;    
+
+
+ fct=0; 
+th=8; axlim=[-120  220]; 
+subplot(2,1,1)
+
+gacc=acc_right;
+gfr=freq_right;
+do_plots;
+
+set(AX(2),'XTick',[]);
+
+subplot(2,1,2)
+    gfr=freq_left; 
+    gacc=acc_left;    
+
+do_plots;
+set(AX(2),'XTick',[]);
+
+

+ 48 - 0
code/Fig_1/Fig_1.m~

@@ -0,0 +1,48 @@
+load('data_fig_1.db','-mat');
+
+
+subplot(2,1,1)
+
+%% theta frequency
+frwin=3;
+for a=1:3
+    rx=size(data.unwrapped_phase_right{a},1);
+    freq_right{a}=([data.unwrapped_phase_right{a}(:,1+frwin:end) nan(rx,frwin)]-[nan(rx,frwin) data.unwrapped_phase_right{a}(:,1:end-frwin)])/2/pi/0.02/frwin/2;
+    rx=size(data.unwrapped_phase_left{a},1);
+    freq_left{a}=([data.unwrapped_phase_left{a}(:,1+frwin:end) nan(rx,frwin)]-[nan(rx,frwin) data.unwrapped_phase_left{a}(:,1:end-frwin)])/2/pi/0.02/frwin/2;    
+end
+
+%% acceleration
+win=10;    %gfr=fr;
+
+
+    rx=size(x,1);
+    acc_right=-([nan(rx,win) x(:,1:end-win)]+[x(:,1+win:end) nan(rx,win)]-2*x)/0.02/0.02/win/win;
+
+
+axlim=0; fct=0; th=0; 
+th=ths(r); axlim=[-120  220]; %fct=0.0127;
+new_figfig
+% set(AX(2),'XTickLabel',[]);
+% set(AX(1),'XTickLabel',[]);
+
+set(AX(2),'XTick',[]);
+% L=legend('acceleration','CA1','MEC','Location', 'NorthEast');
+% set(L,'Color','none')
+% set(L,'box','off')
+% set(L,'FontSize',10,'FontName','Arial')
+subplot(2,1,2)
+% win=5;
+if r==3
+    gfr=data.unwrapped_phase_left; gacc=lacc;
+    rx=size(lx,1);
+    gacc=([nan(rx,win) lx(:,1:end-win)]+[lx(:,1+win:end) nan(rx,win)]-2*lx)/0.02/0.02/win/win;    
+else
+    gfr=fr; gacc=acc; 
+    rx=size(x,1);
+    gacc=-([nan(rx,win) x(:,1:end-win)]+[x(:,1+win:end) nan(rx,win)]-2*x)/0.02/0.02/win/win;    
+end
+% axlim=[-160 260];
+new_figfig
+set(AX(2),'XTick',[]);
+

+ 1 - 0
code/Fig_1/data_fig_1.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s23588531--4e064a672abd8adcfb19ca2e5e57e4f9

+ 62 - 0
code/Fig_1/do_plots.m

@@ -0,0 +1,62 @@
+
+% selx=423:624;
+selx=451:601;
+bx=(-500:500)/50;
+col1=.1*[1 1 1];%[.0 .6 .6];
+col2=[255 175 3]/255;%[77 255 255]/255;%[255 195 77]/255;%[225 54 255]/255;%[255 110 238]/255;[0 .63 .54];
+col3=[255 0 0]/255;%[106 77 255]/255;%[77 255 106]/255;%[.60 .65 .0];%[77 255 106]/255;%[0 1 1]*.9;
+xxx=gacc(:,selx);
+mxxx=nanmean(xxx);
+sxxx=nanstd(xxx)/2;
+hold on;
+
+
+[AX,H1,H2]=plotyy(bx(selx),nanmean(gacc(:,selx)),bx(selx),[nanmean(gfr{1}(:,selx))' nanmean(gfr{2}(:,selx))']);
+uistack(AX(1), 'top')
+
+set(AX(1),'Color','none')
+set(AX(1),'FontName','Arial');
+set(AX(2),'FontName','Arial');
+if th==0
+    th=nanmean(nanmean(gfr{2}(:,[423:450 600:624])));
+    th=.5*round(th/.5);
+end
+if fct==0
+    fct= (nanmean([max(nanmean(gfr{2}(:,selx))) max(nanmean(gfr{1}(:,selx)))])-th)/max(mxxx);
+end
+set(H1,'LineWidth',1);set(H2,'LineWidth',2);
+set(H1,'LineStyle','--','Color',col1);
+ set(H2(1),'Color',col2)
+set(H2(2),'Color',col3)
+if axlim==0
+    axlim=1.01*[1.15*min(mxxx-sxxx) max(mxxx+sxxx)];
+end
+axs=-1000:100:1000;
+set(AX(1),'YLim',axlim);
+set(AX(1),'YLim',axlim); %axlim=get(AX(2),'YLim');
+set(AX(1),'YTick',axs);
+set(AX(1),'XTick',-3:1:3);
+set(AX(2),'YLim',axlim*fct+th-0.0);%[6.332 10]);
+set(AX(2),'YTick',6:11);
+set(AX(1),'XLim',[-1 2]);
+set(AX(2),'XLim',[-1 2]);
+set(AX(1),'box','off');
+set(AX(1),'YColor','k');
+set(AX(2),'YColor',col3);
+AX(1)=reg_plots(AX(1));
+AX(2)=reg_plots(AX(2));
+
+
+
+AX_annotations = copyobj(AX(1),get(AX(1),'Parent'));
+A=area(AX_annotations,bx(selx),[mxxx-sxxx; 2*sxxx]'); 
+set(A(1),'Visible','off');
+set(A(2),'FaceColor',col1+(1-col1)*.8);
+set(A(2),'EdgeColor','none');
+uistack(AX_annotations, 'bottom');
+set(AX_annotations,'Color',[1 1 1]);
+set(AX_annotations,'XTick',[],'YTick',[]);
+dsp=diff(axlim)/200*120;
+ set(AX(1),'dataaspectratio',[1 dsp 1]);
+ set(AX(2),'dataaspectratio',[1 dsp*fct 1]);
+ set(AX_annotations,'dataaspectratio',[1 dsp 1]);

+ 3 - 0
code/Fig_1/reg_plots.m

@@ -0,0 +1,3 @@
+function ax=reg_plots(ax)
+set(ax,'FontSize',13);
+set(ax,'FontName','Arial');

+ 60 - 0
code/Fig_1b/Fig_1c.m

@@ -0,0 +1,60 @@
+load('data_fig_1c.db','-mat');
+
+ecp=bsxfun(@rdivide,bsxfun(@minus,eeghp.ecL.p,nanmean(eeghp.ecL.p)),nanmean(amp.ecL.p));
+ecm=bsxfun(@rdivide,bsxfun(@minus,eeghp.ecL.m,nanmean(eeghp.ecL.m)),nanmean(amp.ecL.m));
+
+egp=bsxfun(@rdivide,bsxfun(@minus,eeg.ecL.p,nanmean(eeg.ecL.p)),nanmean(amp.ecL.p));
+egm=bsxfun(@rdivide,bsxfun(@minus,eeg.ecL.m,nanmean(eeg.ecL.m)),nanmean(amp.ecL.m));
+%%
+ks=20;
+sel=4801:14400;
+aux=ecp(sel,:);
+[idx,Cp]=kmeans(aux',ks);
+aux=ecm(sel,:);
+[idxm,Cm]=kmeans(aux',ks);
+%%
+close all;
+f=figure;
+pp=zeros(19201,ks);
+pm=pp;
+for j=1:ks
+   pp(:,j)=mean(ecp(:,idx==j),2);
+   pm(:,j)=mean(ecm(:,idxm==j),2);
+end
+
+C=corr(pp(sel(2401:4800),:),pm(sel(2401:4800),:));
+C(1:ks+1:end)=-1;
+nsp=8;
+fp=zeros(1,nsp);
+fm=fp;
+phm=fp;
+for j=1:nsp
+    [mC,rw]=max(C);
+    [~,cl]=max(mC);
+    rw=rw(cl);
+  
+
+fp(j)=rw;
+fm(j)=cl;
+   
+   C(:,cl)=-1;
+   C(rw,:)=-1;
+   phm(j)=angle(mean(exp(1i*phase.ecL.m(9601,bsxfun(@eq,idxm,fm(j)))),2));
+end
+[~,sindex]=sort(phm,'descend');
+for k=1:nsp
+    j=sindex(k);
+    subplot(nsp,1,k)
+    rw=fp(j); cl=fm(j);
+    disp([C(rw,cl),corr(pp(sel(2401:4800),rw),pm(sel(2401:4800),cl)),sum(idx==rw),sum(idxm==cl)])
+
+    auxp=mean(ecp(:,idx==fp(j)),2); 
+    plot((-9600:9600)/4800,auxp,'c','LineWidth',2);
+   hold on;
+   auxm=mean(ecm(:,idxm==fm(j)),2);
+   plot((-9600:9600)/4800,auxm,'b','LineWidth',2);
+   axis([-.5 .5 1.4*[-1 1]]);   
+   set(gca,'XTick',-0.5:.5:.5,'XTickLabel',[]);
+   golden(.3)
+end
+set(gca,'XTick',-0.5:.5:.5,'XTickLabel',-0.5:.5:.5,'FontName','Arial');

+ 1 - 0
code/Fig_1b/data_fig_1c.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s1715354492--3acf785d1a3a26cefc5fae02b184747d

+ 225 - 0
code/Fig_2/Fig_2.m

@@ -0,0 +1,225 @@
+load('data_fig_2.db','-mat');
+
+res={};
+bins=(1:300)*.002;
+res.allcells.positive=0*bins;
+res.allcells.negative=0*bins;
+res.allcells.shuff=zeros(1000,numel(bins));
+typ='allcells';
+delta_r=5.0666667;
+delta_l=30.4;
+if 1
+
+    for i=1:numel(alldata.ts)
+        
+        
+        data=alldata.pos{i};
+        ts=alldata.ts{i};
+        
+        %%
+        nlaps=min(numel(data.log.end_r),numel(data.log.end_l));
+        
+        right=(data.log.start_r(1:nlaps)+delta_r)';
+        left=(data.log.start_l(1:nlaps)+delta_l)';  
+
+        dwin=.5;
+
+        %% speed
+        selfast=is_inside(ts',data.log.start_r'+1,data.log.start_r'+4) | is_inside(ts',data.log.start_l'+31.5,data.log.start_l'+34.5);
+        selslow=is_inside(ts',data.log.start_l'+5,data.log.start_l'+25) | is_inside(ts',data.log.start_r'+8,data.log.start_r'+28);
+        res.(typ).fast(i,:)=hist(autoc2(ts(selfast)),bins)/6;    
+        res.(typ).slow(i,:)=hist(autoc2(ts(selslow)),bins)/40;    
+        
+        %% acceleration
+
+        res.(typ).negative=res.(typ).negative + hist(autoc2(ts(is_inside(ts',right,right+dwin))),bins);    
+        res.(typ).positive=res.(typ).positive + hist(autoc2(ts(is_inside(ts',left,left+dwin))),bins);                       
+        
+        for j=1:1000
+            shuff_fast=data.log.start_r'+1+3*rand(1,nlaps);
+            shuff_slow=data.log.start_l'+5+20*rand(1,nlaps);          
+            shuff=[shuff_fast shuff_slow];
+            shuff=shuff(randperm(numel(shuff),numel(shuff)/2));
+            res.(typ).shuff(j,:)=res.(typ).shuff(j,:)+hist(autoc2(ts(is_inside(ts',shuff,shuff+dwin))),bins);
+        end       
+    
+    end
+end
+
+%%
+%%
+close all
+
+bins=(1:150)*.004;
+
+
+%%
+sel=bins>0.01 & bins<0.3;
+types={'allcells'};
+nshuf=1000;
+sname='shuff_speed.mat';
+if exist(sname,'file')
+    load(sname,'-mat')
+else
+    sh_f1={};sh_f2={};
+    for ty=1:numel(types)
+        typ=types{ty};
+    sh_f1.(typ)=zeros(1,nshuf);
+    sh_f2.(typ)=zeros(1,nshuf);      
+for j=1:nshuf
+    if mod(j,100)==0
+        disp(j);
+    end
+    sel=rand(1,size(res.(typ).fast,1))>.5;
+    
+    aux1=mean([reshape(res.(typ).fast(sel,:),[],150); reshape(res.(typ).slow(~sel,:),[],150)]);
+    aux2=mean([reshape(res.(typ).fast(~sel,:),[],150); reshape(res.(typ).slow(sel,:),[],150)]);
+    aux1(end)=0;
+    aux2(end)=0;
+    aux1=aux1/max(aux1);    
+    aux2=aux2/max(aux2);    
+    c1=do_fit(bins,aux1);
+    c2=do_fit(bins,aux2);
+    
+    sh_f1.(typ)(j)=c1.f;
+    sh_f2.(typ)(j)=c2.f;
+ 
+end
+
+    end
+save(sname,'sh_f1','sh_f2','-mat');
+end
+%% speed
+
+for ty=numel(types)
+    typ=types{ty};
+    f=figure;
+    hold on;
+    aux=mean(reshape(res.(typ).fast,[],150))/8;
+    aux(end)=0;
+    mxaux=max(aux);
+    aux=aux/max(aux);
+ffast=do_plot(bins,aux,[0 1 0],[.5 1 .5]);    
+    auxs=mean(reshape(res.(typ).slow,[],150))/40;
+    auxs(end)=0;
+    mxauxs=max(auxs);
+
+    auxs=auxs/max(auxs);
+    fslow=do_plot(bins,auxs,[1 0 0],[1 .5*[1 1]]); 
+
+subplot(2,2,1)
+axis([0 .3 0.3 1.2]);
+gl=1.5;
+
+set(gca,'YTick',0:.5:2,'FontName','Arial');
+subplot(2,2,2)
+axis([0 .3 .15*[-1 1] ]);
+
+set(gca,'YTick',-.6:.1:.6,'FontName','Arial');
+
+
+subplot(2,2,3)
+fbins=7.5:.01:8.5;
+h=hist([sh_f1.(typ) sh_f2.(typ)],fbins);
+b=bar(fbins,h,'LineStyle','none','FaceColor',.5*[1 2 1],'BarWidth',1.0);
+mx=ceil(2*max(h));
+hold on;
+legend off;
+line((fslow)*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*.5);
+line(ffast*[1 1],[0 mx],'LineWidth',2,'Color',[1 .5 .5]);
+axis([7.6 8.0 0 380]);
+axis([7.5 9.5 0 380]);
+
+set(gca,'YTick',0:100:300)
+
+subplot(224)
+fbins=7.5:.01:8.5;
+h=hist([sh_f1.(typ) sh_f2.(typ)],fbins);
+b=bar(fbins,h,'LineStyle','none','FaceColor',.5*[1 2 1],'BarWidth',1.0);
+mx=ceil(2*max(h));
+hold on;
+legend off;
+line((fslow)*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*.5);
+line(ffast*[1 1],[0 mx],'LineWidth',2,'Color',[1 .5 .5]);
+axis([7.6 8.0 0 300]);
+
+set(gca,'YTick',0:100:300)
+
+
+end
+
+%% Acceleration
+gs=0;
+figure;
+for ty=numel(types)
+    typ=types{ty};
+
+    hold on;
+    aux=gauss_boxcar(mean(reshape(res.(typ).negative,2,150)),gs);
+    aux=aux/max(aux);
+fm=do_plot(bins,aux,[0 0 0],.5*[1 1 1]);    
+    aux=gauss_boxcar(mean(reshape(res.(typ).shuff(1,:),2,150)),gs);
+    aux=aux/max(aux);
+    fc=do_plot(bins,aux,[0 1 0],[.5 1 .5]);    
+    aux=gauss_boxcar(mean(reshape(res.(typ).positive,2,150)),gs);
+    aux=aux/max(aux);
+    fp=do_plot(bins,aux,[1 0 0],[1 .5*[1 1]]); 
+end
+subplot(2,2,1)
+axis([0 .3 0.3 1.2]);
+
+set(gca,'YTick',0:.5:2,'FontName','Arial');
+subplot(2,2,2)
+axis([0 .3 .15*[-1 1] ]);
+
+set(gca,'YTick',-.6:.1:.6,'FontName','Arial');
+
+
+sname='shuff_acc.mat';
+if exist(sname,'file')
+    load(sname,'-mat')
+else
+    
+for j=1:nshuf
+    if mod(j,100)==0
+        disp(j);
+    end
+
+    acc_f(j)=all_fit(res.(typ).shuff(j,:));
+
+end
+
+save(sname,'acc_f','-mat');
+end
+%%
+subplot(2,2,3)
+fbins=7:.05:9;
+h=hist(acc_f,fbins);
+h=h;%/sum(h);
+b=bar(fbins,h,'LineStyle','none','FaceColor',.5*[1 2 1],'BarWidth',1.0);
+mx=ceil(2.1*max(h));
+gg=fit(fbins',h','gauss1');
+hold on;
+p1=plot(gg);
+set(p1,'Color',[.5 1 .5]-.5);
+legend off;
+% line(fc*[1 1],[0 mx],'LineWidth',2,'Color',[0 1 0]);
+line(fm*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*.5);
+line(fp*[1 1],[0 mx],'LineWidth',2,'Color',[1 .5 .5]);
+axis([7.5 9.5 0 280]);
+set(gca,'YTick',0:100:300);
+p_n=(1-erf((fm-gg.b1)/gg.c1)); 
+p_p=(1-erf((fp-gg.b1)/gg.c1));
+
+
+title(['neg: ' num2str(1-erf(abs(fm-gg.b1)/gg.c1)) '   pos: ' num2str(p_p)]);
+
+
+
+
+
+%%
+
+
+
+

+ 196 - 0
code/Fig_2/Fig_2.m~

@@ -0,0 +1,196 @@
+load('data_fig_2.db','-mat');
+
+res={};
+bins=(1:300)*.002;
+res.allcells.positive=0*bins;
+res.allcells.negative=0*bins;
+res.allcells.shuff=zeros(1000,numel(bins));
+typ='allcells';
+delta_r=5.0666667;
+delta_l=30.4;
+if 1
+
+    for i=1:numel(alldata.ts)
+        
+        
+        data=alldata.pos{i};
+        ts=alldata.ts{i};
+        
+        %%
+        nlaps=min(numel(data.log.end_r),numel(data.log.end_l));
+        
+        right=(data.log.start_r(1:nlaps)+delta_r)';
+        left=(data.log.start_l(1:nlaps)+delta_l)';  
+
+        dwin=.5;
+
+        %% speed
+        selfast=is_inside(ts',data.log.start_r'+1,data.log.start_r'+4) | is_inside(ts',data.log.start_l'+31.5,data.log.start_l'+34.5);
+        selslow=is_inside(ts',data.log.start_l'+5,data.log.start_l'+25) | is_inside(ts',data.log.start_r'+8,data.log.start_r'+28);
+        res.(typ).fast(i,:)=hist(autoc2(ts(selfast)),bins)/6;    
+        res.(typ).slow(i,:)=hist(autoc2(ts(selslow)),bins)/40;    
+        
+        %% acceleration
+
+        res.(typ).negative=res.(typ).negative + hist(autoc2(ts(is_inside(ts',right,right+dwin))),bins);    
+        res.(typ).positive=res.(typ).positive + hist(autoc2(ts(is_inside(ts',left,left+dwin))),bins);                       
+        
+        for j=1:1000
+            shuff_fast=data.log.start_r'+1+3*rand(1,nlaps);
+            shuff_slow=data.log.start_l'+5+20*rand(1,nlaps);          
+            shuff=[shuff_fast shuff_slow];
+            shuff=shuff(randperm(numel(shuff),numel(shuff)/2));
+            res.(typ).shuff(j,:)=res.(typ).shuff(j,:)+hist(autoc2(ts(is_inside(ts',shuff,shuff+dwin))),bins);
+        end       
+    
+    end
+    save('partial_res.db','res','-mat');
+end
+
+%%
+%%
+close all
+
+bins=(1:150)*.004;
+
+
+%%
+sel=bins>0.01 & bins<0.3;
+types={'allcells'};
+nshuf=1000;
+sname='shuff_speed.mat';
+if 0%exist(sname,'file')
+    load(sname,'-mat')
+else
+    sh_f1={};sh_f2={};
+    for ty=1:numel(types)
+        typ=types{ty};
+    sh_f1.(typ)=zeros(1,nshuf);
+    sh_f2.(typ)=zeros(1,nshuf);      
+%     aux_all=[.5*(res.(typ).fast(:,1:2:end)+res.(typ).fast(:,2:2:end)); .5*(res.(typ).slow(:,1:2:end)+res.(typ).slow(:,2:2:end)); ]
+for j=1:nshuf
+    if mod(j,100)==0
+        disp(j);
+    end
+    sel=rand(1,size(res.(typ).fast,1))>.5;
+    
+    aux1=mean([reshape(res.(typ).fast(sel,:),[],150); reshape(res.(typ).slow(~sel,:),[],150)]);
+    aux2=mean([reshape(res.(typ).fast(~sel,:),[],150); reshape(res.(typ).slow(sel,:),[],150)]);
+    aux1(end)=0;
+    aux2(end)=0;
+    aux1=aux1/max(aux1);    
+    aux2=aux2/max(aux2);    
+    c1=do_fit(bins,aux1);
+    c2=do_fit(bins,aux2);
+    
+    sh_f1.(typ)(j)=c1.f;
+    sh_f2.(typ)(j)=c2.f;
+ 
+end
+
+    end
+save(sname,'sh_f1','sh_f2','-mat');
+end
+%% speed
+
+
+
+
+for ty=numel(types)
+    typ=types{ty};
+    f=figure;
+    hold on;
+    aux=mean(reshape(res.(typ).fast,[],150))/8;
+    aux(end)=0;
+    mxaux=max(aux);
+    aux=aux/max(aux);
+ffast=do_plot(bins,aux,[0 1 0],[.5 1 .5]);    
+    auxs=mean(reshape(res.(typ).slow,[],150))/40;
+    auxs(end)=0;
+    mxauxs=max(auxs);
+
+    auxs=auxs/max(auxs);
+    fslow=do_plot2(bins,auxs,[1 0 0],[1 .5*[1 1]]); 
+
+subplot(2,2,1)
+axis([0 .3 0.3 1.2]);
+gl=1.5;
+%golden(gl);
+set(gca,'YTick',0:.5:2,'FontName','Arial');
+subplot(2,2,2)
+axis([0 .3 .15*[-1 1] ]);
+%golden(gl);
+set(gca,'YTick',-.6:.1:.6,'FontName','Arial');
+
+
+subplot(2,2,3)
+fbins=7.5:.01:8.5;
+h=hist([sh_f1.(typ) sh_f2.(typ)],fbins);
+b=bar(fbins,h,'LineStyle','none','FaceColor',.5*[1 2 1],'BarWidth',1.0);
+mx=ceil(2*max(h));
+hold on;
+legend off;
+line((fslow)*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*.5);
+line(ffast*[1 1],[0 mx],'LineWidth',2,'Color',[1 .5 .5]);
+axis([7.6 8.0 0 380]);
+axis([7.5 9.5 0 380]);
+
+set(gca,'YTick',0:100:300)
+
+subplot(224)
+fbins=7.5:.01:8.5;
+h=hist([sh_f1.(typ) sh_f2.(typ)],fbins);
+b=bar(fbins,h,'LineStyle','none','FaceColor',.5*[1 2 1],'BarWidth',1.0);
+mx=ceil(2*max(h));
+hold on;
+legend off;
+line((fslow)*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*.5);
+line(ffast*[1 1],[0 mx],'LineWidth',2,'Color',[1 .5 .5]);
+axis([7.6 8.0 0 300]);
+
+set(gca,'YTick',0:100:300)
+
+
+end
+
+%% Acceleration
+gs=0;
+for ty=numel(types)
+    typ=types{ty};
+%     f=figure;
+%     plot(bins,gauss_boxcar(sum(res.(typ).right.pre,1),gs),'Color',[1 .5 .5]);
+    hold on;
+    aux=gauss_boxcar(mean(reshape(res.(typ).right,2,150)),gs);
+    aux=aux/max(aux);
+fm=myplot33(bins,aux,[0 0 0],.5*[1 1 1]);    
+%     plot(bins,gauss_boxcar(sum(res.(typ).left.pre,1),gs),'Color',.5*[1 1 1]);
+
+
+
+%%
+
+
+
+   
+%     plot(bins,aux/max(aux),'Color',[1 0 0]);
+    aux=gauss_boxcar(mean(reshape(res.(typ).control(1,:),2,150)),gs);
+    aux=aux/max(aux);
+    fc=myplot3(bins,aux,[0 1 0],[.5 1 .5]);    
+%     plot(bins,aux/max(aux),'Color',[0 1 0]);
+
+    aux=gauss_boxcar(mean(reshape(res.(typ).left,2,150)),gs);
+    aux=aux/max(aux);
+    fp=myplot3(bins,aux,[1 0 0],[1 .5*[1 1]]); 
+end
+subplot(2,2,1)
+axis([0 .3 0.3 1.2]);
+gl=1.5;
+golden(gl);
+set(gca,'YTick',0:.5:2,'FontName','Arial');
+subplot(2,2,2)
+axis([0 .3 .15*[-1 1] ]);
+golden(gl);
+set(gca,'YTick',-.6:.1:.6,'FontName','Arial');
+
+
+

+ 8 - 0
code/Fig_2/all_fit.m

@@ -0,0 +1,8 @@
+function f=all_fit(aux)
+autoc_step=.002;
+autoc_bins=1:300; 
+bins=(autoc_bins)*autoc_step*2; bins=bins(1:150);
+    aux=mean(reshape(aux,[],150));
+    aux=aux/max(aux);    
+    c=do_fit(bins,aux);
+    f=c.f;

+ 19 - 0
code/Fig_2/autoc2.m

@@ -0,0 +1,19 @@
+function ht=autoc2(ts,mn,mx)%,autoc_bins,autoc_step)
+    if ~exist('mn','var')
+        mn=0;
+        mx=1;
+    end
+
+    overl=5000;
+    ksel=1:min(numel(ts),overl); %memory overload
+    ht=[];
+    if numel(ts)>1
+
+        while ~isempty(ksel)
+            haux=bsxfun(@minus,ts(ksel),ts(ksel)');
+            ht=[ht; haux(haux>mn & haux<mx)];
+            ksel=ksel(end)+1:min(numel(ts),ksel(end)+overl);
+        end
+    end
+
+end

+ 1 - 0
code/Fig_2/data_fig_2.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s1008483337--77108f3ab8132a9e1122cb1ff7829911

+ 14 - 0
code/Fig_2/do_fit.m

@@ -0,0 +1,14 @@
+function [c,g]=do_fit(bins,aux)
+
+sel=bins>0.015 & bins<0.3;
+
+
+fo = fitoptions('Method','NonlinearLeastSquares',...
+               'Lower',[0.2,0,0,0,6,-1,-1],...
+               'Upper',[2,20,1,Inf,12,1,1],...
+               'StartPoint',[1,3,.2,10,8,0,0]);
+% ft = fittype('a-b*x+c*cos(2*pi*f*x)*exp(-d*x)','options',fo);
+ft = fittype('a*exp(-b*x)+c*cos(2*pi*f*x)*exp(-d*x)+g+h*x','options',fo);
+
+
+[c, g] = fit(bins(sel)',aux(sel)',ft);

+ 45 - 0
code/Fig_2/do_plot.m

@@ -0,0 +1,45 @@
+function ff=do_plot(bins,aux,col,col2)    
+% aux=aux/max(aux);
+% 
+% sel=bins>0.015 & bins<0.3;
+% 
+% 
+% fo = fitoptions('Method','NonlinearLeastSquares',...
+%                'Lower',[0.2,0,0,0,6,-1,-1],...
+%                'Upper',[2,20,1,Inf,12,1,1],...
+%                'StartPoint',[1,3,.2,10,8,0,0]);
+% % ft = fittype('a-b*x+c*cos(2*pi*f*x)*exp(-d*x)','options',fo);
+% ft = fittype('a*exp(-b*x)+c*cos(2*pi*f*x)*exp(-d*x)+g+h*x','options',fo);
+
+% aux=aux/max(aux);
+[curve2, ~] = do_fit(bins,aux);
+
+aux=aux/feval(curve2,0);
+[curve2, gof2] = do_fit(bins,aux);
+
+
+subplot(2,2,1)
+p1=plot(curve2);
+set(p1,'Color',col2,'LineWidth',2);
+hold on;
+plot(bins,aux,'Color',col);
+plot(bins,curve2.a*exp(-curve2.b*bins)+curve2.g+curve2.h*bins,'c');
+
+legend off;
+axis([0 .3 0 1.2])
+
+subplot(2,2,2)
+
+plot(bins,curve2.c.*cos(2*pi*curve2.f.*bins).*exp(-curve2.d.*bins),'Color',col2,'LineWidth',2);
+hold on;
+plot(bins,aux-feval(curve2,bins)'+curve2.c.*cos(2*pi*curve2.f.*bins).*exp(-curve2.d.*bins),'Color',col);
+
+% disp(curve2.f);
+% curve2
+% gof2
+disp(['freq: ' trunc(curve2.f,3) '  R^{2}: ' trunc(gof2.rsquare,3)]);
+ff=curve2.f;
+axis([0 .3 -.2 .2])
+
+
+% plot(bins,.2+.9*exp(-6*bins).*(1+.1*cos(2*pi*bins*9)),'b');

BIN
code/Fig_2/shuff_acc.mat


BIN
code/Fig_2/shuff_speed.mat


+ 149 - 0
code/Fig_3/Fig_3.m

@@ -0,0 +1,149 @@
+close all;
+% load('N:\kropff\analyisis\figs\fig2a\all open data_q95.db','-mat');
+% load('N:\kropff\analyisis\figs\fig2a\all car data_q95.db','-mat');
+% % % load('all open data.db','-mat');
+% % % load('all car data.db','-mat');
+% db_all.car=db_car;
+% db_all.open=db_open;
+% clear db_car; clear db_open;
+%     addpath('/gpfs/work/kropff/common_functions/');
+
+dats={'ec', 'hc'};
+% Haccum={};
+w1=0; w2=3;
+jet2=interp1(1:64,jet,(1+w1:(64-w1-w2-1)/(64-1):64-w2));
+
+% load(['all ' dat ' data.db'],'-mat')
+dang=pi/50;
+dacc=20;%15;
+accbins=0:dacc:200; %350
+angbins=-pi:dang:pi; angbins(end)=[]; angbins=angbins+dang/2;  
+cols=[ [1 0 0]; [255 175 3]/255];
+
+
+for d=1:2%1:2
+% dat='open';
+% dat='car';
+dat=dats{d};
+
+% close all;
+
+
+
+ 
+% close all;
+histlim=5*dacc;
+
+
+
+angbins=-pi:dang:pi; angbins(end)=[]; angbins=angbins+dang/2;  
+Ha=zeros(numel(angbins),numel(accbins)); Oa=Ha;
+Hva=Ha;
+
+myfl=['data_fig_3.db'];
+
+nr=numel(unique(who('-file',myfl)));
+L={};
+L.Fr=cell(1,-1+2*numel(accbins));
+L.BFr=cell(-1+2*numel(accbins),7);
+% L.Occ=zeros(1,21);
+% L.Fr=L.Occ; L.BFr=L.Occ;
+for i=[1 3:nr] %2 hippocampal drive not in hippocampus
+    rat=['rat' num2str(i)];
+    db_all.(dat)=load(myfl,rat,'-mat');
+    db_all.(dat)=db_all.(dat).(rat);
+
+    sel=true(size(db_all.(dat).accel));
+    if isempty(sel)
+        warning([num2str(i) 'empty']);
+        continue;
+    end
+    
+
+    sel=sel&db_all.(dat).t_dist>5;
+
+    sel1=conv(double(sel), ones(25,1)/25,'same');
+    sel=sel1>.99;
+    selx=abs(cos(db_all.(dat).anga-db_all.(dat).angv))>.9;
+    xxx=db_all.(dat).accel.*sign(cos(db_all.(dat).anga-db_all.(dat).angv));
+
+    frw=50*5;
+%     [Hs,Occs,Hv]=freq_hist(db_all.(dat).accel(sel),mod(db_all.(dat).anga(sel)-db_all.(dat).angv(sel)+pi,2*pi)-pi,db_all.(dat).freq(sel)-fr_baseline(sel),accbins,angbins);
+    [Hs,Occs,Hv]=freq_hist(db_all.(dat).accel(sel),mod(db_all.(dat).anga(sel)-db_all.(dat).angv(sel)+pi,2*pi)-pi,db_all.(dat).freq(sel),accbins,angbins);
+
+    % Linear results
+    
+    rxxx=round(xxx/dacc);
+%     L.Occ=arrayfun(@(x) sum(rxxx(sel & selx)==x),-10:10);
+    ws=50*[1 2 5 10 20 50 200];
+    aend=accbins(end)/dacc;
+    for w=1:numel(ws)
+        fr_baseline=nanconv(db_all.(dat).freq,ones(ws(w),1)/ws(w)); %10 s window
+        
+        for x=-aend:aend
+            xj=aend+1+x;
+            if w==1
+                L.Fr{xj}=[L.Fr{xj}; db_all.(dat).freq(rxxx==x & sel & selx)];
+            end
+            L.BFr{xj,w}=[L.BFr{xj,w}; fr_baseline(rxxx==x & sel & selx)];        
+        end    
+    end
+    
+    Ha=Ha+Hs.*Occs; Oa=Oa+Occs; Hva=Hva+Hv.*Occs;
+    Haccum{d}=Ha;
+    Oaccum{d}=Oa;
+    Laccum{d}=L;
+
+end
+
+end
+%%
+close all
+for d=1:2
+angbins(101)=angbins(1)+2*pi;
+
+f=figure;
+hold off;
+H=Haccum{d}; O=Oaccum{d};
+H(O>0)=H(O>0)./O(O>0);
+histlim=max(O(:))/10000;
+
+H(O<histlim)=nan;
+Hs=gauss_smoothing_2D(repmat(H,3,1),[1.5 3]);
+h1=size(H,1);
+Hs=Hs(h1+(1:h1),:);
+
+polar3d(flipud(Hs'),angbins(1),angbins(end),accbins(1),accbins(size(Hs,2)),1,'surf'); shading flat;view(2); 
+axis equal; view([-90,90]); axis tight; 
+hold on;
+
+colormap(jet2);
+
+cc=colorbar;
+set(cc,'YTick',7.5:.5:10);
+name=['fig2a_' dat];
+plot3([0 100],200*[1 1],[15 15],'k')
+caxis([8.1 9.7])
+
+
+
+name=['colormap_' dats{d}];
+end
+%%
+f=figure;
+accbins2=[fliplr(-accbins(2:end)) accbins];
+for d=2
+    L=Laccum{d};
+    sel=cellfun(@numel,L.Fr);
+    sel=sel>max(sel)/10000;
+    mn=cellfun(@mean,L.Fr);
+    eom=cellfun(@std,L.Fr)./sqrt(cellfun(@numel,L.Fr));
+    errorbar(accbins2(sel),mn(sel),eom(sel),'Color',cols(d,:));
+    hold on;
+    plot(accbins2(sel),mn(sel),'Color',cols(d,:),'LineWidth',3);
+    dat_acc=arrayfun(@(x) accbins2(x)*ones(size(L.Fr{x})),1:numel(L.Fr),'UniformOutput',0);
+ 
+end
+axis([-220 240 7.95 10]);
+set(gca,'YTick',6:.5:12)
+

+ 180 - 0
code/Fig_3/Fig_3.m~

@@ -0,0 +1,180 @@
+close all;
+% load('N:\kropff\analyisis\figs\fig2a\all open data_q95.db','-mat');
+% load('N:\kropff\analyisis\figs\fig2a\all car data_q95.db','-mat');
+% % % load('all open data.db','-mat');
+% % % load('all car data.db','-mat');
+% db_all.car=db_car;
+% db_all.open=db_open;
+% clear db_car; clear db_open;
+%     addpath('/gpfs/work/kropff/common_functions/');
+
+dats={'ec', 'hc'};
+% Haccum={};
+w1=0; w2=3;
+jet2=interp1(1:64,jet,(1+w1:(64-w1-w2-1)/(64-1):64-w2));
+
+% load(['all ' dat ' data.db'],'-mat')
+dang=pi/50;
+dacc=20;%15;
+accbins=0:dacc:200; %350
+angbins=-pi:dang:pi; angbins(end)=[]; angbins=angbins+dang/2;  
+cols=[ [1 0 0]; [255 175 3]/255];
+
+
+for d=1:2%1:2
+% dat='open';
+% dat='car';
+dat=dats{d};
+
+% close all;
+
+
+
+ 
+% close all;
+histlim=5*dacc;
+
+
+
+angbins=-pi:dang:pi; angbins(end)=[]; angbins=angbins+dang/2;  
+Ha=zeros(numel(angbins),numel(accbins)); Oa=Ha;
+Hva=Ha;
+
+myfl=['data_fig_3.db'];
+
+nr=numel(unique(who('-file',myfl)));
+L={};
+L.Fr=cell(1,-1+2*numel(accbins));
+L.BFr=cell(-1+2*numel(accbins),7);
+% L.Occ=zeros(1,21);
+% L.Fr=L.Occ; L.BFr=L.Occ;
+for i=[1 3:nr] %2 hippocampal drive not in hippocampus
+    rat=['rat' num2str(i)];
+    db_all.(dat)=load(myfl,rat,'-mat');
+    db_all.(dat)=db_all.(dat).(rat);
+
+    sel=true(size(db_all.(dat).accel));
+    if isempty(sel)
+        warning([num2str(i) 'empty']);
+        continue;
+    end
+    
+
+    sel=sel&db_all.(dat).t_dist>5;
+
+    sel1=conv(double(sel), ones(25,1)/25,'same');
+    sel=sel1>.99;
+    selx=abs(cos(db_all.(dat).anga-db_all.(dat).angv))>.9;
+    xxx=db_all.(dat).accel.*sign(cos(db_all.(dat).anga-db_all.(dat).angv));
+
+    frw=50*5;
+%     [Hs,Occs,Hv]=freq_hist(db_all.(dat).accel(sel),mod(db_all.(dat).anga(sel)-db_all.(dat).angv(sel)+pi,2*pi)-pi,db_all.(dat).freq(sel)-fr_baseline(sel),accbins,angbins);
+    [Hs,Occs,Hv]=freq_hist(db_all.(dat).accel(sel),mod(db_all.(dat).anga(sel)-db_all.(dat).angv(sel)+pi,2*pi)-pi,db_all.(dat).freq(sel),accbins,angbins);
+
+    % Linear results
+    
+    rxxx=round(xxx/dacc);
+%     L.Occ=arrayfun(@(x) sum(rxxx(sel & selx)==x),-10:10);
+    ws=50*[1 2 5 10 20 50 200];
+    aend=accbins(end)/dacc;
+    for w=1:numel(ws)
+        fr_baseline=nanconv(db_all.(dat).freq,ones(ws(w),1)/ws(w)); %10 s window
+        
+        for x=-aend:aend
+            xj=aend+1+x;
+            if w==1
+                L.Fr{xj}=[L.Fr{xj}; db_all.(dat).freq(rxxx==x & sel & selx)];
+            end
+            L.BFr{xj,w}=[L.BFr{xj,w}; fr_baseline(rxxx==x & sel & selx)];        
+        end    
+    end
+    
+    Ha=Ha+Hs.*Occs; Oa=Oa+Occs; Hva=Hva+Hv.*Occs;
+    Haccum{d}=Ha;
+    Oaccum{d}=Oa;
+    Laccum{d}=L;
+
+end
+
+end
+%%
+close all
+for d=1:2
+angbins(101)=angbins(1)+2*pi;
+
+f=figure;
+hold off;
+H=Haccum{d}; O=Oaccum{d};
+H(O>0)=H(O>0)./O(O>0);
+histlim=max(O(:))/10000;
+
+H(O<histlim)=nan;
+Hs=gauss_smoothing_2D(repmat(H,3,1),[1.5 3]);
+h1=size(H,1);
+Hs=Hs(h1+(1:h1),:);
+
+polar3d(flipud(Hs'),angbins(1),angbins(end),accbins(1),accbins(size(Hs,2)),1,'surf'); shading flat;view(2); 
+axis equal; view([-90,90]); axis tight; 
+hold on;
+
+colormap(jet2);
+
+cc=colorbar;
+set(cc,'YTick',7.5:.5:10);
+name=['fig2a_' dat];
+plot3([0 100],200*[1 1],[15 15],'k')
+caxis([8.1 9.7])
+
+
+
+name=['colormap_' dats{d}];
+end
+%%
+f=figure;
+accbins2=[fliplr(-accbins(2:end)) accbins];
+for d=2
+    L=Laccum{d};
+    sel=cellfun(@numel,L.Fr);
+    sel=sel>max(sel)/10000;
+    mn=cellfun(@mean,L.Fr);
+    eom=cellfun(@std,L.Fr)./sqrt(cellfun(@numel,L.Fr));
+    errorbar(accbins2(sel),mn(sel),eom(sel),'Color',cols(d,:));
+    hold on;
+    plot(accbins2(sel),mn(sel),'Color',cols(d,:),'LineWidth',3);
+    dat_acc=arrayfun(@(x) accbins2(x)*ones(size(L.Fr{x})),1:numel(L.Fr),'UniformOutput',0);
+ 
+end
+axis([-220 240 7.95 10]);
+set(gca,'YTick',6:.5:12)
+
+%%
+f=figure;
+accbins2=[fliplr(-accbins(2:end)) accbins];
+for d=2
+    subplot(1,2,d)
+    for j=[3 ]
+        
+    L=Laccum{d};
+    L.Fr2=arrayfun(@(x) L.Fr{x}-L.BFr{x,j},1:numel(L.Fr),'UniformOutput',0);
+    sel=cellfun(@numel,L.Fr2);
+    sel=sel>max(sel)/10000 & abs(accbins2)<210;
+    mn=cellfun(@mean,L.Fr2);
+    eom=cellfun(@std,L.Fr2)./sqrt(cellfun(@numel,L.Fr2));
+    errorbar(accbins2(sel),mn(sel),eom(sel),'Color',cols(d,:)*(j-1)/6);
+    hold on;
+    plot(accbins2(sel),mn(sel),'Color',cols(d,:)*(j-1)/6,'LineWidth',3);
+    end
+
+    
+    axis([-220 240 -.25 2]);
+    golden(2.5)
+set(gca,'YTick',-2:.5:12)
+
+    
+    dat_acc=arrayfun(@(x) accbins2(x)*ones(size(L.Fr2{x})),1:numel(L.Fr2),'UniformOutput',0);    
+%     [cr_neg,p_neg]=corr(cell2mat(dat_acc(sel & accbins2<0)'),cell2mat(L.Fr2(sel & accbins2<0)'))
+%     [cr_neg,p_neg]=corr(accbins2(sel & accbins2<0)',mn(sel & accbins2<0)');
+    lneg_bas = fitlm(accbins2(sel & accbins2<0)',mn(sel & accbins2<0)','linear')
+    lpos_bas = fitlm(accbins2(sel & accbins2>0)',mn(sel & accbins2>0)','linear')
+    
+end

+ 1 - 0
code/Fig_3/data_fig_3.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s1831968181--c6324a1e14a92575b78e9b2d687066c3

+ 12 - 0
code/Fig_3/gauss_smoothing_2D.m

@@ -0,0 +1,12 @@
+function map=gauss_smoothing_2D(map, sigma)
+% filt=fspecial('gaussian',[ceil(3*sigma(1)) ceil(3*sigma(2))]);%,sigma(1));
+l1=ceil(3*sigma(1));
+l2=ceil(3*sigma(2));
+[X,Y]=meshgrid(-l1:l1,-l2:l2);
+filt=exp(-.5*((X/sigma(1)).^2+(Y/sigma(2)).^2));
+filt=filt/sum(filt(:));
+[m1,m2]=size(map);
+
+% map=repmat(map,3,3); % angular data can be tricky
+map=nanconv(map,filt,'same','edge','2d' );
+% map=map(m1+(1:m1),m2+(1:m2));

+ 116 - 0
code/Fig_3d/Fig_3d.m

@@ -0,0 +1,116 @@
+close all;
+res3={};
+fcol=figure;
+    acclim=50; 
+    savename=['intrinsic_results_ns_res' num2str(acclim) '.mat'];
+    
+    
+
+    load(savename,'-mat');
+    types=fields(res2);
+    for ty=1:numel(types)
+    typ=types{ty};
+
+ f1=figure
+
+    gs=1;
+    res=res2;
+
+
+        
+    autoc_step=.002;
+    autoc_bins=1:300; 
+    bins=(autoc_bins)*autoc_step;
+    phbins_norm=(pi/60:pi/60:5*pi)/2/pi;
+
+%%
+
+    hold on;
+    aux=nanmean(res.(typ).right);
+    aux=aux/max(aux);
+    fm=do_plot(bins,aux,[0 0 0],.5*[1 1 1]);    
+
+   
+    aux=nanmean(res.(typ).left);
+    aux=aux/max(aux);
+    fc=do_plot(bins,aux,[1 0 0],[1 .5 .5]);    
+    
+    aux=res.(typ).control2(1,:);
+    aux=aux/max(aux);
+    fneut=do_plot(bins,aux,[0 122 255]/255,[51 226 217]/255);     
+
+    subplot(2,2,1)
+    set(gca,'XTick',0:.1:.6);
+    axis([0 .3 0 1]);
+    set(gca,'YTick',0:.5:2,'FontName','Arial');
+    ss=subplot(2,2,2)
+    set(gca,'XTick',0:.1:.6);
+    axis([0.0 .2 0.25*[-1 1] ]);
+    set(gca,'YTick',-.6:.2:.6,'FontName','Arial');
+    title(typ);
+
+    %%
+        fsh=res.(typ).fcontrol2(:);
+    
+    %%
+        subplot(2,2,4)
+    fbins=6:.02:9;
+        h=hist(fsh,fbins);
+
+        h=h/sum(h);
+        bar(fbins,h,'EdgeColor','none','FaceColor',[51 226 217]/255,'BarWidth',.8);
+
+        gg=fit(fbins',h(:),'gauss1');
+        hold on;
+        p1=plot(gg);
+        set(p1,'Color',[0 122 255]/255);
+        legend off;
+        mx=ceil(1.1*max(max(h),gg.a1));
+        line(fm*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*0);
+        line(fc*[1 1],[0 mx],'LineWidth',2,'Color',[1 0 0]);
+        axis([7.3 9 0 0.3]);
+        set(gca,'XTick',7:.5:10,'YTick',0:0.1:1);
+
+
+%%
+if ty<numel(types)
+figure(fcol)
+ subplot(2,3,ty)
+        h=hist(fsh,fbins);
+ 
+
+        h=h/sum(h);
+        bar(fbins,h,'EdgeColor','none','FaceColor',[51 226 217]/255,'BarWidth',1.0);
+
+        gg=fit(fbins',h(:),'gauss1');
+        hold on;
+        p1=plot(gg);
+        set(p1,'Color',[0 122 255]/255);
+        legend off;
+        mx=ceil(1.1*max(max(h),gg.a1));
+        line(fm*[1 1],[0 mx],'LineWidth',1,'Color',[1 1 1]*0);
+        line(fc*[1 1],[0 mx],'LineWidth',1,'Color',[1 0 0]);
+        axis([7.3 9 0 0.3]);
+
+        set(gca,'XTick',7:.5:9,'XTickLabel',{7,'',8,'',9});
+else
+
+    ylim([0 .5]);
+    xlim([7.9 9])
+        subplot(2,2,3)
+
+
+                
+                subplot(2,2,2)
+                axis([.09 .15 -.05 .08])
+             
+                
+
+end
+  end
+ 
+  
+    
+
+
+%%

+ 120 - 0
code/Fig_3d/Fig_3d.m~

@@ -0,0 +1,120 @@
+close all;
+res3={};
+fcol=figure;
+    acclim=50; 
+    savename=['intrinsic_results_ns_res' num2str(acclim) '.mat'];
+    
+    
+
+    load(savename,'-mat');
+    types=fields(res2);
+    for ty=1:numel(types)
+    typ=types{ty};
+%         vs={'pn','pm','cfm','cfc','cshm','cshst','cshp99','cshp95','cshp5','cshp1'};
+%         for j=1:numel(vs)
+%             eval([vs{j} '=nan*acclist;']);
+%         end
+ f1=figure
+
+    gs=1;
+    res=res2;
+
+
+        
+    autoc_step=.002;
+    autoc_bins=1:300; 
+    bins=(autoc_bins)*autoc_step;
+    phbins_norm=(pi/60:pi/60:5*pi)/2/pi;
+
+%%
+
+    hold on;
+    aux=nanmean(res.(typ).right);
+    aux=aux/max(aux);
+    fm=do_plot(bins,aux,[0 0 0],.5*[1 1 1]);    
+
+   
+    aux=nanmean(res.(typ).left);
+    aux=aux/max(aux);
+    fc=do_plot(bins,aux,[1 0 0],[1 .5 .5]);    
+    
+    aux=res.(typ).control2(1,:);
+    aux=aux/max(aux);
+    fneut=do_plot(bins,aux,[0 122 255]/255,[51 226 217]/255);     
+
+    subplot(2,2,1)
+    set(gca,'XTick',0:.1:.6);
+    axis([0 .3 0 1]);
+    set(gca,'YTick',0:.5:2,'FontName','Arial');
+    ss=subplot(2,2,2)
+    set(gca,'XTick',0:.1:.6);
+    axis([0.0 .2 0.25*[-1 1] ]);
+    set(gca,'YTick',-.6:.2:.6,'FontName','Arial');
+    title(typ);
+
+    %%
+        fsh=res.(typ).fcontrol2(:);
+    
+    %%
+        subplot(2,2,4)
+    fbins=6:.02:9;
+        h=hist(fsh,fbins);
+
+        h=h/sum(h);
+        bar(fbins,h,'EdgeColor','none','FaceColor',[51 226 217]/255,'BarWidth',.8);
+
+        gg=fit(fbins',h(:),'gauss1');
+        hold on;
+        p1=plot(gg);
+        set(p1,'Color',[0 122 255]/255);%[.5 1 .5]-.5);
+        legend off;
+        mx=ceil(1.1*max(max(h),gg.a1));
+        line(fm*[1 1],[0 mx],'LineWidth',2,'Color',[1 1 1]*0);
+        line(fc*[1 1],[0 mx],'LineWidth',2,'Color',[1 0 0]);
+        axis([7.3 9 0 0.3]);
+        set(gca,'XTick',7:.5:10,'YTick',0:0.1:1);
+
+
+%%
+if ty<numel(types)
+figure(fcol)
+ subplot(2,3,ty)
+        h=hist(fsh,fbins);
+ 
+
+        h=h/sum(h);
+        bar(fbins,h,'EdgeColor','none','FaceColor',[51 226 217]/255,'BarWidth',1.0);
+
+        gg=fit(fbins',h(:),'gauss1');
+        hold on;
+        p1=plot(gg);
+        set(p1,'Color',[0 122 255]/255);
+        legend off;
+        mx=ceil(1.1*max(max(h),gg.a1));
+        line(fm*[1 1],[0 mx],'LineWidth',1,'Color',[1 1 1]*0);
+        line(fc*[1 1],[0 mx],'LineWidth',1,'Color',[1 0 0]);
+        axis([7.3 9 0 0.3]);
+
+        set(gca,'XTick',7:.5:9,'XTickLabel',{7,'',8,'',9});%,'YTick',0:0.5:1);
+
+else
+
+    ylim([0 .5]);
+    xlim([7.9 9])
+        subplot(2,2,3)
+
+
+                
+                subplot(2,2,2)
+                axis([.09 .15 -.05 .08])
+             
+                
+
+end
+  end
+ 
+  
+    
+
+
+%%

+ 18 - 0
code/Fig_3d/do_fit.m

@@ -0,0 +1,18 @@
+function [c,g]=do_fit(bins,aux)
+c={};
+c.f=nan;
+g=nan;
+
+if ~any(isnan(aux))
+sel=bins>0.015 & bins<0.3;
+
+
+fo = fitoptions('Method','NonlinearLeastSquares',...
+               'Lower',[0.2,0,0,0,6,-1,-1],...
+               'Upper',[2,20,1,Inf,12,1,1],...
+               'StartPoint',[1,3,.2,1,8,0,0]);
+ft = fittype('a*exp(-b*x)+c*cos(2*pi*f*x)*exp(-d*x)+g+h*x','options',fo);
+
+
+[c, g] = fit(bins(sel)',aux(sel)',ft);
+end

+ 29 - 0
code/Fig_3d/do_plot.m

@@ -0,0 +1,29 @@
+function ff=do_plot(bins,aux,col,col2)    
+
+[curve2, ~] = do_fit(bins,aux);
+
+aux=aux/feval(curve2,0);
+[curve2, gof2] = do_fit(bins,aux);
+
+
+subplot(2,2,1)
+p1=plot(curve2);
+set(p1,'Color',col2,'LineWidth',2);
+hold on;
+plot(bins,aux,'Color',col);
+
+legend off;
+axis([0 .3 0 1.2])
+
+subplot(2,2,2)
+
+plot(bins,curve2.c.*cos(2*pi*curve2.f.*bins).*exp(-curve2.d.*bins),'Color',col2,'LineWidth',2);
+hold on;
+plot(bins,aux-feval(curve2,bins)'+curve2.c.*cos(2*pi*curve2.f.*bins).*exp(-curve2.d.*bins),'Color',col);
+
+
+disp(['freq: ' trunc(curve2.f,3) '  R^{2}: ' trunc(gof2.rsquare,3)]);
+ff=curve2.f;
+axis([0 .3 -.2 .2])
+
+

BIN
code/Fig_3d/intrinsic_results_ns_res50.mat


+ 44 - 0
code/Fig_5/Fig_5.m

@@ -0,0 +1,44 @@
+function Fig_5()
+x=-50:1:50; % 50 samples per second
+close all;
+f2=figure;
+speed=.92*exp(-(x/15).^2);
+acc=get_acceleration(x,0,speed)/5;
+acc0=get_acceleration0(x,0,acc);
+th=smooth_theta2(acc,1-exp(-.1));
+ff=90; fg=.8;
+
+subplot(2,3,1)
+plot(x,[speed*fg; acc*ff*fg*.8; acc*ff]');
+
+set(gca,'YTick',-1:1,'XTick',-100:50:100);
+axis([-50 50 -1 1])
+axis square
+% hold on;
+
+subplot(2,3,2)
+plot(x,[speed*fg; acc*ff*fg*.8; acc0*ff]');
+set(gca,'YTick',-1:1,'XTick',-100:50:100);
+axis([-50 50 -1 1])
+axis square
+
+subplot(2,3,3)
+plot(x,[speed*fg; acc*ff*fg*.8; th*ff]');
+
+set(gca,'YTick',-1:1,'XTick',-100:50:100);
+axis([-50 50 -1 1])
+axis square
+[corr(speed',acc') corr(acc',acc');
+corr(speed',acc0') corr(acc',acc0');
+corr(speed',th') corr(acc',th')]
+
+
+
+
+function acc=get_acceleration(x,x0,speed)
+x=x-x0;
+acc=[0 speed(3:end)-speed(1:end-2) 0]/2;
+
+
+function acc=get_acceleration0(x,x0,acc)
+acc(acc<0)=0;

+ 44 - 0
code/Fig_5/Fig_5.m~

@@ -0,0 +1,44 @@
+function Fig_5()
+x=-50:1:50;
+close all;
+f2=figure;
+speed=.92*exp(-(x/15).^2);
+acc=get_acceleration(x,0,speed)/5;
+acc0=get_acceleration0(x,0,acc);
+th=smooth_theta2(acc,1-exp(-.1));%r(i)*(1+decay)>th(i-1)
+ff=90; fg=.8;
+
+subplot(2,3,1)
+plot(x,[speed*fg; acc*ff*fg*.8; acc*ff]');
+
+set(gca,'YTick',-1:1,'XTick',-100:50:100);
+axis([-50 50 -1 1])
+axis square
+% hold on;
+
+subplot(2,3,2)
+plot(x,[speed*fg; acc*ff*fg*.8; acc0*ff]');
+set(gca,'YTick',-1:1,'XTick',-100:50:100);
+axis([-50 50 -1 1])
+axis square
+
+subplot(2,3,3)
+plot(x,[speed*fg; acc*ff*fg*.8; th*ff]');
+
+set(gca,'YTick',-1:1,'XTick',-100:50:100);
+axis([-50 50 -1 1])
+axis square
+[corr(speed',acc') corr(acc',acc');
+corr(speed',acc0') corr(acc',acc0');
+corr(speed',th') corr(acc',th')]
+
+
+
+
+function acc=get_acceleration(x,x0,speed)
+x=x-x0;
+acc=[0 speed(3:end)-speed(1:end-2) 0]/2;
+
+
+function acc=get_acceleration0(x,x0,acc)
+acc(acc<0)=0;

+ 12 - 0
code/Fig_5/smooth_theta2.m

@@ -0,0 +1,12 @@
+function th=smooth_theta2(acc0,decay)
+
+racc=acc0;
+racc(acc0<0)=0;
+th=racc(1)*ones(size(racc));
+for i=2:numel(racc)
+    if racc(i)*(1+decay)>th(i-1) 
+        th(i)=racc(i); 
+    else        
+        th(i)=th(i-1)*(1-decay);    
+    end
+end

+ 67 - 0
code/Fig_6/Fig_6.m

@@ -0,0 +1,67 @@
+load('data_fig_6.db','-mat');
+close all;
+
+
+%%
+f=figure;
+subplot(2,1,1)
+sel=1:numel(data.v);
+speeds=data.v(sel)';
+accs=[0 speeds(3:end)-speeds(1:end-2) 0]/.04;
+ths=smooth_theta2(accs,1-exp(-.1)); 
+
+raccs=accs;
+raccs(raccs<0)=0;
+
+plot(sel/50,(speeds)/std(speeds),'r');
+hold on;
+
+
+plot(sel/50,accs/std(accs),'b');
+plot(sel/50,ths/std(accs),'g');
+xlim([0 10])
+
+
+ths=8+ths/100;
+da=20; abins=-5:5;
+dv=5; vbins=0:12;
+rv=round(speeds/dv);
+ra=round(accs/da);
+vfr=arrayfun(@(x) mean(ths(rv==x)),vbins);
+afr=arrayfun(@(x) mean(ths(ra==x)),abins);
+m8=vfr(1);
+[th_f5,th_s5]=mybp(ths-m8,0.5);
+[th_f1,th_s1]=mybp(ths-m8,0.1);
+[th_f3,th_s3]=mybp(ths-m8,0.3);
+
+vfr_f=arrayfun(@(x) mean(th_f5(rv==x))+m8,vbins);
+vfr_s=arrayfun(@(x) mean(th_s5(rv==x))+m8,vbins);
+
+afr_f=arrayfun(@(x) mean(th_f1(ra==x))+m8,abins);
+afr_s=arrayfun(@(x) mean(th_s1(ra==x))+m8,abins);
+
+
+subplot(2,2,3)
+plot(vbins*dv,[vfr; vfr_s; vfr_f]');
+axis([0 50 7.8 9.1])
+golden(2.5)
+
+subplot(2,2,4)
+plot(abins*da,[afr; afr_s; afr_f]');
+axis([-120 140 7.8 9.1])
+set(gca,'YTick',6:.5:12);
+
+
+
+[corr(speeds',ths') corr(accs',ths');
+corr(speeds',th_f5') corr(accs',th_f1');
+corr(speeds',th_s5') corr(accs',th_s1')]
+drawnow;
+
+
+
+
+function [th_f,th_s]=mybp(ths,f1)
+    th_f=real(bandpass_and_hilbert(ths',f1,100,50)');
+    th_s=real(bandpass_and_hilbert(ths',0,f1,50)');
+end

+ 79 - 0
code/Fig_6/Fig_6.m~

@@ -0,0 +1,79 @@
+% f1=figure;
+mypath='/mnt/Vol2/kropff/analyisis/figs/theta_new/fig2abc-openfield theta/clean_test/';
+files=dir([mypath 'peak_matr_final_f2_*.db']);
+
+close all;
+for ifile=14%1:numel(files) % 14 10
+p=load([mypath files(ifile).name],'-mat');%3 6 8
+data=p.out.data{1};
+
+%%
+% close all;
+f=figure;
+subplot(2,1,1)
+sel=1:numel(data.v);
+speeds=data.v(sel)';
+accs=[0 speeds(3:end)-speeds(1:end-2) 0]/.04;
+% ths=smooth_theta(accs,0.1); %0.06
+ths=smooth_theta2(accs,1-exp(-.1)); %0.06
+
+raccs=accs;
+raccs(raccs<0)=0;
+
+plot(sel/50,(speeds)/std(speeds),'r');
+hold on;
+
+
+plot(sel/50,accs/std(accs),'b');
+plot(sel/50,ths/std(accs),'g');
+xlim([0 10])
+
+
+%
+% sel2=true(size(speeds));
+ths=8+ths/100;
+da=20; abins=-5:5;
+dv=5; vbins=0:12;
+rv=round(speeds/dv);
+ra=round(accs/da);
+vfr=arrayfun(@(x) mean(ths(rv==x)),vbins);
+afr=arrayfun(@(x) mean(ths(ra==x)),abins);
+m8=vfr(1);%mean(ths);
+[th_f5,th_s5]=mybp(ths-m8,0.5);
+[th_f1,th_s1]=mybp(ths-m8,0.1);
+[th_f3,th_s3]=mybp(ths-m8,0.3);
+
+vfr_f=arrayfun(@(x) mean(th_f5(rv==x))+m8,vbins);
+vfr_s=arrayfun(@(x) mean(th_s5(rv==x))+m8,vbins);
+
+afr_f=arrayfun(@(x) mean(th_f1(ra==x))+m8,abins);
+afr_s=arrayfun(@(x) mean(th_s1(ra==x))+m8,abins);
+
+
+subplot(2,2,3)
+plot(vbins*dv,[vfr; vfr_s; vfr_f]');
+axis([0 50 7.8 9.1])
+golden(2.5)
+
+subplot(2,2,4)
+plot(abins*da,[afr; afr_s; afr_f]');
+axis([-120 140 7.8 9.1])
+set(gca,'YTick',6:.5:12);
+
+
+
+[corr(speeds',ths') corr(accs',ths');
+corr(speeds',th_f5') corr(accs',th_f1');
+corr(speeds',th_s5') corr(accs',th_s1')]
+drawnow;
+end
+
+
+
+
+function [th_f,th_s]=mybp(ths,f1)
+    th_f=real(bandpass_and_hilbert(ths',f1,100,50)');
+    th_f=abs(th_f).*cos(angle(th_f));
+    th_s=bandpass_and_hilbert(ths',0,f1,50)';
+    th_s=abs(th_s).*cos(angle(th_s));
+end

+ 65 - 0
code/Fig_6/bandpass_and_hilbert.m

@@ -0,0 +1,65 @@
+%%% copyright 2012, Emilio Kropff
+%%% output:  first dim = number of frequencies
+%%%         second dim = number of trials
+%%%          third dim = number of timestamps
+
+
+
+function h=bandpass_and_hilbert(x,flow,fhigh,sampling)
+    l=size(x,1); 
+
+    NFFT= 2^nextpow2(l); % power of 2 is a faster fft 
+
+    x_fft=fft(x,NFFT);
+
+    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+    % Hilbert Transform, taken from the MATLAB function hilbert(). h is
+    % the 'filter' applied on the fft of the signal. The filter
+    % consists in multiplying the fft by i*sign(freq). But the output
+    % is hilbert(x)=x-i*transform(x), which results in a total filter that multyplies
+    % by 2 positive frequencies and by 0 negative frequencies (and by 1 the
+    % two central frequencies).
+    % http://en.wikipedia.org/wiki/Hilbert_transform#Relationship_with_
+    % the_Fourier_transform
+    hilbert_filter  = zeros(NFFT,1); 
+    % NFFT is even (it is a power of 2) so there are two central frequencies
+    hilbert_filter([1 NFFT/2+1]) = 1; 
+    hilbert_filter(2:NFFT/2) = 2;   %positive freqs (upper part of the circle)        
+
+    
+    fft_freqs=sampling/2*(linspace(0,1,NFFT/2+1))'; %This includes only the upper part of the circle
+    
+    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+    % Bandpass Filter
+    bandpass_filter=bsxfun(@gt,fft_freqs,flow) & bsxfun(@lt,fft_freqs,fhigh);
+    bandpass_filter=[bandpass_filter; bandpass_filter(end-1:-1:2,:)]; 
+
+    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+    % Finally, perform the bandpass and hilbert transform in one step
+    % (blocked)
+    
+%     nfreqmax=floor(.5*10^8/numel(x_fft));
+    nfreqmax=floor(.1*10^8/numel(x_fft));
+    fstart=1; fend=min(numel(flow),fstart-1+nfreqmax);
+    h=NaN(l,numel(flow));
+    while fstart<=fend
+        haux=ifft(bsxfun(@times,x_fft,bsxfun(@times,bandpass_filter(:,fstart:fend),hilbert_filter)));%combined_filter(:,ones(1,car.nlaps)));
+        h(:,fstart:fend)=haux(1:l,:);
+        fstart=fend+1;
+        fend=min(numel(flow),fstart-1+nfreqmax);
+    end
+
+%     h=squeeze(h);
+%     if nargout>1
+%         bpx=zeros(nf,nx,l);
+%         for f=1:nf
+%             bandpass_filter=(fft_freqs>flow).*(fft_freqs<fhigh);
+%             bandpass_filter=[bandpass_filter; bandpass_filter(end-1:-1:2)];             
+%             hilbert_transf=ifft(bsxfun(@times,x_fft,bandpass_filter));
+%             bpx(f,:,:)=hilbert_transf(1:l,:);
+%         end
+%         bpx=squeeze(bpx);
+%     end    
+
+
+ 

+ 1 - 0
code/Fig_6/data_fig_6.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s12799163--20e6d1d287bbcaba6b3df7730dec5ee5

+ 12 - 0
code/Fig_6/smooth_theta2.m

@@ -0,0 +1,12 @@
+function th=smooth_theta2(acc0,decay)
+
+racc=acc0;
+racc(acc0<0)=0;
+th=racc(1)*ones(size(racc));
+for i=2:numel(racc)
+    if racc(i)*(1+decay)>th(i-1) 
+        th(i)=racc(i); 
+    else        
+        th(i)=th(i-1)*(1-decay);    
+    end
+end

+ 84 - 0
datacite.yml

@@ -0,0 +1,84 @@
+# Metadata for DOI registration according to DataCite Metadata Schema 4.1.
+# For detailed schema description see https://doi.org/10.5438/0014
+
+## Required fields
+
+# The main researchers involved. Include digital identifier (e.g., ORCID)
+# if possible, including the prefix to indicate its type.
+authors:
+  -
+    firstname: "Emilio"
+    lastname: "Kropff"
+    
+  -
+    firstname: "James E."
+    lastname: "Carmichael"
+
+  -
+    firstname: "Edvard I."
+    lastname: "Moser"
+
+  -
+    firstname: "May-Britt"
+    lastname: "Moser"
+
+# A title to describe the published resource.
+title: "Dataset - Frequency of theta rhythm is controlled by acceleration but not speed in running rats"
+
+# Additional information about the resource, e.g., a brief abstract.
+description: |
+  Dataset corresponding to the paper
+  Frequency of theta rhythm is controlled by acceleration but not speed in running rats
+
+# Lit of keywords the resource should be associated with.
+# Give as many keywords as possible, to make the resource findable.
+keywords:
+  - Speed
+  - Acceleration
+  - Theta rhythm
+  - Entorhinal cortex
+  - Hippocampus
+  - Space
+  - Grid cells
+  - Head direction cells
+  - Border cells
+  - Speed cells
+
+# License information for this resource. Please provide the license name and/or a link to the license.
+# Please add also a corresponding LICENSE file to the repository.
+license:
+  name: "Creative Commons CC BY-NC-ND Attribution-NonCommercial-NoDerivatives 4.0 International"
+  url: "https://creativecommons.org/licenses/by-nc-nd/4.0/"
+
+
+
+## Optional Fields
+
+# Funding information for this resource.
+# Separate funder name and grant number by comma.
+funding:
+  - "EU, Advanced Investigator Grants from the European Research Council (‘CIRCUIT’, Grant Agreement N°232608; ‘GRIDCODE’, Grant Agreement N°338865)"
+  - "EU, FP7 FET Proactive Programme on Neuro-Bio-Inspired Systems (Grant Agreement 600725)"
+  - "EU, FP7 collaborative project (‘SPACEBRAIN’, Grant Agreement N°200873)"
+  - "Norway, Centre of Excellence scheme and the National Infrastructure Scheme of the Research Council of Norway RCN (Centre for Neural Computation, grant number 223262; NORBRAIN, grant number 197467 and 295721)"
+  - "Norway, RCN FRIPRO grants (grant numbers 286225 and 300394)"
+  - "Argentina, PICT 2015-1273"
+  - "Kavli Foundation"
+
+# Related publications. reftype might be: IsSupplementTo, IsDescribedBy, IsReferencedBy.
+# Please provide digital identifier (e.g., DOI) if possible.
+# Add a prefix to the ID, separated by a colon, to indicate the source.
+# Supported sources are: DOI, arXiv, PMID
+# In the citation field, please provide the full reference, including title, authors, journal etc.
+references:
+  -
+    id: "10.1016/j.neuron.2021.01.017"
+    reftype: "IsSupplementTo"
+    citation: "Kropff E., Carmichael J.E., Moser E.I. and Moser M-B., 2021, Frequency of theta rhythm is controlled by acceleration but not speed in running rats, Neuron"
+
+
+# Resource type. Default is Dataset, other possible values are Software, DataPaper, Image, Text.
+resourcetype: Dataset
+
+# Do not edit or remove the following line
+templateversion: 1.2

+ 1 - 0
open_field_data.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s120405814--c400e297decabbcf39135d5b2dc2da5a

+ 1 - 0
raw_data.7z.001

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--6a0e821e0c32ff5f20c0b08265f4b42a

+ 1 - 0
raw_data.7z.002

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--4857d33f11683a2eb729f5dfd19ef56f

+ 1 - 0
raw_data.7z.003

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--15c2d67f7125584f531b101f452205e3

+ 1 - 0
raw_data.7z.004

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--1532f2b8b2261c42e7b1bc8d4e2433da

+ 1 - 0
raw_data.7z.005

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--625077b47d2a12160ed272309ba5f739

+ 1 - 0
raw_data.7z.006

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--8b3de2d3104c9522eba929235ba688ef

+ 1 - 0
raw_data.7z.007

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--641103fddbbb827d48588959eacbde03

+ 1 - 0
raw_data.7z.008

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--4ab2c4b58279e6b085ac00fd014c7a7e

+ 1 - 0
raw_data.7z.009

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--efa7f31bd63d2f1ba10fe2f7cf2ada01

+ 1 - 0
raw_data.7z.010

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--8ef14fe53e7ad877cb0630624082cc81

+ 1 - 0
raw_data.7z.011

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--f075e598a981f779476d31202d3f8357

+ 1 - 0
raw_data.7z.012

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--276c6944b2c1401ecf595a94f29f55d3

+ 1 - 0
raw_data.7z.013

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--fbf516408185167505b09a44942e78ab

+ 1 - 0
raw_data.7z.014

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--588aebdc3a8d80695a3ad9d32cf3a113

+ 1 - 0
raw_data.7z.015

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--418f6f13a9644e7c1afb5355d7586017

+ 1 - 0
raw_data.7z.016

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--14ddffc6ad7b5ca69a219b199e41eed2

+ 1 - 0
raw_data.7z.017

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--5d4fd35652371a478d1cdb8014004572

+ 1 - 0
raw_data.7z.018

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--647d1c29e42f2b4226c7bbc6331cedfa

+ 1 - 0
raw_data.7z.019

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--a7c9ed93d56ce39ab84f8daffc46d1d5

+ 1 - 0
raw_data.7z.020

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--fff542bb325e5261ac4d21c2b845cd79

+ 1 - 0
raw_data.7z.021

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--dac7855bdc1583388bb471f94ee64c71

+ 1 - 0
raw_data.7z.022

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--58f001fa0af3ed16ecaa112027eb2a64

+ 1 - 0
raw_data.7z.023

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--3d4cd24d381738223fcba41735cfb313

+ 1 - 0
raw_data.7z.024

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--831cbe38ec3eb12d242a22e310477772

+ 1 - 0
raw_data.7z.025

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--7e966bd1cd23eedcd60643c5576ef557

+ 1 - 0
raw_data.7z.026

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--5501fd66ebb2c96971d5275e7c7da7c1

+ 1 - 0
raw_data.7z.027

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--82a86699c6a9459eb023179b0005960e

+ 1 - 0
raw_data.7z.028

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--b121b90a61f080e6576aba70144222e1

+ 1 - 0
raw_data.7z.029

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--582ee5a2c5f680159af21f56801de2b8

+ 1 - 0
raw_data.7z.030

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--93b8eb085a263d99e29fd7bd6e9f3e13

+ 1 - 0
raw_data.7z.032

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--1fd10069a5c76758b269f96ff42b2947

+ 1 - 0
raw_data.7z.033

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--345098e93f9dd37990a6ac8548faa419

+ 1 - 0
raw_data.7z.034

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--a0623caa85e75b712939ce0abc88f455

+ 1 - 0
raw_data.7z.035

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--4bde7716a18cbfbd7fe9f6df19d7946a

+ 1 - 0
raw_data.7z.036

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--0890ee340be30e8a7710684ce23016d0

+ 1 - 0
raw_data.7z.037

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--629f95ba89febc72097a17c9f0d64ab3

+ 1 - 0
raw_data.7z.038

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--27703a9febf66bb2379c42120a64c56b

+ 1 - 0
raw_data.7z.039

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--acca54ad048821ed8ccc77cef629c4bf

+ 1 - 0
raw_data.7z.040

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--2e64dfdb3a9cc5d36954b3c188f75d7e

+ 1 - 0
raw_data.7z.041

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--82f5dc3b14e0053b6559e5a352191e31

+ 1 - 0
raw_data.7z.042

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--172781af954d1683245d9cac0c1edcfd

+ 1 - 0
raw_data.7z.043

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--24acc67db9e1c171e6740b99209e1095

+ 1 - 0
raw_data.7z.044

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--f24566cf5676155e294561993122ef8f

+ 1 - 0
raw_data.7z.045

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--7bbe04cab907243a2c0fd42bb77bb746

+ 1 - 0
raw_data.7z.046

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--af1b4c48ea66e96cd1a57fa4e3b7c7b6

+ 1 - 0
raw_data.7z.047

@@ -0,0 +1 @@
+/annex/objects/MD5-s1118985262--0b74e9f5671f68932760ca9962b7554c

+ 1 - 0
raw_data2.7z.001

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--e4a58f05ac05c5a95ef10a9932342bef

+ 1 - 0
raw_data2.7z.002

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--eec7f2ed26ce25daacca06a7917f77d0

+ 1 - 0
raw_data2.7z.003

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--d02d4bb54321b67df7d78d6bc845f75f

+ 1 - 0
raw_data2.7z.004

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--15c703c925491654340ef6105e495108

+ 1 - 0
raw_data2.7z.005

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--07b08f0c16934d319f37bd25689196ad

+ 1 - 0
raw_data2.7z.006

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--abeab1c9d29ae7c614745719ef05e9c1

+ 1 - 0
raw_data2.7z.007

@@ -0,0 +1 @@
+/annex/objects/MD5-s1258291200--0daf9d4e3d1f4f7daa0a5313e99ec018

+ 1 - 0
raw_data2.7z.008

@@ -0,0 +1 @@
+/annex/objects/MD5-s724435045--95dd20e72c2bbe0c0a55d3dde2a68cdb

+ 1 - 0
spike_timestamp_data.db

@@ -0,0 +1 @@
+/annex/objects/MD5-s198732480--37eefa85a5801a64c1cd7a40c12475f3