inputs <- data.frame(chr = c("chr1", "chr1", "chr1", "chr2", "chr2"),
start = c(1, 50001, 100001, 1, 10001),
end = c(50000, 100000, 150000, 10000, 20000))
counts <- matrix(c(25, 39, 3, 10, 22, 29, 38, 5, 19, 31), nrow = 5)
colnames(counts) <- c("Control", "Treatment")
relativeCN(inputs, input.counts = counts, p.method = "perm")
Run the code above in your browser using DataLab