findID: Find ID when given an accession number

Description Usage Arguments Value Author(s) See Also Examples

View source: R/maSearch.R

Description

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

Usage

1
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

1
2
3
data(swirl)
findID("fb24a09", swirl, ID="ID")
findID("geno1", swirl)

Example output

Loading required package: limma
[1] 101
 [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

marray documentation built on Nov. 8, 2020, 6:46 p.m.