Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

methods_numbers.m 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. function methods_numbers(fld)
  2. snrthres = 2.5;
  3. daythres = 3;
  4. monkeys = {'M1','M2'};
  5. fprintf('\n======================================================\n');
  6. fprintf(['-- Running methods_numbers with SNRth ' num2str(snrthres) ...
  7. ', DAYth ' num2str(daythres) ' --\n']);
  8. fprintf('======================================================\n');
  9. for mi = 1:2
  10. monkey = monkeys{mi};
  11. %% find which data to include
  12. datainfo = session_info();
  13. if strcmp(monkey,'M1')
  14. info = datainfo(1);
  15. else
  16. info = datainfo(2);
  17. end
  18. sessions = info.dates;
  19. MP = get_mp(fld,monkey,sessions);
  20. %% set SNR threshold and find channels and sessions
  21. % limit MP to snr threshold
  22. incl = MP.snr>snrthres;
  23. MP_ = MP; % copy for backup
  24. % only include channels that have at least 5 sessions
  25. MP = MP(incl,:);
  26. [chid, ch_list] = findgroups(MP.chan_id);
  27. session_per_chan = splitapply(@length,MP.session_id,chid);
  28. % make a list of channels that we will include
  29. chans = ch_list(session_per_chan>daythres);
  30. %% count goodtrials
  31. q = MP.goodtrials; thrownout = [];
  32. for ch = chans'
  33. thrownout(end+1) = round((1-sum(q{ch})/length(q{ch}))*10000)/100;
  34. end
  35. disp(['for ' monkey ', we threw out between ' num2str(min(thrownout)) '% and ' num2str(max(thrownout)) '% of the trials']);
  36. end