ilarCodeDescription: Get the name of a lab from it's ILAR code

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/settings.R

Description

This function returns the name of a lab based on its ILAR code, see http://dels.nas.edu/global/ilar/Lab-Codes. This function works only with a very limited set of ILAR codes defined for IMPC centers. A NULL value will be returned for all unknown centers.

Usage

1

Arguments

ilarCode

ILAR code of an IMPC centre, or a list of ILAR codes, or a vector of ILAR codes. The code (or codes) will be looked in an internal database of ILAR codes, which contains labs from IMPC centers only. The codes are case sensitive.

Details

ILAR codes of IMPC centers are stored in an internal database (environment serving as a hash table), which is used to lookup the results of this function. The ILAR codes are case sensiteve. The function can handle a single code as well as a list (or vector) of codes.

Value

An object of class character containing a human readable name of the lab corresponding to this ILAR code. If a list (or vector) of multiple codes is submitted, then a vector of multiple descriptions will be returned. The length of the output will match the length of the input.

Author(s)

Josef Spidlen

See Also

listKnownIlarCodes

Examples

1
2
3
4
    ## Checking internal dictionary
    ## Codes are case sensitive
    ilarCodeDescription("H")
    ilarCodeDescription(listKnownIlarCodes())

Example output

[1] "MRC Harwell"
 [1] "Baylor College of Medicine"                 
 [2] "Helmholtz Zentrum Munchen"                  
 [3] "MRC Harwell"                                
 [4] "Institut Clinique de la Souris"             
 [5] "The Jackson Laboratory"                     
 [6] "RIKEN Tsukuba Institute, BioResource Center"
 [7] "Nanjing University"                         
 [8] "BC Cancer Agency"                           
 [9] "The Toronto Centre for Phenogenomics"       
[10] "University of California, Davis"            
[11] "Wellcome Trust Sanger Institute"            

FlowRepositoryR documentation built on Nov. 8, 2020, 7:26 p.m.