.Overview | R Documentation |
Core component of PatchR is the PRecording class, which stores a series imported from a Patchmaster .dat file or an Axon .abf file. Several checks are implemented into the PRecording class to assure data integrity is maintained.
Multiple recordings PRecording
objects containing identically shaped data (i.e. recorded witht the same protocol) can be stored and processed within the PCollection
class using mostly identical commands and syntax.
Import procedures are currently implemented for HEKA's PachtMaster .dat and Axon Instruments .abf file format.
ImportPRecording (for PRecording objects)
AddTrace (for PRecording objects)
newPCollection (for PCollection objects)
AddPRecording (for PCollection objects)
AddPRecording (for PCollection objects)
Load (for PRecording and PCollection objects)
Save (for PRecording and PCollection objects)
GetData
GetPlot
GetMetaData
GetRecParam
GetCSlow
GetSweepNames
GetTimeTrace
GetTraceNames
GetGroupMembers
GetRecordingNames
GetPlotNames
GetPlot
Measure
MeasureStimResp
MeasureSweeps
BuildStimRespPlot
BuildGroupComparisonPlot (for PCollection objects)
BuildRecordingPlot (for PCollection objects)
BuildRecordingPlot (for PRecording objects)
Inspect (for PRecording and PCollection objects)
CurrentDensity (for PRecording objects)
GetData
Calculate_IV - Outdated
## Not run:
# Example 1
# import a PatchMaster file
tmp<-ImportPRecording("test.dat",series = 1,traces = c(1,2))
# build a Plot superimposing all sweeps and inspect interactivley
tmp<-BuildRecordingPlot(tmp)
tmp<-InspectSeries(tmp, Trace = "I.mon")
# apply any function to the PRecording object, in this case, make mean over all sweeps
tmp<-apply(tmp, "Sweep", mean, ReturnPObject = TRUE)
# and return as data.frame
as.data.frame(tmp)
# Example 2
exp<-newPCollection(list(tmp,tmp),Names=c("A","B"),Group=c("Generic1","Generic2"))
AddMetaData(exp, #add as metadata to PCollection
lapply(exp, # for each PRecording stored in PCollection
function(x){
apply( # average over time
getData(x,
# extract values from I-mon trace,
# Sweep 15, between 1 and 1.19 s only
Traces="I-mon",
Time =c(1,1.19),
Sweeps=getSweepNames(x)[c(15)]),
"Time",
mean)
}
)
)
exp@MetaData
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.