v1.3.2
Changes:
- Default for
top.can
in seqCluster are changed to betop.can=5
. - makeDendrogram now has the default argument
ignoreUnassignedVar=TRUE
like in RSEC - add ClusterFunction class and update all functions to work on this. All built in cluster functions are now given ClusterFunction Objects, so all built in clustering functions can now work for either
subsampleClustering
ormainClustering
. This will also make it easier for a user to define their own ClusterFunction object and have it be used by functions likeclusterSingle
. This is a major change in how some of the underlying functions work, but should not impact common functions likeclusterMany
andRSEC
. Some of the more notable changes in the arguments for programmers are:clusterD
andclusterDArgs
have been changed tomainClustering
andmainClusterArgs
. This change was made to make these arguments more clear as to their role in the clustering workflow (and because the clusterD refered to clustering a dissimilarity but it has clustered either x or D for many versions now. )seqCluster
andclusterSingle
no longer take the argumentclusterFunction
.clusterFunction
must be given viamainClusterArgs
andsubsampleArgs
to be passed tomainClustering
orsubsamplingCluster
, respectively. Now only the upper-level functionclusterMany
takesclusterFunction
directly as an argument.mainClustering
(previouslyclusterD
) andsubsampleClustering
no longer takek
noralpha
as a direct argument. These arguments, like all arguments used directly by the cluster function, now need to be passed to the clustering function in a list viaclusterArgs
.- The list of available built-in clustering routines provided by the package can now be accessed via
listBuiltInFunctions()
. The functions that are used for these functions are now available to the user via their ClusterFunction object that the user can access with the functiongetBuiltInFunction
. (see ?listBuiltInFunctions)
hiearchical01
clustering now has a different default, namely to applyas.dist
to the inputdiss
in order to get adist
object, rather thandist(1-diss)
which was previously the default for historical reasons. This is controlled by argumentwhichHierDist
, and can be set to the previous version by passingwhichHierDist="dist"
to theclusterArgs
argument in eithersubsampleArgs
ormainClusterArgs
, depending on wherehierarchical01
is being used.- Spectral clustering is now available (
"spectral"
) via thespecc
function ofkernlab
. clusterSingle
now only returns the dissimilarity matrix in thecoClustering
slot ifsubsample=TRUE
in the call. Furthermore, for the resulting dissimilarity to replace an existingcoClustering
slot value, the user must request it by settingreplaceCoClustering=TRUE
in the call toclusterSingle
.- Removed default value for argument
proportion
incombineMany
. The previous default wasproportion=1
but didn't match most common use cases and was accidentally called by upper functions like RSEC. - If the
clusterFunction
argument is not given tosubsampleArgs
by the user explicitly, and theclusterFunction
ofmainClusterArgs
is appropriate, it will be used forsubsampleClustering
; if theclusterFunction
inmainClusterArgs
is not appropriate (e.g.subsampleClustering
needs a typeK
becausesequential=TRUE
), then the default for thesubsampleClustering
will be'pam'
. This changes the previous behavior ofsubsampleClustering
where the default was 'pam' in all cases where not explicitly given by the user. This change should have no impact on RSEC: since theclusterFunction
for themainClustering
terms is a'01'
type in RSEC and thesubsampleClustering
has to be type'K'
whensequential=TRUE
, it will revert to the default"pam"
as before.
Bugs:
- Fixed error so where if
clusterSingle
was called on existing clusterExperiment object it would overwrite the information of the existingclusterExperiment
object. - Fixed
RSEC
so now if rerun on existingclusterExperiment
object, it will grab defaults from the matrix version (previously defaults were those of the underlying function, which were not always the same, e.g.combineProportion
default was previously 1) - Fixed
clusterMany
so now it explicitly setsdimReduce="none"
in call toclusterSingle
. Before, might have been calling all of thedimReduce
defaults (i.e. all of them!). - Fixed so gives error if whichClusters in
plotBarplot
doesn't match anything.