Description Usage Arguments Details Value
Calculates preference indices for alternating quadrant sections of optogenetic protocol (section 4 and 5).
1 | PIquadrant(trx, by.fly = F)
|
trx |
input track data frame (must include |
by.fly |
boolean to decide whether you calculate PI by section (of the 4 in the standard protocol, arranged by section id x repeat) or by fly id (collating all sections together for each fly) |
Frankly I can't remember what happens in this function and that is why you should document
this shit when you write it. I think it picks out the last 5s of each quadrant section and averages the distribution for each fly
(by.fly=T
) or each repeat of the protocol (by.fly=F
). However I see a lot of weird NA
-based analysis in the code
and I can't remember what it's for.
A data frame with the PI for each fly (if by.fly
is true) or by section and repeat
(if by.fly
is false).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.