private_odorant: private_odorant

View source: R/private_odorant.R

private_odorantR Documentation

private_odorant

Description

return an odorant that activates the receptor of interest exclusively

Usage

private_odorant(receptor, sensillum = FALSE,
  response_matrix = door_default_values("door_response_matrix"),
  door_mappings = door_default_values("door_mappings"),
  zero = door_default_values("zero"), nshow = 5, tag)

Arguments

receptor

character, name of a DoOR responding unit (one of ORs$Or)

sensillum

logical, restrict the search to the sensillum the receptor is expressed in?

response_matrix

DoOR response matrix, the input data to perform the search on

door_mappings

the data frame containing the mapping information

zero

character, an odorant that should be set to 0

nshow

numeric, the number of private odorants to return

tag

character, the chemical identifier to give the odorant names in (on of colnames(odor))

Value

a data.frame containing odorants and the response in the receptor of interest as well as the maximum response of the remaining receptors and their difference

Examples

# load data
library(DoOR.data)

# find a private odorant for Gr21a.Gr63a (the carbon dioxide receptor)
# private_odorant("Gr21a.Gr63a", tag = "Name")

# now find an odorant that within the ab3 sensillum specifically activates
# Or22a
private_odorant("Or22a", tag = "Name", sensillum = TRUE)


ropensci/DoOR.functions documentation built on Feb. 22, 2024, 9:44 a.m.