Learn R Programming

stringgaussnet (version 1.1)

FilterEdges.ShortPathSTRINGNet: Filter edges in ShortPathSTRINGNet

Description

Function to filter on edge distance or number of intermediates in a ShortPathSTRINGNet object.

Usage

## S3 method for class 'ShortPathSTRINGNet':
FilterEdges(x, Threshold, AttributeFilter = "Distance", ...)

Arguments

x
Object of class ShortPathSTRINGNet
Threshold
Maximum threshold used to filter on edge attributes
AttributeFilter
Character indicating on which edge attribute to filter. Can be "Distance" or "NIntermediates".
...
Additional parameters. Not used here

Value

  • Object of class ShortPathSTRINGNet with filtered edges.

See Also

FilterEdges, FilterEdges.SIMoNeNet, FilterEdges.FactorNetworks

Examples

Run this code
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)

Run the code above in your browser using DataLab