View source: R/model_response.R
model_response | R Documentation |
Runs the DoOR algorithm, that merges all measurements for one receptor into a common response model.
model_response(da, select.MDValue = door_default_values("select.MDValue"),
overlapValues = door_default_values("overlapValues"),
responseRange = door_default_values("door_response_range"),
weightGlobNorm = door_default_values("door_global_normalization_weights"),
glob.normalization = door_default_values("glob.normalization"),
plot = door_default_values("plot"))
da |
data frame, a selected receptor containing measured responses from studies. |
select.MDValue |
numeric, threshold on the MD for rejecting a fit. |
overlapValues |
numeric, a criterion using to refuse a data set that has not enough overlap value. |
responseRange |
data frame, contains response ranges for all studies. |
weightGlobNorm |
data frame, a binary data matrix, 1 indicates given odor has been measured in given study, NA indicates NOT. |
glob.normalization |
logical, default is |
plot |
logical, If |
Merging a data is processed by following:
Normalize all response data in value [0,1].
Compute the correlation between studies
and selected the best pair using select_model
.
Merge the
first pair using function project_points
.
Add other datasets if the correlation between the growing model response and the new dataset is below the correlation threshold (select.MDValue). Datasets excluded based on this criterion will be appended in a separate list.
Shouwen Ma <shouwen.ma@uni-konstanz.de>
# load data
library(DoOR.data)
data(Or35a)
data(door_global_normalization_weights)
data(door_response_range)
# merge all existing data sets for Or35a into a consensus model response
model_response_Or35a <- model_response(Or35a, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.