View source: R/model_response_seq.R
model_response_seq | R Documentation |
generates a model response and merge data in given sequence
model_response_seq(data, SEQ,
overlapValues = door_default_values("overlapValues"),
select.MDValue = door_default_values("select.MDValue"), strict = TRUE,
plot = FALSE)
data |
data frame, odorant response data, e.g. Or22a. |
SEQ |
character vector, containing the names of studies indicating given sequence for merging data. |
overlapValues |
minimum overlap between studies to perfom a merge |
select.MDValue |
the minimum mean distance between studies to perfom a merge |
strict |
logical, if TRUE merging a permutation will be stopped once a single merge has a mean distance above select.MDValue |
plot |
logical |
# model_response_seq.R: #################
# merges studies in a given sequence (determined by the user or by exhaustive enumeration and choosing the optimal sequence)
# input parameters: ####################
# data : data frame, odorant response data for a given receptor, e.g. Or22a # SEQ : character vector, contains the names of studies that measured this receptor in a specific order (the merging sequence)
# output is a numeric vector: response values
Shouwen Ma <shouwen.ma@uni-konstanz.de>
# load data
library(DoOR.data)
data(Or35a)
data(door_response_range)
# specify a sequence of merging
SEQ <- c("Hallem.2006.EN","Kreher.2008.EN","Hallem.2006.EN")
# perform the merging
selected_merg <- model_response_seq(Or35a, SEQ = SEQ, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.