Skip to content

Commit

Permalink
Merge branch 'release/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
epurdom committed Jul 5, 2017
2 parents a26d494 + efa71e4 commit 5cbfa27
Show file tree
Hide file tree
Showing 65 changed files with 4,263 additions and 2,512 deletions.
40 changes: 36 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: clusterExperiment
Title: Compare Clusterings for Single-Cell Sequencing
Version: 1.3.1
Version: 1.3.2
Description: Provides functionality for running and comparing many
different clusterings of single-cell sequencing data or other large mRNA Expression data sets.
Authors@R: c(person("Elizabeth", "Purdom", email = "epurdom@stat.berkeley.edu",
Expand Down Expand Up @@ -29,15 +29,47 @@ Imports:
matrixStats,
graphics,
parallel,
MAST,
RSpectra
RSpectra,
kernlab
Suggests:
BiocStyle,
knitr,
diagram,
testthat,
scRNAseq
scRNAseq,
MAST
VignetteBuilder: knitr
LazyData: true
RoxygenNote: 6.0.1
biocViews: Clustering, RNASeq, Sequencing, Software, SingleCell
Collate:
'AllClasses.R'
'AllGenerics.R'
'AllHelper.R'
'AllHelperClusterFunction.R'
'JiashinJiCode.R'
'addClusters.R'
'internalClusterFunctions.R'
'internalFunctions.R'
'builtInClusterFunctions.R'
'clusterContrasts.R'
'clusterLabels.R'
'clusterMany.R'
'clusterSingle.R'
'combineMany.R'
'dataCreation.R'
'getFeatures.R'
'mainClustering.R'
'makeBlankData.R'
'makeDendrogram.R'
'mergeClusters.R'
'plotBarplot.R'
'plotClusters.R'
'plotDendrogram.R'
'plotHeatmap.R'
'plottingHelpers.R'
'rsec.R'
'seqCluster.R'
'subsampleClustering.R'
'transformFunction.R'
'workflowClusters.R'
20 changes: 17 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Generated by roxygen2: do not edit by hand

export(bigPalette)
export(clusterD)
export(clusterExperiment)
export(clusterFunction)
export(internalFunctionCheck)
export(listBuiltInFunctions)
export(listBuiltInType01)
export(listBuiltInTypeK)
export(makeBlankData)
export(nFeatures)
export(nSamples)
Expand All @@ -15,8 +19,8 @@ export(seqPal5)
export(setBreaks)
export(showBigPalette)
export(showHeatmapPalettes)
export(subsampleClustering)
exportClasses(ClusterExperiment)
exportClasses(ClusterFunction)
exportMethods("[")
exportMethods("clusterLabels<-")
exportMethods("clusterLegend<-")
Expand All @@ -27,8 +31,10 @@ exportMethods("primaryClusterIndex<-")
exportMethods("transformation<-")
exportMethods(RSEC)
exportMethods(addClusters)
exportMethods(algorithmType)
exportMethods(clusterContrasts)
exportMethods(clusterExperiment)
exportMethods(clusterFunction)
exportMethods(clusterInfo)
exportMethods(clusterLabels)
exportMethods(clusterLegend)
Expand All @@ -42,6 +48,10 @@ exportMethods(combineMany)
exportMethods(convertClusterLegend)
exportMethods(dendroClusterIndex)
exportMethods(getBestFeatures)
exportMethods(getBuiltInFunction)
exportMethods(getPostProcessingArgs)
exportMethods(inputType)
exportMethods(mainClustering)
exportMethods(makeDendrogram)
exportMethods(mergeClusters)
exportMethods(nClusters)
Expand All @@ -58,9 +68,11 @@ exportMethods(primaryClusterIndex)
exportMethods(primaryClusterNamed)
exportMethods(removeClusters)
exportMethods(removeUnclustered)
exportMethods(requiredArgs)
exportMethods(setToCurrent)
exportMethods(setToFinal)
exportMethods(show)
exportMethods(subsampleClustering)
exportMethods(transform)
exportMethods(transformation)
exportMethods(workflowClusterDetails)
Expand All @@ -71,7 +83,6 @@ import(limma)
import(methods)
importClassesFrom(SummarizedExperiment,SummarizedExperiment)
importClassesFrom(phylobase,phylo4)
importFrom(MAST,Hypothesis)
importFrom(NMF,aheatmap)
importFrom(RColorBrewer,brewer.pal)
importFrom(RColorBrewer,brewer.pal.info)
Expand All @@ -85,6 +96,7 @@ importFrom(dendextend,as.phylo.dendrogram)
importFrom(graphics,plot)
importFrom(howmany,howmany)
importFrom(howmany,lowerbound)
importFrom(kernlab,specc)
importFrom(limma,makeContrasts)
importFrom(locfdr,locfdr)
importFrom(matrixStats,rowVars)
Expand All @@ -98,8 +110,10 @@ importFrom(phylobase,nNodes)
importFrom(phylobase,nodeLabels)
importFrom(phylobase,rootNode)
importFrom(phylobase,subset)
importFrom(stats,cutree)
importFrom(stats,dist)
importFrom(stats,hclust)
importFrom(stats,kmeans)
importFrom(stats,mad)
importFrom(stats,prcomp)
importFrom(stats,sd)
Expand Down
25 changes: 24 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
Changes in version 1.3.1 ( Release date: 2017-06-14 )
Changes in version 1.3.2 ( Release date: 2017-07-05)
==============
Changes:
* Default for `top.can` in seqCluster are changed to be `top.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` or `mainClustering`. This will also make it easier for a user to define their own ClusterFunction object and have it be used by functions like `clusterSingle`. This is a major change in how some of the underlying functions work, but should not impact common functions like `clusterMany` and `RSEC`. Some of the more notable changes in the arguments for programmers are:
- `clusterD` and `clusterDArgs` have been changed to `mainClustering` and `mainClusterArgs`. 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` and `clusterSingle` no longer take the argument `clusterFunction`. `clusterFunction` must be given via `mainClusterArgs` and `subsampleArgs` to be passed to `mainClustering` or `subsamplingCluster`, respectively. Now only the upper-level function `clusterMany` takes `clusterFunction` directly as an argument.
- `mainClustering` (previously `clusterD`) and `subsampleClustering` no longer take `k` nor `alpha` 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 via `clusterArgs`.
- 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 function `getBuiltInFunction`. (see ?listBuiltInFunctions)
* `hiearchical01` clustering now has a different default, namely to apply `as.dist` to the input `diss` in order to get a `dist` object, rather than `dist(1-diss)` which was previously the default for historical reasons. This is controlled by argument `whichHierDist`, and can be set to the previous version by passing `whichHierDist="dist"` to the `clusterArgs` argument in either `subsampleArgs` or `mainClusterArgs`, depending on where `hierarchical01` is being used.
* Spectral clustering is now available (`"spectral"`) via the `specc` function of `kernlab`.
* `clusterSingle` now only returns the dissimilarity matrix in the `coClustering` slot if `subsample=TRUE` in the call. Furthermore, for the resulting dissimilarity to replace an existing `coClustering` slot value, the user must request it by setting `replaceCoClustering=TRUE` in the call to `clusterSingle`.
* Removed default value for argument `proportion` in `combineMany`. The previous default was `proportion=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 to `subsampleArgs` by the user explicitly, and the `clusterFunction` of `mainClusterArgs` is appropriate, it will be used for `subsampleClustering`; if the `clusterFunction` in `mainClusterArgs` is not appropriate (e.g. `subsampleClustering` needs a type `K` because `sequential=TRUE`), then the default for the `subsampleClustering` will be `'pam'`. This changes the previous behavior of `subsampleClustering` where the default was 'pam' in all cases where not explicitly given by the user. This change should have no impact on RSEC: since the `clusterFunction` for the `mainClustering` terms is a `'01'` type in RSEC and the `subsampleClustering` has to be type `'K'` when `sequential=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 existing `clusterExperiment` object.
* Fixed `RSEC` so now if rerun on existing `clusterExperiment` 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 sets `dimReduce="none"` in call to `clusterSingle`. Before, might have been calling all of the `dimReduce` defaults (i.e. all of them!).
* Fixed so gives error if whichClusters in `plotBarplot` doesn't match anything.

Changes in version 1.3.1 ( Release date: 2017-06-14 )
=======
Changes:
* change how `plotHeatmap` handles visualizeData argument, so not required to have same number of genes as original, only same number of samples.
* Now if color of vectors given in `clusterLegend` does not have names, `plotHeatmap` will give them names matching the variable so that they will be used by `aheatmap` (previously would have left all colors white because do not have matching names).
* Large changes to how dendrograms are plotted by `plotDendrogram` and `mergeClusters`. This includes the ability to see the before and after clusterings along side the mergeClusters result, as well as a new slot added to the clusterExperiment class (`dendro_outbranch`). The names of several arguments to `mergeClusters` and `plotDendrogram` were changed for clarity:
Expand All @@ -16,6 +38,7 @@ Changes:
* Move MAST into 'suggests' pacakge so that not need R 3.4 to run the package.
* Change calculation of PCA dimensionality reduction to use `svds` from `RSpectra` package to improve speed


Bugs:
* Fixed bug in RSEC where `combineProportion` argument was being ignored (set to 1)
* Fixed bug in definition of `transform` so that extends existing generic rather than masking it.
Expand Down
Loading

0 comments on commit 5cbfa27

Please sign in to comment.