Closed HenrikBengtsson closed 9 years ago
Solving Issue #29, seem to have solved this issue, e.g.
> library(PSCBS)
> data <- readRDS("PSCBS_issue28.rds")
> segs <- data.frame(chromosome=1L, start=c(-Inf, 121049953), end=c(121049952, 142517941))
> fit <- segmentByCBS(data, knownSegments=segs)
> fit
sampleName chromosome start end nbrOfLoci mean
1 <NA> 1 464423 3004886 34 -0.5345
2 <NA> 1 3004886 119434332 755 -0.2217
3 <NA> 1 119434332 121049952 38 0.3596
4 <NA> 1 121049953 142517941 0 NA
Minimal "reproducible" example in https://github.com/etal/cnvkit/issues/47.
Example
Troubleshooting
Conclusion
This is probably a special case where data field
w
happens to be dropped because there are exactly zero loci. I'll investigate and fix. This problem appears in PSCBS 0.45.0 only.CC: @tskir, @etal