Last data update: 2014.03.03

R: Find ID when given an accession number
findIDR Documentation

Find ID when given an accession number

Description

Search gene ID with a vector of accession number from gene names or ID values.

Usage

findID(text, Gnames = gnames, ID = "Name")

Arguments

text

A character strings of gene names or id names.

Gnames

An objects of marrayRaw, marrayNorm, ExpressionSet or data.frame of gene names information.

ID

The column of ID corresponding to 'text'.

Value

A numeric vector the gene ID.

Author(s)

Yee Hwa (Jean) Yang

See Also

grep

Examples

data(swirl)
findID("fb24a09", swirl, ID="ID")
findID("geno1", swirl)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(marray)
Loading required package: limma
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/marray/findID.Rd_%03d_medium.png", width=480, height=480)
> ### Name: findID
> ### Title: Find ID when given an accession number
> ### Aliases: findID
> ### Keywords: manip
> 
> ### ** Examples
> 
> data(swirl)
> findID("fb24a09", swirl, ID="ID")
[1] 101
> findID("geno1", swirl)
 [1]    1    7   40   46  529  535  568  574 1057 1063 1096 1102 1585 1591 1624
[16] 1630 2113 2119 2152 2158 2641 2647 2680 2686 3169 3175 3208 3214 3697 3703
[31] 3736 3742 4225 4231 4264 4270 4753 4759 4792 4798 5281 5287 5320 5326 5809
[46] 5815 5848 5854 6337 6343 6376 6382 6865 6871 6904 6910 7393 7399 7432 7438
[61] 7921 7927 7960 7966
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>