Description Usage Arguments Value Author(s) Examples
This function offers the possibility to search genes (character pattern) contained in a character vector separted by a given separator (semi-colon by default).
1 | searchGene(x, gene, sep = ";", type = "logical")
|
x |
A character vector. |
gene |
A character vector, the gene (character pattern) of interest. |
sep |
A character vector, the separator between genes (by default, |
type |
A character indicating the type of values returned by the function. By default the function return a logical vector ( |
The functiuon returns a vector of logical (type="logical"
), numeric (type="numeric"
) or character (type="value"
) depending of the selected type.
Pierre Bady
1 2 3 4 5 6 | {
genelist <-c("MGMT","MGMT;MGMT","MGMT;EGFR","HOXA1;EGFR;HOXA2","EGFR;MGMT",NA)
searchGene(genelist,"EGFR",sep=";",type="logical")
searchGene(genelist,"EGFR",sep=";",type="numeric")
searchGene(genelist,"EGFR",sep=";",type="value")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.