Description Usage Arguments Examples
This function allows you to calculate the in-degree and out-degree of genes that have a certain feature (e.g. transcription factors or tumor suppressor genes).
1 2 3 4 5 6 7 8 9 10 |
x |
Graph object. |
genes |
Geneset with features. |
features |
Features you want to analyze. Default: all boolean features. |
vertices |
Vertices you want to analyze. Default: all vertices. |
in.degree |
Whether or not to analyze in-degree (optional). Default: TRUE. |
out.degree |
Whether or not to analyze out-degree (optional). Default: TRUE. |
loops |
Whether or not to consider loops (optional). Default: FALSE. |
normalized |
Whether or not to normalize degrees (optional). Default: FALSE. |
1 2 3 4 | mtx <- feature.degree(x, genes)
mtx <- feature.degree(x, genes, features=c('tf', 'target', 'tumor.suppressor'))
mtx <- feature.degree(x, genes, features='tumor.suppressor', in.degree=TRUE, out.degree=FALSE)
mtx <- feature.degree(x, genes, features='essential', vertices=c('ADRB1', 'HSF2'), normalized=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.