View source: R/get_normalized_responses.R
get_normalized_responses | R Documentation |
given a chemical, get normalised receptor responses from all studies in the database.
get_normalized_responses(odors, zero = door_default_values("zero"),
response_matrix = door_default_values("door_response_matrix"), round = 3,
na.rm = FALSE)
odors |
character vector, one or more odors provided as InChIKey. |
zero |
InChIKey of background that should be set to zero. The default is "SFR", i.e. the spontaneous firing rate. |
response_matrix |
a data frame, as e.g. "door_response_matrix" that is
loaded by |
round |
numeric, round to this amount of digits, set to NA if you do not want to round |
na.rm |
logical, remove NAs? |
Daniel Münch daniel.muench@uni-konstanz.de
model_response
,create_door_database
# load data
library(DoOR.data)
data(door_response_matrix)
# define a list of odorants
odors <- c("MLFHJEHSLIIPHL-UHFFFAOYSA-N",
"OBNCKNCVKJNDBV-UHFFFAOYSA-N",
"IKHGUXGNUITLKF-UHFFFAOYSA-N")
# get the normalized responses for these odorants
result <- get_normalized_responses(odors,
response_matrix = door_response_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.