This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
analysis:nsb2017:week1 [2018/06/30 14:47] mvdm [Configuring MATLAB to use the code from GitHub] |
analysis:nsb2017:week1 [2018/09/25 13:48] mvdm |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
- | === Module 1: Setting up === | + | ==== Module 1: Setting up ==== |
Goals: | Goals: | ||
Line 22: | Line 22: | ||
=== Installing MATLAB === | === Installing MATLAB === | ||
- | At MBL, MATLAB should already be installed on lab computers. Verify it starts correctly; you should see its main window open up, including a panel called "Command Window" greeting you with a prompt (''>>''). | + | At MBL, MATLAB should already be installed on lab computers. Verify it starts correctly; you should see its main window open up, including a panel called "Command Window" greeting you with a prompt (''>>''). At Dartmouth, follow [[https://tech.dartmouth.edu/itc/services-support/help-yourself/knowledge-base/matlab|these instructions]] to install MATLAB. Release 2018a seems to work. |
=== Setting up GitHub === | === Setting up GitHub === | ||
Line 89: | Line 89: | ||
=== Configuring MATLAB to use the code from GitHub === | === Configuring MATLAB to use the code from GitHub === | ||
- | Now, we need to tell MATLAB where to find all this code we have just obtained. Open MATLAB and [[http://www.mathworks.com/help/matlab/matlab_env/create-matlab-shortcuts-to-rerun-commands.html | create a shortcut]] titled something like "Neural Data Analysis". The code for the shortcut should be | + | Now, we need to tell MATLAB where to find all this code we have just obtained. Open MATLAB and [[http://www.mathworks.com/help/matlab/matlab_env/create-matlab-shortcuts-to-rerun-commands.html | create a shortcut]] (2017b and earlier) or a [[https://www.mathworks.com/help/matlab/matlab_env/create-matlab-favorites-to-rerun-commands.html?searchHighlight=Favorite%20Commands&s_tid=doc_srchtitle | Favorite]] (2018a+) titled something like "Neural Data Analysis". The code for the shortcut should be |
<code matlab> | <code matlab> | ||
Line 134: | Line 134: | ||
=== Grab an example data session === | === Grab an example data session === | ||
- | Next, let's get some data! Go to the NS&B share and find the ''tutorial_data'' folder (within the MouseStriatum folder). | + | Next, let's get some data! At MBL, go the NS&B share and find the ''tutorial_data'' folder (within the MouseStriatum folder). At Dartmouth or elsewhere, you'll need to connect to the lab server. E-mail MvdM for instructions on how to do that. |
For this module you will need the ''R016-2012-10-08'' folder (containing data from one recording session), which you can find in the ''\promoted\R016'' folder on the share. Copy this folder onto your own computer. A good place to put it is in something like ''D:\data\promoted\'' (Rxxx indicate different rats, followed by the date of each session). As mentioned, in general you want to keep your data separate from your code; for instance, multiple analysis projects may use the same data, so you don't want to duplicate it. | For this module you will need the ''R016-2012-10-08'' folder (containing data from one recording session), which you can find in the ''\promoted\R016'' folder on the share. Copy this folder onto your own computer. A good place to put it is in something like ''D:\data\promoted\'' (Rxxx indicate different rats, followed by the date of each session). As mentioned, in general you want to keep your data separate from your code; for instance, multiple analysis projects may use the same data, so you don't want to duplicate it. |