项目作者: lihongkaiyouxiang
项目描述 :
setwd("C:/Users/Li/Desktop/薛皓/可用数据") gene=read.csv("gene.csv",header=T) dim(gene) gene=data.frame(gene) clinical=read.csv("clinical.csv",header=T) dim(clinical) clinical=data.frame(clinical) col=colnames(gene) substr(col,5,5)=c("-") substr(col,8,8)=c("-") col.new=substr(col,1,12) colnames(gene)=col.new intersect=intersect(col.new,clinical[,1]) b=clinical[,1] a=col.new col.match=which(a%in%intersect) row.match=which(b%in%intersect) gene.match=gene[,col.match] clinical.match=clinical[row.match,] gene.match=t(gene.match) dim(gene.match) gene.name=gene[,1] colnames(gene.match)=gene.name data.match=cbind(gene.match,clinical.match) write.csv(data.match,file="data.match.csv") #################data analysis################### library(survival) setwd("F:/paper for path-specific effect/实际数据/胶质瘤实际数据") data.match=read.csv("data.match.csv",header=T) coef=matrix(,12042,2) ###white people#### data.match=data.match[data.match[,12049]=="WHITE",] TIME=data.match[,12069] A=as.character(TIME) TIME=as.numeric(A) STATUS=data.match[,12068] STATUS=ifelse(STATUS=="LIVING",1,0) for(i in 2:12043){ ###adjustment for age and sex########## fit=coxph(Surv(TIME,STATUS)~data.match[,i]+data.match[,12059]+data.match[,12047],data=data.match) coef[i-1,]=summary(fit)$coef[1,c(1,5)] } gene.name=colnames(data.match)[2:12043] gene.name=as.character(gene.name) coef2=cbind(coef,gene.name) coef2=data.frame(coef2) coef2[,1]=as.character(coef2[,1]) coef2[,1]=as.numeric(coef2[,1]) coef2[,2]=as.character(coef2[,2]) coef2[,2]=as.numeric(coef2[,2]) coef2[,3]=as.character(coef2[,3]) a=0.05/12042###10 a=0.05###2009 a=0.01###800 sig=coef2[coef[,2]<=0.05,] or=order(sig[,2]) sig[or,] dim(sig) sig[,3] MTOR=c( "WNT1", "TNF","TNFA", "IGF1", "SLC7A5", "SLC3A2", "MDU1", "CD98", "TNFR","TNFRSF1A", "TNFR1", "CD120A", "R","IGF1R", "CD221", "AMP", "DVL", "GRB2", "GRB10", "SLC38A9", "ATPeV1A", "ATP6A", "STRAD","STRADA", "LYK5", "LKB1","STK11", "MO25","CAB39", "AMPK","PRKAA", "REDD1","DDIT4", "GSK3B", "IKKB","IKBKB", "RSK","RPS6KA", "RSK2", "ERK","MAPK", "MEK","MAP2K1", "MEK1", "RAF","BRAF", "RAS","HRAS", "SOS", "IRS1", "S6K","RPS6KB", "TSC1", "TBC1D7", "AKT", "PDK1","PDPK1", "PTEN", "PI3K", "LAMTOR1", "FNIP1", "FLCN", "BHD", "RHEB", "IKKA","IKBKA", "CHUK", "RNF152", "SKP2", "FBXL1", "RAPTOR", "PRAS40","AKT1S1", "MTOR", "FRAP", "TOR", "MSIN1","MAPKAP1", "SIN1", "RICTOR", "GATOR1","DEPDC5", "DEPTOR", "MLST8", "GBL", "TEL2","TELO2", "TTI1", "DEPTOR", "MLST8", "GBL", "GATOR2","MIOS", "MIO", "SESN2", "CLIP1", "RSN", "GRB10", "LPIN1", "PAP1", "ATG1","ULK1", "4EBP","EIF4EBP1", "S6K","RPS6KB", "RHO","RHOA", "PKC","PRKCA", "SGK1", "EIF4E", "EIF4B" ) intersect(sig[,3],MTOR) [1] "RHO" "SLC3A2" "IKBKB" "CHUK" "CLIP1" "STK11" SLC7A5 SLC3A2 mLST8 Lipin-1 Tel2 CLIP-170 ATG1 RNF152 eIF4B GATOR1 STRAD IGF IRS1 PDK1 TSC1/6 Rheb inter=intersect(gene.name,MTOR) GBL GRB2 HRAS RHO EIF4E TELO2 SLC3A2 IGF1 TNF WNT1 IKBKB MAPKAP1 ULK1 CHUK PDPK1 LYK5 EIF4B CAB39 PDK1 CLIP1 PRKCA IRS1 TNFRSF1A GSK3B BRAF SKP2 GRB10 DDIT4 IGF1R MAP2K1 RHEB DEPDC5 TSC1 EIF4EBP1 STK11 LPIN1 PTEN RHOA SLC7A5 MLST8 GRB2 RAS RHO EIF4E TEL SLC3A2 IGF TNFR WNT IKBKB/IKKB MAPKAP1/mSin1 ULK1/ATG1 IKBKA/IKKa PDK1 STRAD eIF4B MO25 PDK1 CLIP-170 PKC IRS1 TNFR GSK3B Raf Skp2 Grb10 REDD1 R MEK Rheb GATOR1 TSC1/2 4E-BP LKB1 Lipin-1 PTEN Rho SLC7A5 time=as.character(data.match[,12069]) time=as.numeric(time) dis=function(x){ x=ifelse(x>=mean(x,na.rm=T),1,0) return(x) } where=which(colnames(data.match)%in%inter) data.match2=data.match[,where] len=length(inter) for(i in 1:len){ data.match2[,i]=dis(data.match2[,i]) } m=median(time,na.rm=T) case=data.match2[which(time>=m),] control=data.match2[which(time=abs(path)))/permu if(pp<=0.05){ power=1 }else{ power=0 } #############Bootstrao for standard error############# path.boot <- replicate(100,DF.boot(a,b,c,data1=case,data2=control),simplify=TRUE) sd.boot=sd(path.boot) path.standard=path/sd.boot return(c(path.standard,pp,power)) } ##############################################from a to b condional on c################################# a=c(1,2,3,4,5) b=c(7,8,9,10,11) c=list(c(12,13),c(),c(),c(),c(17)) data1=case data2=control PATH=path.test(a,b,c,data1=case,data2=control,permu=1000) data1=case data2=control a=c(1,2) b=c(7,8) c=list(c(12,13),c(14)) PATH=path.test(a,b,c,data1=case,data2=control,permu=1000) ##################################################real data ################################ #############SLC7A5################## a=c(39,1) b=c(1,20) c=list(c(),c()) PATH1=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH1 a=c(39,1) b=c(1,36) c=list(c(),c()) PATH2=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH2 a=c(39,1) b=c(1,13) c=list(c(),c()) PATH3=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH3 a=c(39,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH4=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH4 a=c(39,1) b=c(1,17) c=list(c(),c()) PATH5=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH5 a=c(39,6) b=c(6,20) c=list(c(),c()) PATH6=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH6 a=c(39,6) b=c(6,36) c=list(c(),c()) PATH7=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH7 a=c(39,6) b=c(6,13) c=list(c(),c()) PATH8=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH8 a=c(39,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH9=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH9 a=c(39,6) b=c(6,17) c=list(c(),c()) PATH10=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH10 #################SLC3A2###################### a=c(7,1) b=c(1,20) c=list(c(),c()) PATH11=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH11 a=c(7,1) b=c(1,36) c=list(c(),c()) PATH12=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH12 a=c(7,1) b=c(1,13) c=list(c(),c()) PATH13=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH13 a=c(7,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH14=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH14 a=c(7,1) b=c(1,17) c=list(c(),c()) PATH15=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH15 a=c(7,6) b=c(6,20) c=list(c(),c()) PATH16=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH16 a=c(7,6) b=c(6,36) c=list(c(),c()) PATH17=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH17 a=c(7,6) b=c(6,13) c=list(c(),c()) PATH18=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH18 a=c(7,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH19=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH19 a=c(7,6) b=c(6,17) c=list(c(),c()) PATH20=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH20 ##################RNF152############### a=c(26,1) b=c(1,20) c=list(c(),c()) PATH21=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH21 a=c(26,1) b=c(1,36) c=list(c(),c()) PATH22=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH22 a=c(26,1) b=c(1,13) c=list(c(),c()) PATH23=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH23 a=c(26,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH24=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH24 a=c(26,1) b=c(1,17) c=list(c(),c()) PATH25=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH25 a=c(26,6) b=c(6,20) c=list(c(),c()) PATH26=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH26 a=c(26,6) b=c(6,36) c=list(c(),c()) PATH27=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH27 a=c(26,6) b=c(6,13) c=list(c(),c()) PATH28=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH28 a=c(26,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH29=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH29 a=c(26,6) b=c(6,17) c=list(c(),c()) PATH30=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH30 ##################GATOR1############### a=c(33,1) b=c(1,20) c=list(c(),c()) PATH31=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH31 a=c(33,1) b=c(1,36) c=list(c(),c()) PATH32=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH32 a=c(33,1) b=c(1,13) c=list(c(),c()) PATH33=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH33 a=c(33,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH34=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH34 a=c(33,1) b=c(1,17) c=list(c(),c()) PATH35=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH35 a=c(33,6) b=c(6,20) c=list(c(),c()) PATH36=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH36 a=c(33,6) b=c(6,36) c=list(c(),c()) PATH37=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH37 a=c(33,6) b=c(6,13) c=list(c(),c()) PATH38=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH38 a=c(33,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH39=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH39 a=c(33,6) b=c(6,17) c=list(c(),c()) PATH40=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH40 ##################STRAD############### a=c(16,1) b=c(1,20) c=list(c(),c()) PATH41=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH41 a=c(16,1) b=c(1,36) c=list(c(),c()) PATH42=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH42 a=c(16,1) b=c(1,13) c=list(c(),c()) PATH43=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH43 a=c(16,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH44=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH44 a=c(16,1) b=c(1,17) c=list(c(),c()) PATH45=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH45 a=c(16,6) b=c(6,20) c=list(c(),c()) PATH46=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH46 a=c(16,6) b=c(6,36) c=list(c(),c()) PATH47=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH47 a=c(16,6) b=c(6,13) c=list(c(),c()) PATH48=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH48 a=c(16,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH49=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH49 a=c(16,6) b=c(6,17) c=list(c(),c()) PATH50=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH50 ##################LKB1############### a=c(35,1) b=c(1,20) c=list(c(),c()) PATH51=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH51 a=c(35,1) b=c(1,36) c=list(c(),c()) PATH52=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH52 a=c(35,1) b=c(1,13) c=list(c(),c()) PATH53=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH53 a=c(35,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH54=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH54 a=c(35,1) b=c(1,17) c=list(c(),c()) PATH55=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH55 a=c(35,6) b=c(6,20) c=list(c(),c()) PATH56=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH56 a=c(35,6) b=c(6,36) c=list(c(),c()) PATH57=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH57 a=c(35,6) b=c(6,13) c=list(c(),c()) PATH58=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH58 a=c(35,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH59=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH59 a=c(35,6) b=c(6,17) c=list(c(),c()) PATH60=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH60 ##################MO25############### a=c(18,1) b=c(1,20) c=list(c(),c()) PATH61=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH61 a=c(18,1) b=c(1,36) c=list(c(),c()) PATH62=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH62 a=c(18,1) b=c(1,13) c=list(c(),c()) PATH63=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH63 a=c(18,1,34) b=c(1,34,35) c=list(c(),c(),c()) PATH64=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH64 a=c(18,1) b=c(1,17) c=list(c(),c()) PATH65=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH65 a=c(18,6) b=c(6,20) c=list(c(),c()) PATH66=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH66 a=c(18,6) b=c(6,36) c=list(c(),c()) PATH67=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH67 a=c(18,6) b=c(6,13) c=list(c(),c()) PATH68=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH68 a=c(18,6,34) b=c(6,34,35) c=list(c(),c(),c()) PATH69=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH69 a=c(18,6) b=c(6,17) c=list(c(),c()) PATH70=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH70 ##################REDD1############### a=c(28,33,31,1) b=c(33,31,1,20) c=list(c(),c(),c(),c()) PATH71=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH71 a=c(28,33,31,1) b=c(33,31,1,36) c=list(c(),c(),c(),c()) PATH72=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH72 a=c(28,33,31,1) b=c(33,31,1,13) c=list(c(),c(),c(),c()) PATH73=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH73 a=c(28,33,31,1,34) b=c(33,31,1,34,5) c=list(c(),c(),c(),c(),c()) PATH74=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH74 a=c(28,33,31,1) b=c(33,31,1,17) c=list(c(),c(),c(),c()) PATH75=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH75 a=c(28,33,31,6) b=c(33,31,6,20) c=list(c(),c(),c(),c()) PATH76=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH76 a=c(28,33,31,6) b=c(33,31,6,36) c=list(c(),c(),c(),c()) PATH77=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH77 a=c(28,33,31,6) b=c(33,31,6,13) c=list(c(),c(),c(),c()) PATH78=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH78 a=c(28,33,31,6,34) b=c(33,31,6,34,5) c=list(c(),c(),c(),c(),c()) PATH79=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH79 a=c(28,33,31,6) b=c(33,31,6,17) c=list(c(),c(),c(),c()) PATH80=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH80 ##################Wnt############### a=c(10,24,33,31,1) b=c(24,33,31,1,20) c=list(c(),c(),c(),c(),c()) PATH81=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH81 a=c(10,24,33,31,1) b=c(24,33,31,1,36) c=list(c(),c(),c(),c(),c()) PATH82=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH82 a=c(10,24,33,31,1) b=c(24,33,31,1,13) c=list(c(),c(),c(),c(),c()) PATH83=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH83 a=c(10,24,33,31,1.34) b=c(24,33,31,1,34,5) c=list(c(),c(),c(),c(),c(),c()) PATH84=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH84 a=c(10,24,33,31,1) b=c(24,33,31,1,17) c=list(c(),c(),c(),c(),c()) PATH85=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH85 a=c(10,24,33,31,6) b=c(24,33,31,6,20) c=list(c(),c(),c(),c(),c()) PATH86=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH86 a=c(10,24,33,31,6) b=c(24,33,31,6,36) c=list(c(),c(),c(),c(),c()) PATH87=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH87 a=c(10,24,33,31,6) b=c(24,33,31,6,13) c=list(c(),c(),c(),c(),c()) PATH88=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH88 a=c(10,24,33,31,6.34) b=c(24,33,31,6,34,5) c=list(c(),c(),c(),c(),c(),c()) PATH89=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH89 a=c(10,24,33,31,6) b=c(24,33,31,6,17) c=list(c(),c(),c(),c(),c()) PATH90=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH90 ##################TNF############### path=c(9,23,11,33,31,1,20) a=path[1:6] b=path[2:7] c=list(c(),c(),c(),c(),c(),c()) PATH91=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH91 path=c(9,23,11,33,31,1,36) a=path[1:6] b=path[2:7] c=list(c(),c(),c(),c(),c(),c()) PATH92=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH92 path=c(9,23,11,33,31,1,13) a=path[1:6] b=path[2:7] c=list(c(),c(),c(),c(),c(),c()) PATH93=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH93 path=c(9,23,11,33,31,1,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH94=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH94 path=c(9,23,11,33,31,1,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH95=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH95 path=c(9,23,11,33,31,6,20) a=path[1:6] b=path[2:7] c=list(c(),c(),c(),c(),c(),c()) PATH96=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH96 path=c(9,23,11,33,31,6,36) a=path[1:6] b=path[2:7] c=list(c(),c(),c(),c(),c(),c()) PATH97=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH97 path=c(9,23,11,33,31,6,13) a=path[1:6] b=path[2:7] c=list(c(),c(),c(),c(),c(),c()) PATH98=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH98 path=c(9,23,11,33,31,6,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH99=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH99 path=c(9,23,11,33,31,6,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH100=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH100 ##################IGF##################### path=c(8,29,2,3,25,30,33,31,1,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH101=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH101 path=c(8,29,2,3,25,30,33,31,1,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH102=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH102 path=c(8,29,2,3,25,30,33,31,1,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH103=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH103 path=c(8,29,2,3,25,30,33,31,1,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH104=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH104 path=c(8,29,2,3,25,30,33,31,1,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH105=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH105 path=c(8,29,2,3,25,30,33,31,6,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH106=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH106 path=c(8,29,2,3,25,30,33,31,6,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH107=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH107 path=c(8,29,2,3,25,30,33,31,6,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH108=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH108 path=c(8,29,2,3,25,30,33,31,6,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH109=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH109 path=c(8,29,2,3,25,30,33,31,6,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH110=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH110 ####################IGF SECOND######################### path=c(8,29,22,15,33,31,1,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH111=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH111 path=c(8,29,22,15,33,31,1,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH112=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH112 path=c(8,29,22,15,33,31,1,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH113=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH113 path=c(8,29,22,15,33,31,1,13,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH114=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH114 path=c(8,29,22,15,33,31,1,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH115=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH115 path=c(8,29,22,15,33,31,6,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH116=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH116 path=c(8,29,22,15,33,31,6,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH117=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH117 path=c(8,29,22,15,33,31,6,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH118=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH118 path=c(8,29,22,15,33,31,6,13,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c(),c(),c()) PATH119=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH119 path=c(8,29,22,15,33,31,6,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH120=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH120 ####################IGF THIRD######################### path=c(8,29,22,15,1,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH121=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH121 path=c(8,29,22,15,1,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH122=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH122 path=c(8,29,22,15,1,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH123=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH123 path=c(8,29,22,15,1,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH124=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH124 path=c(8,29,22,15,1,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH125=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH125 path=c(8,29,22,15,6,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH126=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH126 path=c(8,29,22,15,6,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH127=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH127 path=c(8,29,22,15,6,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH128=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH128 path=c(8,29,22,15,6,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH129=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH129 path=c(8,29,22,15,6,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c()) PATH130=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH130 ####################IGF Fourth######################### path=c(8,29,22,15,14,1,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH131=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH131 path=c(8,29,22,15,14,1,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH132=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH132 path=c(8,29,22,15,14,1,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH133=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH133 path=c(8,29,22,15,14,1,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH134=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH134 path=c(8,29,22,15,14,1,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH135=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH135 path=c(8,29,22,15,14,6,20) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH136=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH136 path=c(8,29,22,15,14,6,36) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH137=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH137 path=c(8,29,22,15,14,6,13) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH138=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH138 path=c(8,29,22,15,14,6,34,5) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH139=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH139 path=c(8,29,22,15,14,6,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH140=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH140 ####################IGF Fifth######################### path=c(8,29,22,15,14,12,1,4) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH141=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH141 path=c(8,29,22,15,14,12,6,4) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH142=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH142 path=c(8,29,22,15,14,12,1,21) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH143=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH143 path=c(8,29,22,15,14,12,6,21) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c(),c()) PATH144=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH144 path=c(8,29,22,15,14,12,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH145=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH145 path=c(8,29,22,1,4) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH146=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH146 path=c(8,29,22,1,21) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH147=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH147 path=c(8,29,22,6,4) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH148=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH148 path=c(8,29,22,6,21) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c(),c(),c(),c()) PATH149=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH149 path=c(8,29,22,17) n=length(path) a=path[1:(n-1)] b=path[2:n] c=list(c(),c(),c()) PATH150=path.test(a,b,c,data1=case,data2=control,permu=1000) PATH150 PATH=rbind( PATH1,PATH2,PATH3,PATH4,PATH5,PATH6,PATH7,PATH8,PATH9,PATH10, PATH11,PATH12,PATH13,PATH14,PATH15,PATH16,PATH17,PATH18,PATH19,PATH20, PATH21,PATH22,PATH23,PATH24,PATH25,PATH26,PATH27,PATH28,PATH29,PATH30, PATH31,PATH32,PATH33,PATH34,PATH35,PATH36,PATH37,PATH38,PATH39,PATH40, PATH41,PATH42,PATH43,PATH44,PATH45,PATH46,PATH47,PATH48,PATH49,PATH50, PATH51,PATH52,PATH53,PATH54,PATH55,PATH56,PATH57,PATH58,PATH59,PATH60, PATH61,PATH62,PATH63,PATH64,PATH65,PATH66,PATH67,PATH68,PATH69,PATH70, PATH71,PATH72,PATH73,PATH74,PATH75,PATH76,PATH77,PATH78,PATH79,PATH80, PATH81,PATH82,PATH83,PATH84,PATH85,PATH86,PATH87,PATH88,PATH89,PATH90, PATH91,PATH92,PATH93,PATH94,PATH95,PATH96,PATH97,PATH98,PATH99,PATH100, PATH101,PATH102,PATH103,PATH104,PATH105,PATH106,PATH107,PATH108,PATH109,PATH110, PATH111,PATH112,PATH113,PATH114,PATH115,PATH116,PATH117,PATH118,PATH119,PATH120, PATH121,PATH122,PATH123,PATH124,PATH125,PATH126,PATH127,PATH128,PATH129,PATH130, PATH131,PATH132,PATH133,PATH134,PATH135,PATH136,PATH137,PATH138,PATH139,PATH140, PATH141,PATH142,PATH143,PATH144,PATH145,PATH146,PATH147,PATH148,PATH149,PATH150 ) write.csv(PATH, file = "PATH.csv", sep = ",")
高级语言:
项目地址: git://github.com/lihongkaiyouxiang/source-code.git