...
|
...
|
@@ -472,12 +472,20 @@ RGtoXY = function(RG, chipType, verbose=TRUE) {
|
472
|
472
|
XY@assayData$Y[1:nsnps,] = 0
|
473
|
473
|
XY@assayData$zero[1:nsnps,] = 0
|
474
|
474
|
|
|
475
|
+ open(RG@assayData$R)
|
|
476
|
+ open(RG@assayData$G)
|
|
477
|
+ open(RG@assayData$zero)
|
|
478
|
+
|
475
|
479
|
# First sort out Infinium II SNPs, X -> R (allele A) and Y -> G (allele B) from the same probe
|
476
|
480
|
XY@assayData$X[!is.na(aord),] = exprs(channel(RG, "R"))[aord[!is.na(aord)],] # mostly red
|
477
|
481
|
XY@assayData$Y[!is.na(aord),] = exprs(channel(RG, "G"))[aord[!is.na(aord)],] # mostly green
|
478
|
482
|
XY@assayData$zero[!is.na(aord),] = exprs(channel(RG, "zero"))[aord[!is.na(aord)],] # mostly green
|
479
|
483
|
gc()
|
480
|
484
|
|
|
485
|
+ close(RG@assayData$R)
|
|
486
|
+ close(RG@assayData$G)
|
|
487
|
+ close(RG@assayData$zero)
|
|
488
|
+
|
481
|
489
|
## Warning - not 100% sure that the code below is correct - could be more complicated than this
|
482
|
490
|
|
483
|
491
|
# Next Infinium I where X -> R from allele A probe and Y -> R from allele B probe
|