Description Usage Arguments Details Value See Also Examples
View source: R/selectInteractionTypes.R
This function allows to select specific interaction sources in an object of class STRINGNet, for example coexpression or experimental. This is also possible to filter on confidence score with this function.
1 | selectInteractionTypes(Network, InteractionTypes = "All", Threshold = 0)
|
Network |
Object of class STRINGNet |
InteractionTypes |
Character vector indicating which interaction sources you are looking for. See details for possible values. If "All", no selection is made and only filtering on Threshold is processed. |
Threshold |
Numeric. Minimum threshold of confident score for selecting edges. |
Interaction sources can be coexpression, cooccurence, experimental, knowledge, neighborhood or textmining. Search for STRING DB help page to know what mean those interaction sources.
A new object of class STRINGNet after edge filtering.
STRINGNet
, STRINGNet.default
, getSTRINGNet
, print.STRINGNet
, summary.STRINGNet
, export.STRINGNet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(SpADataExpression)
data(SpADEGenes)
SpAData<-DEGeneExpr(t(SpADataExpression),SpADEGenes)
# SpASTRINGNet<-getSTRINGNet(SpAData)
# Can be longer.
# SpASTRINGNet<-getSTRINGNet(SpAData,AddAnnotations=FALSE)
# print(SpASTRINGNet,5)
# summary(SpASTRINGNet)
# PPISpASTRINGNet<-selectInteractionTypes(SpASTRINGNet,
# c("coexpression","experimental","knowledge"),0.9)
# shortPathSpANet<-getShortestPaths(PPISpASTRINGNet)
# shortPathSpANet<-FilterEdges(shortPathSpANet,2.2)
# print(shortPathSpANet,5)
# summary(shortPathSpANet)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.