comparison RScript.r @ 44:07278582b735 draft

Uploaded
author davidvanzessen
date Tue, 15 Sep 2015 05:57:27 -0400
parents 2eef2c438500
children 570fef3d876f
comparison
equal deleted inserted replaced
43:2eef2c438500 44:07278582b735
179 179
180 length.filter = nchar(patient.fuzzy$Clone_Sequence) - nchar(first.clone.sequence) <= 9 180 length.filter = nchar(patient.fuzzy$Clone_Sequence) - nchar(first.clone.sequence) <= 9
181 181
182 sample.filter = patient.fuzzy[1,"Sample"] != patient.fuzzy$Sample 182 sample.filter = patient.fuzzy[1,"Sample"] != patient.fuzzy$Sample
183 183
184 match.filter = merge.filter & grepl(first.clone.sequence, patient.fuzzy$Clone_Sequence) & length.filter & sample.filter 184 #match.filter = merge.filter & grepl(first.clone.sequence, patient.fuzzy$Clone_Sequence) & length.filter & sample.filter
185 match.filter = merge.filter & grepl(first.clone.sequence, patient.fuzzy$Clone_Sequence) & sample.filter
185 186
186 if(sum(match.filter) == 2){ 187 if(sum(match.filter) == 2){
187 second.match = which(match.filter)[2] 188 second.match = which(match.filter)[2]
188 second.clone.sequence = patient.fuzzy[second.match,"Clone_Sequence"] 189 second.clone.sequence = patient.fuzzy[second.match,"Clone_Sequence"]
189 first.sample = patient.fuzzy[1,"Sample"] 190 first.sample = patient.fuzzy[1,"Sample"]