Closed HenrikBengtsson closed 6 years ago
The default is Clim = "auto"
which sets the Clim
as:
if (identical(Clim, "auto")) {
signalType <- getSignalType(fit);
ploidy <- ploidy(fit);
Clim <- switch(signalType,
"log2ratio" = c(-2,2) + c(-1,1)*ploidy/2,
"ratio" = c(0,3*ploidy),
NULL
);
}
In other words, it'll decided what the default Clim
is based on the signal type. In the example here, it is:
> getSignalType(fit)
[1] NA
which is why it becomes Clim = NULL
.
Updated develop branch to:
> plotTracks(fit)
Warning in plotTracks.CBS(fit) :
Setting default 'Clim' assuming the signal type is 'ratio' because signalType(fit) is unknown ('NA'). Use signalType(fit) <- 'ratio' to avoid this warning.
For multi-chromosome CBS data, not single as in the vignette,
plotTracks()
will produce an error on "Argument 'Clim' is not a vector: NULL".Example
Workaround
Until fixed in the PSCBS package, set the
Clim
manually, e.g.