... | ... |
@@ -223,7 +223,7 @@ dinu_to.keep <- |
223 | 223 |
}, check.head.g, region) |
224 | 224 |
} else { # no region |
225 | 225 |
pos.to.mut <- lapply(check.head.g, function(x){ |
226 |
- which(x) - 1 |
|
226 |
+ setdiff((which(x) - 1), 0) |
|
227 | 227 |
}) |
228 | 228 |
} |
229 | 229 |
|
... | ... |
@@ -238,8 +238,6 @@ dinu_to.keep <- |
238 | 238 |
aa.tmp <- aa.to.mut.unique[i] |
239 | 239 |
pos.to.mut.tmp <- pos.to.mut.i[aa.to.mut == aa.tmp] |
240 | 240 |
|
241 |
- substr(codon.list.alt[[aa.tmp]], 3, 3) |
|
242 |
- |
|
243 | 241 |
if(!check.region){ # have region |
244 | 242 |
pos.for.select <- intersect(which(seq.aa.i == aa.tmp), |
245 | 243 |
which(region.i)) |