Commit 1928a9fc961532f426fcb61d29fed88cbc136a53

Authored by Zhenghua Gong
1 parent 4b00e22457
Exists in master

This file is for how to run averageNetwork3.R

Showing 1 changed file with 47 additions and 0 deletions   Show diff stats
File was created 1 1. In R Console, run
2 source("document/AverageNetwork3.R")
3 document/AverageNetwork3.R is the location of your R code.
4
5 2. Run function y = sumTable(pathname = "/home/zgong001/Documents/Alarm/D1KC9v/D1KC9v BestOrders/Strus_D1KC9v.txt",
6 t = c("B-W", "AIFM1", "ATP6V1C2", "CACNA1D", "CACNB1", "CDH15", "CLDN6", "DDIT3"),
7 exfilename = "/home/zgong001/Documents/Alarm/D1KC9v/D1KC9v BestOrders/Strus_D1KC9v.xlsx")
8
9 pathname is the structures file you got from C++ code.
10 t is the column names of your data.
11 exfilename is the output file name.
12
13 After this step you get a .xlsx file. There are 2 sheets in it. One is calculated with order effect and another is without order effect. If you want use the sheet with order, you should put this sheet as the first sheet. If you want use another sheet, put it the first sheet. The first sheet will be put in the function ExeAve.
14
15 3. If you want run one structure at a time, run
16
17 y = AverageNet21 (pathname = "/Projects/Luminal/3/SS/Pairs-A3-Luminal A-A-B.xlsx",
18 str = "",
19 outfile = "/home/zgong001/Documents/dot/out.gv")
20
21 pathname is the xlsx file you get from 1
22 str is the structure like that "[6][8][5][7|6:8:5][3|7][1|7:3][4|1][2|4][0|2]"
23 outfile is output file you will use it to convert to graph, you should make sure it has extension .gv.
24
25
26 or if you want to run several structure at a time, run
27
28 y = ExeAve(epathname = "/home/zgong001/Documents/Projects/Luminal/3/SS/Pairs-A3-Luminal A-A-B.xlsx",
29 strfile = "",
30 outfile = "/home/zgong001/Documents/dot/")
31
32
33
34 epathname is the file you got from 1.
35
36 strfile is an xlsx file you got from R code I send and the sheet Name should be "Structures". It is a list of structures.
37
38 outfile is the folder where the output files will be in.
39
40 3. do the following:
41 enter the fold which the .gv file is in in the terminal.
42
43 4. execute
44
45 dot -Tpdf graph1.gv -o graph1.pdf or
46
47 dot -Tpng -Gdpi=600 v2_Stru-A1-Luminal\ A-White.gv -o v2_Stru-A1-Luminal\ A-White.gv.png