getSYMBOL: Functions to deal with Data Packages

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

View source: R/getData.R

Description

The functions documented here are intended to make it easier to map from a set of manufacturers identifiers (such as you will get from the chips etc) to other identifiers.

Usage

1
2
3
4
5
6
7
8

Arguments

x

The identifiers to be mapped (usually manufacturer)

data

The basename of the meta-data package to be used.

what

what a character string for the name of an annotation element of an annotation data package

which

which a character string in the form of MF, BP, CC, or ANY to indicated the GO categories of interest

load

A logical value indicating whether to attempt to load the required annotation data package if it isn't already loaded.

Details

Users must supply the basename of the meta-data package that they want to use to provide the mappings. The name of the meta-data package is the same as the basename.

Appropriate translations are done. In some cases such as getEG and getSYMBOL there will only be one match and a vector is returned. In other cases such as getPMID and getGO there may be multiple matches and a list is returned.

For getGOdesc x contains GO identifiers (not manufacturer identifiers) and the output is a list of GOTerms objects, if which specifies some subset of the ontologies (MF, BP or CC) then only terms for that ontology are retained.

lookUp is a general function that can be used to look up matches. All other translation functions use lookUp

A BioC annotation data package contains annotation data environments whose names are package name (e. g. hgu95av2) + element name (e. g. PMID). what must be one of the element names for the given data package.

getUniqAnnItem keeps track of the annotation elements that have one to one mappings.

Value

Either a vector or a list depending on whether multiple values per input are possible.

Author(s)

R. Gentleman

See Also

mget

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  library("hgu95av2.db")
  library("GO.db")

  data(sample.ExpressionSet)
  gN <- featureNames(sample.ExpressionSet)[100:105]
  lookUp(gN, "hgu95av2", "SYMBOL")

  # Same as lookUp for SYMBOL except the return is a vector
  getSYMBOL(gN,"hgu95av2" )
  gg <- getGO(gN, "hgu95av2")
  lookUp(gg[[2]][[1]][["GOID"]], "GO", "TERM")

  # Same as lookUp for TERM
  getGOdesc(gg[[2]][[1]][["GOID"]], "ANY")

  # For BP only
  getGOdesc(gg[[2]][[1]][["GOID"]], "BP")
  getEG(gN, "hgu95av2")
  getPMID(gN, "hgu95av2")

Example output

Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, basename, cbind, colMeans, colSums, colnames,
    dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
    intersect, is.unsorted, lapply, lengths, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
    rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which, which.max, which.min

Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: IRanges
Loading required package: S4Vectors

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: XML
Loading required package: org.Hs.eg.db



$`31339_at`
[1] "PI15"

$`31340_at`
[1] "MMP20"

$`31341_at`
[1] "KCNC3"

$`31342_at`
[1] "GALNT2"

$`31343_at`
[1] "IL1RN"

$`31344_at`
[1] "IGLV6-57"

  31339_at   31340_at   31341_at   31342_at   31343_at   31344_at 
    "PI15"    "MMP20"    "KCNC3"   "GALNT2"    "IL1RN" "IGLV6-57" 
$`GO:0006508`
GOID: GO:0006508
Term: proteolysis
Ontology: BP
Definition: The hydrolysis of proteins into smaller polypeptides and/or
    amino acids by cleavage of their peptide bonds.
Synonym: ATP-dependent proteolysis
Synonym: peptidolysis

$`GO:0006508`
GOID: GO:0006508
Term: proteolysis
Ontology: BP
Definition: The hydrolysis of proteins into smaller polypeptides and/or
    amino acids by cleavage of their peptide bonds.
Synonym: ATP-dependent proteolysis
Synonym: peptidolysis

$`GO:0006508`
GOID: GO:0006508
Term: proteolysis
Ontology: BP
Definition: The hydrolysis of proteins into smaller polypeptides and/or
    amino acids by cleavage of their peptide bonds.
Synonym: ATP-dependent proteolysis
Synonym: peptidolysis

31339_at 31340_at 31341_at 31342_at 31343_at 31344_at 
 "51050"   "9313"   "3748"   "2590"   "3557"  "28778" 
$`31339_at`
[1] "10362728" "12477932" "18029348" "18464913" "23533145" "8882727"  "8889548" 
[8] "9473672" 

$`31340_at`
 [1] "10419448" "10634581" "10922468" "10949161" "11706946" "15296943"
 [7] "15744043" "17611094" "18434575" "18714142" "19834535" "19913121"
[13] "19966041" "20379614" "20484597" "20628086" "21144496" "21466263"
[19] "21504268" "22330321" "23241590" "23355523" "23535732" "23625376"
[25] "23953525" "25805840" "26124219" "26337002" "26558991" "8921407" 
[31] "9398237" 

$`31341_at`
 [1] "10712820" "10820125" "15148151" "16382104" "16501573" "1740329" 
 [7] "18592334" "19953606" "20301317" "20301404" "21479265" "21543613"
[13] "21827913" "22289912" "23293936" "23734863" "23912307" "24116147"
[19] "25152487" "25756792" "25981959" "26849432" "26997484" "8111118" 
[25] "8917565" 

$`31342_at`
 [1] "12438318" "12477932" "12506059" "12754287" "12925576" "14702039"
 [7] "15489334" "16434399" "16710414" "18029348" "18193043" "18193044"
[13] "18562306" "18596051" "18987386" "19060906" "19148283" "19460755"
[19] "19487539" "19656773" "19913121" "19946888" "20158509" "20160193"
[25] "20167577" "20379614" "20430392" "20570916" "20571754" "20628086"
[31] "20679960" "20686565" "20864672" "21651894" "21699783" "21933382"
[37] "21990321" "22152306" "22399527" "22418572" "22916037" "22939629"
[43] "22952570" "22992780" "23117232" "23303382" "23376485" "23620142"
[49] "23894607" "23912186" "24097068" "24582885" "24711643" "24740207"
[55] "25084356" "25362349" "25416956" "25744272" "26186194" "26405973"
[61] "26493351" "26496610" "26637976" "26744084" "26817450" "28025493"
[67] "7592619"  "8663203"  "8889549"  "9295285"  "9312074"  "9394011" 
[73] "9442070"  "9592121"  "9852147" 

$`31343_at`
  [1] "10443688" "10512743" "10625660" "10673296" "10744718" "10786823"
  [7] "10860666" "10948677" "10988299" "11023482" "11027520" "11033452"
 [13] "11045853" "11093146" "11127488" "11138328" "11145836" "11171832"
 [19] "11233912" "11247888" "11264025" "11278614" "11423389" "11448121"
 [25] "11466363" "11531943" "11574262" "11600466" "11606494" "11606496"
 [31] "11640949" "11641511" "11665981" "11686217" "11762793" "11770040"
 [37] "11784248" "11793861" "11802774" "11803448" "11816697" "11840488"
 [43] "11841485" "11841553" "11846196" "11858187" "11876744" "11876758"
 [49] "11991722" "12044341" "12070246" "12082590" "12082592" "12095061"
 [55] "12102486" "12105837" "12111633" "12114904" "12115161" "12115182"
 [61] "12133467" "12136897" "12140751" "12160520" "12161036" "12161099"
 [67] "12164325" "12165808" "12220547" "12239970" "12240899" "12355453"
 [73] "12441323" "12445219" "12445604" "12452470" "12453918" "12454835"
 [79] "12468823" "12472674" "12477932" "12483741" "12496176" "12519748"
 [85] "12530098" "12547728" "12551827" "12568735" "12578333" "12593203"
 [91] "12595908" "12609525" "12618859" "12624309" "12626603" "12645941"
 [97] "12667023" "12667286" "12679428" "12686792" "12694213" "12714264"
[103] "12718576" "12722027" "12729191" "12730545" "12730860" "12746420"
[109] "12746914" "12764021" "12768436" "12775358" "12788304" "12794527"
[115] "12801479" "12820354" "12824054" "12828754" "12847695" "12854083"
[121] "12891537" "12901853" "12913327" "12919285" "12930389" "12938145"
[127] "12958619" "1385987"  "1386337"  "14504049" "14514232" "14521725"
[133] "14522096" "14533660" "14566095" "14568678" "14585879" "14586324"
[139] "14611908" "14632761" "14633943" "14634579" "14634582" "14644395"
[145] "14647192" "14652282" "14656692" "14657427" "14664464" "14669220"
[151] "14672899" "14673228" "14734209" "14735144" "14750640" "14753487"
[157] "14758530" "1479000"  "14982742" "14984963" "14986816" "14997019"
[163] "15020290" "15030461" "15036245" "15036607" "15056081" "15077300"
[169] "15082121" "15127646" "15141093" "15144571" "15170937" "15171792"
[175] "15181037" "15184943" "15188516" "15190266" "15201366" "15205567"
[181] "15223609" "15231136" "15233701" "15235132" "15236174" "15241561"
[187] "15247172" "15250242" "15266130" "15270852" "15286433" "15292002"
[193] "15305821" "15318032" "15325407" "15338333" "15339690" "1534997" 
[199] "15379752" "15457475" "15476179" "15485792" "15489334" "15507960"
[205] "15507961" "15512788" "15530901" "15535834" "15539764" "15540224"
[211] "15551344" "15562761" "15566952" "15570075" "15574426" "15579481"
[217] "15602586" "15610073" "15644653" "15670034" "15672946" "15679582"
[223] "15694997" "15704154" "15717635" "15723707" "15727567" "15730917"
[229] "15733644" "15766560" "15797878" "15800325" "15803022" "15830637"
[235] "15836820" "15851404" "15866604" "15878285" "15884119" "15885804"
[241] "15900570" "15923123" "15927855" "15931231" "15943888" "15954918"
[247] "15986200" "16019127" "16019233" "16025481" "16026159" "16043936"
[253] "16053468" "16078996" "16088107" "16096333" "16098232" "16100774"
[259] "16106254" "16109659" "16114018" "16115908" "16126303" "16128937"
[265] "16142351" "16159520" "16164697" "16172101" "16174285" "16183821"
[271] "16195370" "16200608" "16202742" "16217062" "16226351" "16244470"
[277] "16246569" "16263000" "16268484" "16284368" "16284379" "16301842"
[283] "16318998" "16319982" "16335952" "16344560" "16361275" "16361815"
[289] "16362796" "16369899" "16389181" "16403098" "16405550" "16409203"
[295] "16414081" "16423338" "16436009" "16454826" "16456536" "16510430"
[301] "16519819" "16538639" "16540751" "16549749" "16550552" "16553947"
[307] "16573560" "16579840" "16595248" "16596202" "16635219" "16635751"
[313] "16636119" "16637265" "16638698" "16698387" "16699452" "16741227"
[319] "16764597" "16766392" "16769128" "16777324" "16804398" "16815316"
[325] "16817913" "16820326" "16820919" "16824064" "16839849" "16842617"
[331] "16856121" "16873708" "16879054" "16885604" "16886894" "16900886"
[337] "16905295" "16906455" "16907768" "16911569" "16921503" "16937503"
[343] "16938461" "16980335" "16984283" "16985030" "17002905" "17005410"
[349] "17026469" "17034724" "17035400" "17068065" "17069782" "17074546"
[355] "17083033" "17096351" "17107994" "17113632" "17114844" "17115419"
[361] "17174563" "17176440" "17177339" "17182583" "17207379" "17222831"
[367] "17224277" "17235630" "17256873" "17257312" "17258699" "17286233"
[373] "17290743" "17292896" "17295877" "17309751" "17314118" "17324969"
[379] "17327408" "17332449" "17335371" "17348243" "17351514" "17359523"
[385] "17373677" "17380888" "17388919" "17391700" "17413037" "17443229"
[391] "17444587" "17444864" "17446060" "17448214" "17453104" "17454884"
[397] "17459217" "17482260" "17483707" "17532232" "17548705" "17572155"
[403] "17584583" "17592300" "17593860" "17596285" "17607501" "17607547"
[409] "17610660" "17611547" "17611673" "17618436" "17627763" "17640324"
[415] "17645476" "17656565" "17703412" "17716546" "17760842" "17846855"
[421] "17847930" "17867984" "17899305" "17900737" "17903994" "17907045"
[427] "17914732" "17926179" "17948066" "17959519" "17963170" "17964974"
[433] "17993728" "18008080" "18029348" "18038187" "18047563" "18052703"
[439] "18052726" "18063673" "18069935" "18086767" "18165865" "18180150"
[445] "18186699" "18239554" "18243027" "18271063" "1827201"  "18272394"
[451] "18278133" "1828071"  "18288276" "18288454" "1828896"  "18299273"
[457] "1830582"  "18321309" "18322311" "18329282" "18332090" "18333945"
[463] "18336824" "1834644"  "18354254" "18361937" "18364273" "18385937"
[469] "18386294" "18389618" "18396210" "18416755" "18423886" "18451331"
[475] "18455629" "18464913" "18468936" "18471873" "18484169" "18484691"
[481] "18494930" "18496214" "18545091" "18551993" "18565646" "18572364"
[487] "18579366" "18581280" "18583979" "18589098" "18597398" "18624935"
[493] "18632425" "18633131" "18665932" "18666137" "18676680" "18688110"
[499] "18702109" "18703194" "18715339" "18723088" "18728809" "18754838"
[505] "18761558" "18763028" "18771989" "18773331" "18779738" "18782283"
[511] "18805892" "18807132" "18808736" "18810365" "18814951" "18815552"
[517] "18818748" "18821666" "18832862" "18838927" "18853133" "18926055"
[523] "18940468" "18942754" "18987561" "19004046" "19009622" "19012493"
[529] "19013788" "19019335" "19026124" "19026700" "19030199" "19031173"
[535] "19046297" "19053923" "19056867" "19058789" "19066720" "19073760"
[541] "19074885" "19076825" "19086955" "19102413" "19111743" "19117745"
[547] "19125864" "19127455" "19129082" "19132772" "19134476" "19135625"
[553] "19141860" "19142372" "19151976" "19170196" "19191798" "19203086"
[559] "19247692" "19258032" "19258923" "19267917" "19269948" "19272615"
[565] "19280228" "19290009" "19290417" "19295440" "19322919" "19332120"
[571] "19334424" "19336370" "19336475" "19338208" "19347053" "19375283"
[577] "19399323" "19408823" "19418669" "19419456" "19427781" "19431193"
[583] "19453261" "19470040" "19489682" "19494218" "19495883" "19497711"
[589] "19505916" "19505919" "19506726" "19527514" "19544559" "19544973"
[595] "19550417" "19573080" "19574724" "19594368" "19603010" "19607807"
[601] "19618316" "19625176" "19638314" "19643686" "19644155" "19664671"
[607] "19683555" "19684156" "19692168" "19701653" "19702713" "19706048"
[613] "19711225" "19729601" "19733643" "19733878" "19764937" "19773279"
[619] "19804405" "19811432" "19811433" "19811434" "19818512" "19820020"
[625] "19822419" "19822442" "19839644" "19844779" "19850242" "19860911"
[631] "19876593" "19889076" "19892918" "19900796" "19904560" "19909950"
[637] "19913121" "19925477" "19930406" "19934104" "19948975" "20002810"
[643] "20005085" "20012999" "20032313" "20034444" "20056442" "20070880"
[649] "20080142" "20087638" "20092400" "20113413" "20131253" "20140262"
[655] "20141484" "20169140" "20175886" "20178882" "20185814" "20188863"
[661] "20192980" "20193596" "20196868" "20200422" "20207250" "20213229"
[667] "20213597" "20237151" "20237496" "20301318" "20305143" "20334849"
[673] "20335539" "20347268" "20353565" "20364673" "20378664" "20379614"
[679] "20399384" "20400062" "20412719" "20427258" "20450372" "20452482"
[685] "20453000" "20463618" "20467172" "20472930" "20482626" "20484876"
[691] "20485444" "20486195" "20495422" "20503287" "20536609" "20538031"
[697] "20551628" "20564140" "20568250" "20581747" "20592454" "20595916"
[703] "20603050" "20621920" "20626741" "20628086" "20630038" "20631624"
[709] "20650788" "20654748" "20673868" "20709104" "20734064" "20800651"
[715] "20802378" "20837746" "20839488" "20863445" "20880168" "20880945"
[721] "20934174" "20940514" "20942594" "20975573" "21035110" "21037510"
[727] "21044950" "21048327" "21049406" "21054807" "21086908" "21111725"
[733] "21174170" "21182747" "21235388" "21241861" "21243433" "21248262"
[739] "21265111" "21278303" "21357189" "2137200"  "2137201"  "2139180" 
[745] "21394384" "2143761"  "21455057" "2147937"  "21523343" "21558284"
[751] "21575667" "21591983" "21621860" "21655939" "21671260" "21768915"
[757] "21848462" "21968104" "21980458" "22027586" "22032624" "22035161"
[763] "22059992" "22127713" "22205395" "22267087" "22285242" "22286731"
[769] "22312160" "22322675" "22327782" "22370044" "22431772" "22455686"
[775] "22498095" "22537067" "22744645" "22753384" "22795294" "22829643"
[781] "22882323" "22882407" "22909148" "22939635" "22948742" "23009887"
[787] "23013217" "23014359" "23028694" "23049596" "23049925" "23053980"
[793] "23122308" "23168096" "23192617" "23195019" "23212299" "23251650"
[799] "23251661" "23308180" "23323013" "23363559" "23376485" "23388595"
[805] "23406623" "23449693" "23462747" "23472661" "23499887" "23554905"
[811] "23562526" "23577098" "23584371" "23592003" "23602199" "23602982"
[817] "23609451" "23633206" "23743874" "23749763" "23765978" "23800434"
[823] "23818854" "23849770" "23953530" "23954849" "23969696" "23991111"
[829] "23999825" "24014495" "24055697" "24162774" "24182552" "24233813"
[835] "24274595" "24322806" "24446526" "24446657" "24465880" "24490166"
[841] "24504887" "24534280" "24557417" "24563688" "24588341" "24592969"
[847] "24603878" "24611340" "24680088" "24706315" "24771848" "24819208"
[853] "24840811" "24850227" "24905619" "24918527" "24933945" "24952603"
[859] "24969107" "24998848" "25073651" "25080789" "25089931" "25124963"
[865] "25174605" "25201247" "25207923" "25223242" "25286391" "25292060"
[871] "25331947" "25422100" "25461401" "25466956" "25500257" "25530139"
[877] "25542762" "25616863" "25726324" "25738940" "25821855" "25826984"
[883] "26003199" "26046681" "26097611" "26101331" "26158606" "26186194"
[889] "26269955" "26279136" "26316104" "26330006" "26445016" "26449434"
[895] "26474296" "26487586" "26500244" "26502861" "26521731" "26555681"
[901] "26610735" "26612588" "26646252" "26654556" "26813462" "26861613"
[907] "26972847" "26994310" "27105431" "27116880" "27340011" "27717726"
[913] "7629520"  "7867645"  "8045306"  "8175703"  "8188271"  "8432529" 
[919] "8726668"  "8852605"  "8992991"  "9062194"  "9169134"  "9185517" 
[925] "9514884"  "9597123"  "9710237"  "9933103" 

$`31344_at`
 [1] "118171"   "11955599" "12477932" "1249422"  "23376485" "3923440" 
 [7] "4089539"  "6797401"  "814163"   "8951372"  "9074928" 

annotate documentation built on Nov. 8, 2020, 8:14 p.m.