filterGenes | R Documentation |
Filter genes to keep (the default) or to out according to genomic features. For example, filter genes that are either on chromosome 7 or chromosome arm 2p.
filterGenes(x, value, attribute, out = F)
x |
a character vector of gene names or a matrix with gene row names. |
value |
a value or a list of values that are the genome features to filter |
attribute |
the name(s) of the genome feature(s) in question. One of 'chr', 'arm'. |
out |
boolean value indicating whether the filtered genes should be thrown rather than kept. Default: F |
filtered vector or a matrix with filtered rows, depending on class of <x>.
m = useData()
filterGenes(m, 7, 'chr')
filterGenes(rownames(m), 7, 'chr')
filterGenes(m, list(7, c('2p', '3q')), c('chr', 'arm'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.