Skip to content

Commit 968f332

Browse files
authored
Update README.md
1 parent d79b8b6 commit 968f332

File tree

1 file changed

+0
-103
lines changed

1 file changed

+0
-103
lines changed

README.md

Lines changed: 0 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -227,107 +227,4 @@ This folder contains example data and test modules for developers to debug the c
227227

228228
functions to qsub jobs to SGE (not used so far)
229229

230-
## Troubleshooting
231230

232-
### Eqw on SGE
233-
234-
Use `qstat -j <job_id>` to get detailed information about the job and why it failed.
235-
236-
Once the underlying issue is resolved, you can clear the error state using `qmod -c <job_id>` and then resubmit or restart the job with `qmod -rj <job_id>`.
237-
> You typically do not need to run `qmod -rj` to reschedule a job that has returned to the qw (queued and waiting) status after clearing the Eqw state.
238-
239-
If this is due to memory exceeding the limit. Try to increase `h_data` in the shell script.
240-
241-
### Parallel toolbox not working:
242-
This could be due to pathdef issue, which is caused by multiple versions of Matlab reading/writing to pathdef in ~/Documents/MATLAB.
243-
244-
See [this post](https://www.mathworks.com/matlabcentral/answers/2113676-matlab-r2023a-parallel-computing-toolbox-is-not-working?s_tid=srchtitle)
245-
246-
First, it is important to take a backup of the current 'pathdef.m' file, which can be located by executing the following command in the MATLAB Command Window:
247-
248-
```
249-
which -all pathdef
250-
```
251-
252-
Ensure that you make a copy of the file by copying it in a location different than its current folder. This is because the steps of this procedure involve regenerating the MATLAB Search Path including resetting the 'pathdef.m' file in its initial state. This procedure will further remove custom paths you may have added in the MATLAB Search Path.
253-
254-
>Note: If you have multiple files show in the output of this command, remove any files that are not on the $MATLAB/toolbox/local path. MATLAB may encounter issues if it reads multiple pathdef.m files.
255-
256-
After taking the backup, please execute the following commands in the MATLAB Command Window to restore the default MATLAB Search Path and rehash the toolbox cache:
257-
```
258-
restoredefaultpath
259-
rehash toolboxcache
260-
```
261-
262-
After running these commands, please use MATLAB to see if the initial issue was resolved. Then you may want to save the new MATLAB search path to the 'pathdef.m' file by executing the following command:
263-
```
264-
savepath
265-
```
266-
Note that the above commands will reset any custom paths you have set.
267-
268-
269-
## Matlab toolbox cannot be installed due to permission issue:
270-
271-
See this [solution](https://www.mathworks.com/matlabcentral/answers/334889-can-t-install-any-toolboxes-because-can-t-write-to-usr-local-matlab-r2017)
272-
273-
Run this in Mac terminal:
274-
275-
```
276-
sudo chown -R $LOGNAME: '/Applications/MATLAB_R2023a.app'
277-
```
278-
279-
Or maybe run matlab in terminal:
280-
281-
```
282-
sudo matlab
283-
```
284-
285-
## error in matnwb:
286-
```
287-
object(s) could not be created:
288-
/processing/ecephys/LFP/ElectricalSeries/electrodes
289-
290-
The listed object(s) above contain an ObjectView, RegionView , or SoftLink object that has failed to resolve itself. Please
291-
check for any references that were not assigned to the root NwbFile or if any of the above paths are incorrect.
292-
```
293-
Solution:
294-
Add `ElectrodesDynamicTable` to nwb object before adding recordings/processed data.
295-
296-
```
297-
numShanks = 1;
298-
numChannelsPerShank = 4;
299-
300-
ElectrodesDynamicTable = types.hdmf_common.DynamicTable(...
301-
'colnames', {'location', 'group', 'group_name', 'label'}, ...
302-
'description', 'all electrodes');
303-
304-
Device = types.core.Device(...
305-
'description', 'Neuralynx Pegasus', ...
306-
'manufacturer', 'Neuralynx' ...
307-
);
308-
309-
shankLabel = {'GA'};
310-
electrodeLabel = {'ROF'};
311-
312-
nwb.general_devices.set('array', Device);
313-
for iShank = 1:numShanks
314-
shankGroupName = sprintf([shankLabel{iShank}, '%d'], iShank);
315-
EGroup = types.core.ElectrodeGroup( ...
316-
'description', sprintf('electrode group for %s', shankGroupName), ...
317-
'location', 'brain area', ...
318-
'device', types.untyped.SoftLink(Device) ...
319-
);
320-
321-
nwb.general_extracellular_ephys.set(shankGroupName, EGroup);
322-
for iElectrode = 1:numChannelsPerShank
323-
ElectrodesDynamicTable.addRow( ...
324-
'location', 'unknown', ...
325-
'group', types.untyped.ObjectView(EGroup), ...
326-
'group_name', shankGroupName, ...
327-
'label', sprintf(['%s-', electrodeLabel{iShank}, '%d'], shankGroupName, iElectrode));
328-
end
329-
end
330-
331-
nwb.general_extracellular_ephys_electrodes = ElectrodesDynamicTable; % don't forget the last line!!
332-
333-
```

0 commit comments

Comments
 (0)