comparison C and D finder/commonality-working feb 21 20.R @ 3:6eacb089b655 draft

Uploaded
author jfb
date Mon, 24 Feb 2020 17:54:14 -0500
parents a20e7cc7e0c9
children
comparison
equal deleted inserted replaced
2:a20e7cc7e0c9 3:6eacb089b655
1 FirstSubstrateSet<- read.csv("r1sub.csv", stringsAsFactors=FALSE, header = FALSE) 1 FirstSubstrateSet<- read.csv("input1.csv", stringsAsFactors=FALSE, header = FALSE)
2 Firstsubbackfreq<- read.csv("r1sbf.csv", header=FALSE, stringsAsFactors=FALSE) 2 Firstsubbackfreq<- read.csv("input2.csv", header=FALSE, stringsAsFactors=FALSE)
3 SubstrateHeader<-FirstSubstrateSet[1,] 3 SubstrateHeader<-FirstSubstrateSet[1,]
4 FirstSubstrateSet<- FirstSubstrateSet[2:nrow(FirstSubstrateSet),] 4 FirstSubstrateSet<- FirstSubstrateSet[2:nrow(FirstSubstrateSet),]
5 if(nrow(Firstsubbackfreq[1,]>35)){ 5 if(nrow(Firstsubbackfreq[1,]>35)){
6 if(grepl(pattern = "Properties", x=Firstsubbackfreq[1,22])){ 6 if(grepl(pattern = "Properties", x=Firstsubbackfreq[1,22])){
7 Firstsubbackfreq<-t(Firstsubbackfreq) 7 Firstsubbackfreq<-t(Firstsubbackfreq)
8 } 8 }
9 } 9 }
10 10
11 11
12 SecondSubstrateSet<- read.csv("r1sub.csv", stringsAsFactors=FALSE, header = FALSE) 12 SecondSubstrateSet<- read.csv("input3.csv", stringsAsFactors=FALSE, header = FALSE)
13 Secondsubbackfreq<- read.csv("r1sbf.csv", header=FALSE, stringsAsFactors=FALSE) 13 Secondsubbackfreq<- read.csv("input4.csv", header=FALSE, stringsAsFactors=FALSE)
14 SecondSubstrateSet<- SecondSubstrateSet[2:nrow(SecondSubstrateSet),] 14 SecondSubstrateSet<- SecondSubstrateSet[2:nrow(SecondSubstrateSet),]
15 if(nrow(Secondsubbackfreq[1,]>35)){ 15 if(nrow(Secondsubbackfreq[1,]>35)){
16 if(grepl(pattern = "Properties", x=Secondsubbackfreq[1,22])){ 16 if(grepl(pattern = "Properties", x=Secondsubbackfreq[1,22])){
17 Secondsubbackfreq<-t(Secondsubbackfreq) 17 Secondsubbackfreq<-t(Secondsubbackfreq)
18 } 18 }
19 } 19 }
20 20
21 21
22 ThirdSubstrateSet<- read.csv("r2sub.csv", stringsAsFactors=FALSE, header = FALSE) 22 ThirdSubstrateSet<- read.csv("input5.csv", stringsAsFactors=FALSE, header = FALSE)
23 Thirdsubbackfreq<- read.csv("r2sbf.csv", header=FALSE, stringsAsFactors=FALSE) 23 Thirdsubbackfreq<- read.csv("input6.csv", header=FALSE, stringsAsFactors=FALSE)
24 ThirdSubstrateSet<- ThirdSubstrateSet[2:nrow(ThirdSubstrateSet),] 24 ThirdSubstrateSet<- ThirdSubstrateSet[2:nrow(ThirdSubstrateSet),]
25 if(nrow(Thirdsubbackfreq[1,]>35)){ 25 if(nrow(Thirdsubbackfreq[1,]>35)){
26 if(grepl(pattern = "Properties", x=Thirdsubbackfreq[1,22])){ 26 if(grepl(pattern = "Properties", x=Thirdsubbackfreq[1,22])){
27 Thirdsubbackfreq<-t(Thirdsubbackfreq) 27 Thirdsubbackfreq<-t(Thirdsubbackfreq)
28 } 28 }