map_receptor: map_receptor

View source: R/map_receptor.R

map_receptorR Documentation

map_receptor

Description

Identifying the source of unknown response data by correlating it agains all DoOR responding units.

Usage

map_receptor(data,
  response_matrix = door_default_values("door_response_matrix"), sub,
  threshold.p, threshold.cor, nshow)

Arguments

data

data frame, containing two columns, one called "odorants" and one "responses" providing InChIKeys and odorant responses respectively.

response_matrix

output is a numeric vector that contains the Pearson Correlation Coefficient between given data and selected consensus data in

sub

character, a subset of responding units returned response matrix

threshold.p

numeric, a p-value threshold, only correlations below will be returned

threshold.cor

numeric, a correlation-coefficient threshold, only correlations above will be returned

nshow

numeric, if defined, only this number of results will be

Author(s)

Shouwen Ma <shouwen.ma@uni-konstanz.de>

Daniel Münch <daniel.muench@uni-konstanz.de>

Examples

# load data
load_door_data(nointeraction = TRUE)

# pick example data
data <- data.frame(odorants  = Or22a$InChIKey,
                   responses = Or22a$Hallem.2004.EN)
data <- na.omit(data)

# find the corresponding receptor / responding unit
map_receptor(data = data)

Dahaniel/DoOR.functions documentation built on Feb. 20, 2024, 7:04 p.m.