data(ExomeCount)
ExomeCount <- ExomeCount[1:500,] ## small for the purpose of this test
ref_counts <- ExomeCount$Exome2 + ExomeCount$Exome3 + ExomeCount$Exome4
## creates a simple ExomeDepth object
test_object <- new('ExomeDepth', test = ExomeCount$Exome1, reference = ref_counts)
## Call CNVs
called_object <- CallCNVs(x = test_object, transition.probability = 10^-4,
chromosome = GenomicRanges::seqnames(ExomeCount),
start = GenomicRanges::start(ExomeCount),
end = GenomicRanges::end(ExomeCount),
name = ExomeCount$names)
print(called_object@CNV.calls)
Run the code above in your browser using DataLab