@@ -65,14 +65,14 @@ pairedCNV <- function(sample.5k.doc, control.5k.doc, window.size = c("500k", "40
6565 ControlGC <- tapply(Control [index ], GCGroups , median )
6666 SampleL <- SampleGC [GCGroups ]
6767 ControlL <- ControlGC [GCGroups ]
68- data <- data.frame (chromosome = Pos [index , " chr" ], start = Pos [index , " start" ], end = Pos [index , " end" ], Sample = Sample [index ], Control = Control [index ], GClambdaSample = SampleL , GClambdaControl = ControlL , gc = GCGroups )
68+ data <- data.frame (chromosome = Pos [index , " chr" ], start = Pos [index , " start" ], end = Pos [index , " end" ], test = Sample [index ], ref = Control [index ], GClambdaTest = SampleL , GClambdaRef = ControlL , gc = GCGroups )
6969 results <- cnv.cal(data )
7070 } else {
7171 index <- apply(cbind(Sample , Control ), 1 , prod ) > 0
7272 GCGroups <- cut(GC [index ], seq(0 , 1 , 0.05 ))
7373 SampleL <- mean(Sample [index ])
7474 ControlL <- mean(Control [index ])
75- data <- data.frame (chromosome = Pos [index , " chr" ], start = Pos [index , " start" ], end = Pos [index , " end" ], Sample = Sample [index ], Control = Control [index ], GClambdaSample = SampleL , GClambdaControl = ControlL , gc = GCGroups )
75+ data <- data.frame (chromosome = Pos [index , " chr" ], start = Pos [index , " start" ], end = Pos [index , " end" ], test = Sample [index ], ref = Control [index ], GClambdaTest = SampleL , GClambdaRef = ControlL , gc = GCGroups )
7676 results <- cnv.cal(data )
7777 }
7878 }
0 commit comments