Description Usage Arguments Details Value Methods (by generic) Examples
The S4 generic idtype
automatically determines the type
of gene/feature identifiers stored in objects, based on a combination of
regular expression patterns and test functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | idtype(object, ...)
## S4 method for signature 'missing'
idtype(object, def = FALSE)
## S4 method for signature 'matrix'
idtype(object, ...)
## S4 method for signature ''NULL''
idtype(object, ...)
## S4 method for signature 'vector'
idtype(object, each = FALSE, limit = NULL, no.match = "")
## S4 method for signature 'ExpressionSet'
idtype(object, ...)
## S4 method for signature 'ProbeAnnDbBimap'
idtype(object, limit = 500L, ...)
## S4 method for signature 'ChipDb'
idtype(object, limit = 500L, ...)
## S4 method for signature 'AnnDbBimap'
idtype(object, limit = 500L, ...)
## S4 method for signature 'list'
idtype(object, ...)
## S4 method for signature ''NULL''
idtype(object, ...)
|
object |
an R object that contains the gene identifiers whose type is to be determined. |
... |
extra argument to allow extension, generally passed down to
|
def |
a logical or a subsetting vector, used when |
each |
logical indicating whether the type of each element should be
returned ( |
limit |
specification for limiting which elements are used to
detect the type of identifiers.
If a single numeric, then only the first |
no.match |
character string that specifies the string to use when the type cannot be determined. The IDs can be either:
This function is able to identify the following ID types using regular expression patterns or dedicated function:
|
It uses a heuristic based on a set of regular expressions and functions that uniquely match most common types of identifiers, such as Unigene, Entrez gene, Affymetrix probe ids, Illumina probe ids, etc..
a single character string (possibly empty) if each=FALSE
(default)
or a character vector of the same "length" as object
otherwise.
idtype(object = missing)
: Method for when idtype
is called with its first argument missing,
in which case it returns all or a subset of the known type names as a character
vector, or optionally as a list that contains their definition, i.e. a regular
expression or a matching function.
idtype(object = matrix)
: Detects the type of identifiers used in the row names of a matrix.
idtype(object = NULL)
: Dummy method – defined for convenience – that returns ''
idtype(object = vector)
: This is the workhorse method that determine the type of ids contained in
a character vector.
idtype(object = ExpressionSet)
: Detects the type of identifiers used in the feature names of an ExpressionSet
object.
idtype(object = ProbeAnnDbBimap)
: Detects the type of the primary identifiers of a probe annotation bimap object.
To speedup the identification, only the first 500 probes are used by default,
since the IDs are very likely to have been curated and to be of the same type.
This can be changed using argument limit
.
idtype(object = ChipDb)
: Detects the type of the identifiers of a chip annotation object.
To speedup the identification, only the first 500 probes are used by default,
since the IDs are very likely to have been curated and to be of the same type.
This can be changed using argument limit
.
idtype(object = AnnDbBimap)
: Detects the type of the identifiers of an organism annotation object.
To speedup the identification, only the first 500 probes are used by default,
since the IDs are very likely to have been curated and to be of the same type.
This can be changed using argument limit
.
idtype(object = list)
: Detects the type of all elements in a list, but provides the option of
detecting the type of each element separately.
idtype(object = NULL)
: Dummy method – defined for convenience – that returns ''
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # all known types
idtype()
# with their definitions
idtype(def=TRUE)
idtype(def='ENTREZID')
idtype(def=c('ENTREZID', 'ENSEMBLTRANS'))
idtype("12345_at")
idtype(c("12345_at", "23232_at", "555_x_at"))
# mixed types
ids <- c("12345_at", "23232_at", "Hs.1213")
idtype(ids) # not detected
idtype(ids, each=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.