forked from sje30/sjemea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
866 lines (562 loc) · 28.1 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
2014-03-17 Stephen Eglen <stephen@gnu.org>
* DESCRIPTION (Version): Bump to 0.41. This version contains the
code for reading in nex (Neuroexplorer) files. See
inst/tests/test_nex.R for testing.
2014-02-10 Stephen Eglen <stephen@gnu.org>
* src/sjemea.c (count_overlap_arr): Convert n1 and n2 to doubles
before multiplying together to avoid 32bit Integer overflow.
* R/sun.R (make.sun.layout): Return array name.
* R/ncl_mea.R (ncl.read.spikes): Set layout$array.
* R/iit.R (aps.read.spikes): Use get.array.info() for breaks.
make.aps.layout(): removed; just use make.iit.layout().
(make.iit.layout): Get spacing infor from get.array.info().
* R/corr_index.R (plot.corr.index): New argument xlabel.
2013-07-31 Stephen Eglen <stephen@gnu.org>
* R/hdf5_reader.R (chop): New version of chop.
Update so that if 'names' not provided, we give some default
names.
2013-06-17 Stephen Eglen <stephen@gnu.org>
* R/maxinterval.R (mi.find.bursts): Add a TODO note:
## TODO: all our burst analysis routines should use the same
## value to indiciate "no bursts" found.
##no.bursts = NA; #value to return if no bursts found.
no.bursts = matrix(nrow=0,ncol=1) #emtpy value nrow()=length() = 0.
* R/networkspikes.R (compute.ns): New argument whichcells allows a
subset of electrodes to be analysed; this is useful for multi-well
plates.
* R/zzz.R (.Last.lib): Change .Last.lib to .onUnload().
* R/ms_funs.r (make.jay.layout): Pass the whole electrode name,
not just the row and column number. This makes the layout
information more informative.
(jay.read.spikes): Compute meanfiringrate in simpler fashion, like
other readers.
(jay.read.spikes): Switch order of rec.time and unit.offsets so
that lists can be compared easily with other readers, e.g. the h5 reader.
* R/arrays.R (get.array.info): Add MCS_8x8_100um array for Jay's
datasets.
2013-06-11 Stephen Eglen <stephen@gnu.org>
* DESCRIPTION (Version): Update to 0.38, this version has
preliminary testing by the testthat() package.
2013-06-05 Stephen Eglen <stephen@gnu.org>
* R/axion_functions.R: Add new .plateinfo and plateinfo()
functions, so that we store all of the information relating to the
spatial information on the plate in one place.
e.g.
plateinfo = plateinfo("Axion 12 well")
2013-05-09 Stephen Eglen <stephen@gnu.org>
* R/zzz.R: Remove .First.lib() and use NAMESPACE instead to load
shared object. Update .Last.lib() to .onUnload().
2013-03-15 Stephen Eglen <stephen@gnu.org>
* R/maxinterval.R (mi.find.bursts): Use 'matrix(nrow=0,ncol=1)' to
signify an empty burst structure, rather than just NA. This
should be used across all packages.
* R/surprise2.R (calc.burst.summary): Update documentation to
explain what is output.
2013-01-25 Stephen Eglen <stephen@gnu.org>
* R/feller.R (names.to.indexes): Allow regular expressions.
2012-08-02 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.mealayout): Switch to 'high density' arrays if
more than 100 electrodes. Add "spacing (um)" to xlab.
(fourplot): Tidy, so that filename shown once in margin at page top.
2012-05-29 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (xcorr.restricted): Add plot argument.
2012-05-28 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (xcorr.plot): Add plot=TRUE argument.
(plot.mm.s): "episodes" is now a matrix.
2012-02-25 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (sanger.read.spikes): Remove redundant variable 'pos'.
* R/litke.R (mat.to.rda.dir): Fix typo: d1-> dir.
* R/ms_funs.r (plot.rate.mslayout.rad): Add draw.empty argument.
2012-02-12 Stephen Eglen <stephen@gnu.org>
* DESCRIPTION (Version): Move up to 0.33 with move to git.
2011-06-21 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.mealayout): Switch between high and low
density versions based on the number of electrodes.
* R/iit.R (make.iit.layout): Switch back to using "mealayout" for
the class.
(make.iit.layout): electrode.num column added to the pos array -
required for the sql writer. Change column numbers also to "x"
and "y" in the pos array.
2011-06-09 Stephen Eglen <stephen@gnu.org>
* R/episode.detection.R (episode.detection): When there are no
episodes, return the NULL object.
2011-05-23 Stephen Eglen <stephen@gnu.org>
* R/feller.R (feller.spiketimes): Add check to prevent multiple
files with same electrode/cell name being added. This was
happening with some recordings where e.g. both control and drug
conditions were kept in the same folder; the fix was to put
these conditions into their own folders.
2011-04-02 Stephen Eglen <stephen@gnu.org>
* R/iit.R (iit.read.spikes): Update sampling rate from 7800 Hz to
7702 (from Matthias).
2011-02-17 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.mm.s): Pass xlab as an argument.
2011-01-31 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (read.spikes): Add 'sql' as a new reader.
2010-12-02 Stephen Eglen <stephen@gnu.org>
* R/sql.R (make.sql.file): Add a new column, id, to the neuron
table. This is used in the spikes table, rather than neuron.name,
as neuron.name is a character, rather than a short array. This
is more efficient for Keith's programme cyclone.
2010-12-01 Stephen Eglen <stephen@gnu.org>
* R/sql.R (make.sql.file): Remove duplicate rows from electrode
table.
2010-11-26 Stephen Eglen <stephen@gnu.org>
* R/sql.R (make.sql.file): Rename 'num' to 'name' in table
'neuron', as the name can be alphabetical, not just numeric.
2010-11-24 Stephen Eglen <stephen@gnu.org>
* R/feller.R (make.ejc.layout): Add electrode.num column to the
layout. Ensure that x,y dimensions are integers for electrode
position (to the nearest um).
* R/sun.R (make.sun.layout): Add the electrode.num column to the
layout.
2010-10-19 Stephen Eglen <stephen@gnu.org>
* R/feller.R (names.to.indexes): Add allow.na=FALSE as new
argument so that NA can be used when plotting spike trains.
* R/litke.R (litke.read.spikes): Add a specific distance break
just for neurons with distance 0 between them.
* R/ms_funs.r (plot.mm.s): Cope with NA being used for a channel
name, in which case just add some whitespace rather than a spike train.
* R/ncl_mea.R (ncl.read.spikes): Use channel names as the names
for the elements of 'spikes', so that they can be used when
plotting spike trains.
2010-08-27 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (make.movieframes): delete.first argument is now
TRUE by default. New clean.after argument to remove temporary
frames if the animation has been made.
2010-06-24 Stephen Eglen <stephen@gnu.org>
* R/litke.R (make.litke1.layout): Include electrode number in
layout information, so that we can count the number of distinct
electrodes that recorded activity.
2010-06-15 Stephen Eglen <stephen@gnu.org>
* src/sjemea.c (frate): New function to compute firing rate.
* R/ms_funs.r (make.spikes.to.frate): New version that uses C to
do all of the binning of spikes for estimating firing rate.
(make.spikes.to.frate.old): Old version is still here.
Differences between the two versions are very minor.
(fourplot): Don't attempt to plot correlation index if it is not
there.
* R/litke.R (mat.to.rda): New functions to convert MAT files to
Rda files. (matlab files are currently slow to read in, whereas
the equivlane Rda files are fast.)
(readMatRda): New function: wrapper around readMat() to check
first if the Rda file has been created.
2010-06-11 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (spikes.to.rates): Use new method for computing
rates.
2010-05-14 Stephen Eglen <stephen@gnu.org>
* R/iit.R (iit.read.spikes): Remove empty channels that are
included in the matlab file.
2010-03-19 Stephen Eglen <stephen@gnu.org>
* R/corr_index.R (make.distances): Add rm.lower flag to control
removing lower-triangular matrix entries.
2010-03-17 Stephen Eglen <stephen@gnu.org>
* DESCRIPTION (Version): 0.27 include optimizations to correlation
index calculations.
* src/sjemea.c (count_overlap_arr): New function. Take all of the
spike trains (as one long vector), and do all pairwise counts of
overlaps. When you have many spike trains (e.g. 500+), this is
much faster than looping in C.
* R/corr_index.R (make.distances): Rewrite to vectorize, as it is
slow with large numbers of N (e.g. N > 500). Typical 10-20 time
speed up; see test function make.distances.check().
(corr.get.means.old): Old version was too slow also for N>500.
e.g with N=979, corr.get.means was taking 40s; this new version
takes only 0.8s. split() is our friend here!!!
(corr.get.means.check): Tester function.
(corr.get.means): New version.
2010-03-13 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (read.spikes): New function.
2010-03-12 Stephen Eglen <stephen@gnu.org>
* src/sjemea.c (bci_calc): New function.
* R/corr_index.R (my.lower): New function.
* R/maxinterval.R (mi.find.bursts): Include last spike when
checking for bursts in phase 1.
* R/ms_funs.r (jay.read.spikes): Add names() to spikes.
2010-03-11 Stephen Eglen <stephen@gnu.org>
* R/litke.R (show.litke.layout): New function.
* R/iit.R (plot.mealayout.hi): Change use.rownames to use.names.
* R/ms_funs.r (plot.mealayout): Change use.rownames to use.names.
* R/feller.R (filter.channel.names): Use names.to.indexes.
(names.to.indexes): New function.
* R/ms_funs.r (plot.mm.s): Add use.names argument for printing
cell name rather than index.
2009-11-30 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.meanfiringrate): Add lwd option.
* R/sun.R (sun.read.spikes): New function. Reads in the Sun data
sets.
2009-11-06 Stephen Eglen <stephen@gnu.org>
* R/corr_index.R (plot.corr.index): Fix case when there are no
valid correlations to plot (e.g. when min firing rate is high).
2009-10-06 Stephen Eglen <stephen@gnu.org>
* R/corr_index.R (corr.index): Add min.rate argument.
(make.corr.indexes): Use min.rate -- now we can introduce NA into
correlation scores -- if either electrode is firing at lower than
min.rate.
(corr.index.means): Old function? no longer used.
(corr.get.means): Check for any NA in correlation indices when
computing mean/sd at each distance.
* R/sanger.R (sanger.write.corrs): New function.
2009-09-24 Stephen Eglen <stephen@gnu.org>
* R/iit.R (iit.read.spikes): Handle the case when FILENAME is a
CSV, rather than a .mat file. This gets around current bug when
large .mat files are not read on a windows machine.
2009-09-22 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (make.movieframes): Create output directory if it
doesn't exist.
* R/iit.R: New file to store code for high-density array (64x64).
Data from IIT is coming in matlab format, so R.matlab package
required for processing these data.
* R/ms_funs.r (spikes.to.ragged.csv): New function.
2009-08-14 Stephen Eglen <stephen@gnu.org>
* R/feller.R (filter.channel.names): New function, used to keep or
remove channels specified by name when reading in data.
* R/sanger.R: Use TRUE/FALSE, not T/F.
* R/feller.R (remove.empty.channels): New function to delete
channels that are empty after reading in data.
(feller.read.spikes): Use above function.
2009-07-29 Stephen Eglen <stephen@gnu.org>
* R/feller.R (feller.read.spikes): New functions to read in data
from Marla Feller.
2009-07-08 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R (calc.burst.summary): Change name of cv.IBI to
cv.IBIs so that this code matches the field name generated by
calc.burst.summary.
2009-04-06 Stephen Eglen <stephen@gnu.org>
* DESCRIPTION (Version): Bump to 0.20 to get Paul and I back in sync.
* src/sjemea.c (arraywide_autocorr): Remove unused var 'last'.
* R/networkspikes.R (find.peaks): Increase max.peaks by factor of
10. Remove T/F.
* R/corr_index.R (plot.corr.index): Add args 'dot.col', 'show.fit'
and 'show.ci' to function.
* R/ms_funs.r (plot.mm.s): Add ylab to arg list.
2009-03-13 Stephen Eglen <stephen@gnu.org>
* R/corr_index.R (plot.corr.index): Document 'log=y' usage.
2008-10-09 Stephen Eglen <stephen@gnu.org>
* R/networkspikes.R (compute.ns): When computing mean and sd,
ignore any NA entries where half max could not be found.
(find.halfmax): Check that the half max point to left and right of
peak can be found, as sometimes it cannot.
2008-08-23 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (movie.postage): Need to pass s struct to legend.
(plot.rate.mslayout.scale.old): Delete old version of function.
2008-07-20 Stephen Eglen <stephen@gnu.org>
* R/sanger.R: Tidy up for GPL.
* R/surprise2.R: GPL.
* R/general.R (printf): Move here from Poisson surprise.
* R/networkspikes.R (ns.coincident): Delete old code; GPL.
* R/corr_index.R (basename2): Remove and use basenamepy instead.
2008-07-17 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (sanger.init): Add code for deskpro15402 at sanger.
2008-04-20 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (sanger.read.spikes): Cope with new format for
timestamps, i.e. addition of StartStop (now at start of
spreadsheet). Move to reading in data all at once.
2007-12-18 Stephen Eglen <stephen@gnu.org>
* R/general.R (file.or.gz): New function.
* R/sanger.R (sanger.read.spikes): Use file.or.gz to allow
filename to be specified w/out .gz suffix.
* R/ms_funs.r (jay.read.spikes): Possibly read compressed files,
and handle .sps file accordingly.
2007-12-17 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (handle.gz): New function.
(make.meafile.cache): Remove any .gz from key.
(sanger.read.spikes): Use gzfile() to open file, this can natively
read compresed & uncompressed files.
(read.cond.tab): Respect using # as a comment character within
condition tables.
2007-12-14 Stephen Eglen <stephen@gnu.org>
* src/sjemea.c (coincident_arr): New function for helping to
compute network spike identity.
* R/networkspikes.R (spikes.to.count2): Small bug -- had reference
to s$... items.
(ns.identity, ns.coincident): New functions.
2007-08-24 Stephen Eglen <stephen@gnu.org>
* R/networkspikes.R (find.peaks): Increase max.peaks to 20000
2007-08-10 Stephen Eglen <stephen@gnu.org>
* R/networkspikes.R (ns.bin.peak): New function: bin the peak
values into a set of bins (useful for summaries).
(ns.bin.peak): Check case when p is NULL (no measures).
2007-08-09 Stephen Eglen <stephen@gnu.org>
* R/ranksurprise.R (rs.find.burst): New method.
* R/surprise2.R (spikes.to.bursts): New method: rs.find.bursts
(rank surprise).
2007-08-08 Stephen Eglen <stephen@gnu.org>
* R/networkspikes.R (summary.ns): Use the vector "ns$brief" to
show summary values, rather than recalculating summary values.
2007-07-30 Stephen Eglen <stephen@gnu.org>
* DESCRIPTION (Version): 0.16 released. Cleaned up network spikes
code.
2007-07-27 Stephen Eglen <stephen@gnu.org>
* R/networkspikes.R (find.peaks): Add column names to peaks matrix.
(compute.ns): New function: main function to call to compute
network spikes.
(spikes.to.count2): New function: return counts as a time series
object, which is efficient.
(plot.ns, summary.ns): Summary functions for new "ns" class
returned by compute.ns.
(mean.ns): Modified from "show.ns".
(show.ns): Can show network spikes after mean has been computed
using mean.ns.
2007-07-23 Stephen Eglen <stephen@gnu.org>
* R/logisi.R (logisi.find.burst): add isi.low.
2007-07-21 Stephen Eglen <stephen@gnu.org>
* R/logisi.R: New file (from Zheng).
* R/surprise2.R (spikes.to.bursts): use logisi.par to pass
parameters.
2007-07-17 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R (spikes.to.bursts): Add "logisi" as method for
Zheng to develop.
2007-07-15 Stephen Eglen <stephen@gnu.org>
* R/zzz.R (.Last.lib): New function to unload the shared object
when package is detached. (Useful for debugging purposes.)
2007-06-21 Stephen Eglen <stephen@gnu.org>
* src/sjemea.c (arraywide_autocorr): New function for computing
autocorrelation of each spike train, and then adding all
autocorrelations together.
2007-06-20 Stephen Eglen <stephen@gnu.org>
* src/sjemea.c (ns_count_activity): New function used by
spikes.to.count.
* R/networkspikes.R (spikes.to.count): New function to replace
inefficient R-based spikes.to.count.old.
2007-03-19 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R (burstinfo): Use "simplify=FALSE" to ensure that
sapply returns a list rather than simplifying to a matrix.
2007-03-09 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R (calc.burst.summary): New function to provide "one
line" summary of burst information.
* R/corr_index.R (basename2): New function.
* R/sanger.R (mea.op): New function.
mea.op.dir: new directory.
* R/networkspikes.R (show.ns): Check case for when network spikes
were too close to beginning/end of recording; in this case, the
FWHM and network spike are not collected.
2007-03-06 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (sanger.init): New function.
* R/networkspikes.R (spikes.to.counts): Return just
presence/absence (1/0) of spikes within a bin, rather than a count
of the number of spikes within a bin.
2007-03-04 Stephen Eglen <stephen@gnu.org>
* R/corr_index.R (write.corr.indexes): New function: store
correlation indexes in a file.
* R/sanger.R (sanger.read.spikes): Update to use new correlation
index method.
* R/ncl_mea.R (ncl.read.spikes): ditto.
* R/ms_funs.r (jay.read.spikes): ditto.
* R/corr_index.R: new file to store all the functions related to
correlation index calculation.
2007-02-24 Stephen Eglen <stephen@gnu.org>
* R/maxinterval.R (mi.find.bursts): Use cleaner method for merging
bursts.
* R/surprise2.R (calc.all.isi): New function.
2007-02-23 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R: Change "first" to "beg" in col name for burst info.
* R/ms_funs.r (plot.mm.s): Ditto.
2007-02-13 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (make.movieframes): Update to allow this to also
make the animation when the command "convert" is available.
2007-02-07 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R (find.burst2): New function -- this surprise
method allows for the SI to drop in phase 1.
* R/ms_funs.r (jay.read.spikes, sanger.read.spikes): Add min.rate
arg to remove channels that fire infrequently.
(plot.cumisi): New function.
* R/networkspikes.R (find.halfmax): Robust definition, working
around a given starting point to climb down from the peak.
2007-02-06 Stephen Eglen <stephen@gnu.org>
* R/networkspikes.R (find.peaks): Check if any peaks have been
found -- return NULL if no peaks were found.
2007-01-27 Stephen Eglen <stephen@gnu.org>
* R/surprise2.R (calc.burst.summary): Just calculate the burst
summary, so that it can be saved in "s"; use write.csv() to output
the data frame to a file.
* R/ms_funs.r (cv.isi): New function.
(isi): Update to use "diff".
(plot.cumisi): New function -- useful, but not finished.
* R/sanger.R (sanger.read.spikes): Return totalspikes = total
number of spikes in recording. Compute CV of ISI.
* R/ms_funs.r (isi): Update to check for 0/1 spikes.
2007-01-22 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (read.cond.tab): Remove rows where Ignore == 1.
2007-01-19 Stephen Eglen <stephen@gnu.org>
* R/sanger.R (read.cond.tab): New function for reading in a
condition table.
* R/ms_funs.r (print.mm.s): New function -- default for when an
object is printed.
* R/sanger.R (sanger.read.spikes): Change the way that the spikes
list is created. Having just one spike train was causing
problems. Need to check this for the other reading routines.
2007-01-15 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (sanger.read.spikes,jay.read.spikes): Remove scale
argument; now included in layout structure.
* R/ncl_mea.R (ncl.read.spikes): Remove scale argument; now
included in layout structure.
* R/ms_funs.r (plot.mm.s): Change mintime/maxtime arguments to
beg/end.
Remove jay.ms.lim.x and jay.ms.lim.y and instead move to using the
"layout" structure. Old references to electrode layout s$pos
should now become s$layout$pos.
(make.spikes.to.frate): Use beg/end to denote time window.
(make.jay.layout,make.sanger1.layout): New functions to make the
layout to replace plot.jay.pos().
* R/ncl_mea.R (ncl.read.spikes): Use beg/end for time window.
* R/ms_funs.r (spikes.to.rates): Return time.interval too.
(sanger.read.spikes): Use beg/end for time window.
(jay.read.spikes): Use beg/end for time window; return
time.interval.
* R/ncl_mea.R (mcd.data.to.array): Switch to using beg/end to
specify time window.
* R/ms_funs.r (movie.window): Allow movie player to select the beg
and end of the time to play; do not assume frames/s = 1.
2007-01-12 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.mm.s): fix typo.
(close.window): New function to stop movie before closing the
movie widget.
2007-01-09 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (movie.window): New function for displaying Tk
window for controlling movie display.
2007-01-04 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.mm.s): Fix typo in call to rep.
2007-01-03 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (plot.mm.s): default for whichcells is NULL, to
indicate that all cells should be plotted.
2006-12-20 Stephen Eglen <stephen@gnu.org>
* R/ms_funs.r (spikes.to.rates): Change function so that av.rate
is calculated here, not in the plotting function.
2002-11-08 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.mscom): Add max.cols.
2002-10-15 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.mscom): Add "max.cols" to allow all COM traces
to be drawn in one colour.
2002-10-14 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.rate.mslayout.rad): Simple updates for Retreat
poster and for figures (e.g. colouring asterisk in COM plots).
2002-09-25 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (corr.do.fit): Add show.ci option for showing the
confidence intervals to exponential fits.
(jay.filter.for.min): Was not for case when all spike times should
be removed. This version is simpler, and works!
2002-09-20 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.corr.index): Change the label of the x axis to
"distance (µm)".
2002-08-28 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.mscom): New argument rel.cex to allow relatize
size of characters to change.
2002-08-04 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.corr.index): Allow plot title (main) to be
passed as argument, otherwise, assume a default.
2002-07-02 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.meanfiringrate): Use thinner lines for drawing
mean firing rate.
(corr.check.fit): New function - generate exponential data where
we now params to test the fit.
(plot.corr.index.fit): New function -- show scatter of correlation
indices and fit.
2002-06-26 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.mm.s): Allow "main" and "for.figure" to be
passed, for figure generation.
Reduce line width of spikes to 0.2, makes plots subtler.
2002-06-23 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (xcorr.plot): Change x/y axis code for figures.
(xcorr.restricted): New option show.poisson to control whether
mean firing rate of other cell shown.
(plot.mscom): New argument `label.cells' to allow text to be added
to the COM plot, to label cells.
(plot.rate.mslayout.rad): New argument `show.time' to control
whether time is displayed above plot.
* R/ms_funs.r. xcorr.plot.xaxistimes: New global variable.
2002-06-16 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r: jay.ms.lim.x and y: new variables storing the size
of Jay's MEA.
(centre.of.mass.wt2): New function for weighting centre of mass.
2002-06-14 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (jay.read.spikes): Allow units to be shifted, by
using the .sps file feature. The movie functions can now
take the shifted positions into account.
(plot.jay.pos): Allow units to be coloured.
(plot.shifted.jay.pos): New function to draw shifted unit
positions relative to original units.
Reverse jay.ms.cmap.
(centre.of.mass): No need for com.thresh.num and com.thresh.rate.
2002-06-08 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.rate.mslayout.col): New function, to colour-code
the firing rate.
(movie.postage): New function to make a postscript plot of movie
frames.
2002-06-05 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.meanfiringrate): Allow optional beginning and
end times to be specified (in seconds).
(fourplot): Add optional log="" part in call to plot.corr.index.
Do not add another title to the correlation plot.
(jay.read.spikes): Compute corr indexes only if there is more than
one spike train -- otherwise we do not have any cells pairs to compare!
(jay.read.spikes): Time.interval (for calculating firing
rates) is now an optional argument.
2002-06-04 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.mscom): Use square plotting region.
(show.movie): Provide sensible defaults for beginning and end times.
(make.spikes.to.frate): Remove the last time break -- so that
first dimension of rates and times are the same length.
(rates.to.radii.prop.rad): New function.
(rates.to.radii): New function.
(rates.to.radii.prop.area): New function.
(plot.rate.mslayout): Add options SHOW.COM and SKIP.EMPTY.
Use rates.to.radii to compute the radius, given firing rate.
(plot.rate.mslayout.scale): New function to draw "scale bar" for
converting firing rate to radius.
2002-05-15 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.rate.mslayout): New version of plot.
2002-05-14 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (centre.of.mass): New function. Need to check that
it is working fine.
(draw.spikes): new function to draw one spike train.
(xcorr.restricted): New function to compute cross-correlations
over just a narrow region of time.
(xcorr.plot): Check also for windows terminal.
2002-03-10 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (make.corr.indexes): Use as.double() to prevent
"integer overflow" errors when both n1, n2 were large. (in these
cases, results was NA, so we also check to see that NA is not
found in the correlation matrix.
2002-03-08 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (make.mi): Make tmax an argument, so that we can
test multiple values of tmax.
2002-02-26 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (plot.mm.s): Rewrite to use segments(), not lines().
By default do not label cells. Allow min time to be greater than 0.
(jay.read.spikes): Ignore spike times less than min.time and
greater than max.time, if those arguments set.
(jay.filter.for.max): New function.
(jay.filter.for.min): New function.
(make.corr.indexes): Tmax should really be the time of the last
spike - time of first spike.
(make.spikes.to.frate): time.low defaults to the time of the first
spike stored.
2002-02-15 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (jay.read.spikes): Add parameter IDS so that only
certain channels can be processed.
2002-02-11 Stephen Eglen <eglen@thalamus.wustl.edu>
* R/ms_funs.r (xcorr.plot): Allow plot to display as well as to
postscript/pdf.
(crosscorrplots): delete autocorrplots and generalise
crosscorrplots to make auto-corrs as well.
* src/sjemea.c (bin_overlap, bin2_overlap): remove unwanted
variable count.
* R/ms_funs.r (crosscorrplots): New function to display both auto
and cross-correlograms.
2002-01-27 Stephen Eglen <eglen@thalamus.wustl.edu>
* ms_funs.r (prob.t.cond.r): Check that each histogram has at
least one entry; else we will divide by zero when normalising
the histogram, leading to NA values.
(read.ms.mm.data.format1): Check that the number of spikes for a
cell (for each record) is greater than zero. Previously assumed
that there would always be at least one spike per cell (per
record).
2002-01-24 Stephen Eglen <eglen@thalamus.wustl.edu>
* ms_funs.r (fuzz.zero): Remove, and use all.equal() instead.
2002-01-16 Stephen Eglen <eglen@thalamus.wustl.edu>
* ms_funs.r (bin.distances): New function to bin distances.
(my.upper): New function to return upper triangular elements of matrix.
(make.mi): Compute the various distributions for mutual
information, and return as a list.
Various clean ups to code.