Skip to content

Commit

Permalink
add troubleshooting section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
croct committed Aug 22, 2016
1 parent 5935f95 commit bdbac0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
#>
Expand All @@ -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)
#>
Expand Down Expand Up @@ -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.

0 comments on commit bdbac0c

Please sign in to comment.