get_vertex_W: get_vertex_W

View source: R/get_vertex_W.R

get_vertex_WR Documentation

get_vertex_W

Description

get_vertex_W uses the mutation data and the graph constructed from network data to calculate the weight of the hypergraph output of get_vertex_W is the vertex weight of the hypergraph

Usage

get_vertex_W(Mutation, graph)

Arguments

Mutation

the mutation data, rows represent genes and columns represent samples

graph

the graph constructed from network data

Examples


###the example mutation data is a Lung Squamous Cell Carcinoma Dataset from TCGA
###the example graph is constructed from the HumanNet
###We will show how to get the vertex weight of the hypergraph

library(DriverRWH)

#load the mutation data
data(luscExampleMutation)

#load the network data
data(HumanNet)

#get the graph from HumanNet
graph=graph.data.frame(HumanNet)

#or from your own network
#network_file=""
#string=read.table(file=network_file,header=TRUE)
#graph=graph.data.frame(string)

#get the vertex weight of the hypergraph
W=get_vertex_W(Mutation=luscExampleMutation,graph=graph)


ShandongUniversityZhanglab/DriverRWH documentation built on May 10, 2022, 2:47 a.m.