From bdbac0ca62dc074e585230eb4e93f25b9ac8eb39 Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 22 Aug 2016 17:43:40 +1000 Subject: [PATCH] add troubleshooting section to readme --- README.Rmd | 4 ++++ README.md | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.Rmd b/README.Rmd index 3ab0f74..c08b4a1 100644 --- a/README.Rmd +++ b/README.Rmd @@ -74,3 +74,7 @@ Reference for human pancreatic islet dataset: Li, J. _et al._ Single-cell transcriptomes reveal characteristic features of human pancreatic islet cell types. _EMBO Reports_ 17, 178–187 (2016). +##Troubleshooting +_CIDR_ utilises the _hclust_ function from the base _stats_ package. Loading _CIDR_ masks _hclust_ in other packages automatically. +However, if any package with an _hclust_ function (e.g., _flashClust_) is loaded after _CIDR_, the name clashing can possibly cause a problem. +In this case unloading that package should resolve the issue. diff --git a/README.md b/README.md index 0080d0c..cb892dd 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,13 @@ example("cidr") #> #> cidr> sData <- scSimulator(N=N, k=k) #> +#> cidr> ## tags - the tag matrix +#> cidr> tags <- as.matrix(sData$tags) +#> #> cidr> cols <- c(rep("RED",k), rep("BLUE",k), rep("GREEN",k)) #> #> cidr> ## Standard principal component analysis. -#> cidr> ltpm <- log2(t(t(sData$tags)/colSums(sData$tags))*1000000+1) +#> cidr> ltpm <- log2(t(t(tags)/colSums(tags))*1000000+1) #> #> cidr> pca <- prcomp(t(ltpm)) #> @@ -65,7 +68,8 @@ example("cidr") #> #> cidr> ## Use cidr to analyse the simulated dataset. - #> cidr> sData <- scDataConstructor(as.matrix(sData$tags)) + #> cidr> ## The input for cidr should be a tag matrix. + #> cidr> sData <- scDataConstructor(tags) #> #> cidr> sData <- determineDropoutCandidates(sData) #> @@ -142,3 +146,8 @@ Darmanis, S. *et al.* A survey of human brain transcriptome diversity at the sin Reference for human pancreatic islet dataset: Li, J. *et al.* Single-cell transcriptomes reveal characteristic features of human pancreatic islet cell types. *EMBO Reports* 17, 178–187 (2016). + +Troubleshooting +--------------- + +*CIDR* utilises the *hclust* function from the base *stats* package. Loading *CIDR* masks *hclust* in other packages automatically. However, if any package with an *hclust* function (e.g., *flashClust*) is loaded after *CIDR*, the name clashing can possibly cause a problem. In this case unloading that package should resolve the issue.