features_greater_than | R Documentation |
Sometimes I am asked how many genes have >= x counts. Well, here you go.
features_greater_than(data, cutoff = 1, hard = TRUE, inverse = FALSE)
data |
Dataframe/exprs/matrix/whatever of counts. |
cutoff |
Minimum number of counts. |
hard |
Greater-than is hard, greater-than-equals is not. |
inverse |
when inverted, this provides features less than the cutoff. |
Untested as of 2016-12-01 but used with Lucia. I think it would be interesting to iterate this function from small to large cutoffs and plot how the number of kept genes decreases.
A list of two elements, the first comprised of the number of genes greater than the cutoff, the second with the identities of said genes.
[Biobase]
## Not run:
features <- features_greater_than(expt)
fewer <- features_greater_than(expt, cutoff = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.