Learn R Programming

stringgaussnet (version 1.1)

FilterEdges.FactorNetworks: Filter edges in FactorNetworks

Description

Function to filter on edge attribute in an FactorNetworks object.

Usage

## S3 method for class 'FactorNetworks':
FilterEdges(x, Threshold, Superior = T, AttributeFilter = "Rho",
	Absolute = T, ...)

Arguments

x
An object of class FactorNetworks
Threshold
Threshold used to filter on edge attribute
Superior
Boolean variable indicating whether values must be superior or inferior to the threshold
AttributeFilter
Character indicating on which edge attribute to filter
Absolute
Boolean indicating whether the attribute must transformed into absolute values before filtering
...
Additional parameters. Not used here

Value

  • Object of class FactorNetworks with filtered edges

See Also

FactorNetworks, FactorNetworks.default, print.FactorNetworks

Examples

Run this code
# data(SpADataExpression)
# data(SpADEGenes)
# data(SpASamples)
# SpAData<-DEGeneExpr(t(SpADataExpression),SpADEGenes)

# StatusFactor<-paste(SpASamples$status,SpASamples$b27,sep=".")
# names(StatusFactor)=SpASamples$chipnum

# NodesForSIMoNe<-rownames(SpADEGenes)[1:17]
# GaussianSpAData<-DEGeneExpr(t(SpADataExpression[NodesForSIMoNe,]),SpADEGenes[NodesForSIMoNe,])

# GlobalSIMoNeNetNF<-getSIMoNeNet(GaussianSpAData)
# GlobalSIMoNeNet<-FilterEdges(GlobalSIMoNeNetNF,0.4)

# StatusFactorSIMoNeNet<-FactorNetworks(GaussianSpAData,StatusFactor,"SIMoNe")
# StatusFactorSIMoNeNet<-FilterEdges(StatusFactorSIMoNeNet,0.4)

Run the code above in your browser using DataLab