Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sce #245

Merged
merged 211 commits into from
Jan 15, 2020
Merged

Sce #245

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
09c6682
output est-phi, est-eta
Irisapo Apr 12, 2019
4afc720
fix conflix with upstream during merge
Irisapo Apr 22, 2019
118d7dc
decontX vignettes change all DecontX to decontX
Irisapo Apr 23, 2019
83ff27c
add seed to simulateContaminatedMatrix
Irisapo Apr 23, 2019
b713cfd
Merge remote-tracking branch 'campbio/master'
Irisapo Apr 23, 2019
3347aaa
up to date with upstream
Irisapo Apr 24, 2019
f2237de
Update README.md
Irisapo Apr 25, 2019
fbc5746
Merge remote-tracking branch 'campbio/master'
Irisapo Apr 27, 2019
bcd641d
Merge remote-tracking branch 'campbio/master'
Irisapo Apr 29, 2019
83c152c
subset rows and columns before row scaling fix #164
zhewa May 14, 2019
4451b94
Merge pull request #167 from zhewa/RELEASE_3_9
zhewa May 14, 2019
e27baa8
update DESCRIPTION
zhewa May 14, 2019
d550202
Merge branch 'RELEASE_3_9' of https://github.com/campbio/celda into R…
zhewa May 16, 2019
2375531
Merge branch 'master' of github.com:zhewa/celda into RELEASE_3_9
zhewa May 16, 2019
727daa3
merge devel to RELEASE_3_9
zhewa May 16, 2019
5b48061
Merge pull request #174 from zhewa/RELEASE_3_9
zhewa May 17, 2019
e041eff
add MCDT
zhewa May 20, 2019
3a9d257
Merge pull request #1 from campbio/master
May 21, 2019
fa60334
Replace BuildTreeHybrid with FindMarkers. This adds functionality to…
May 22, 2019
ccd30bd
Update R-3.5 version
zhewa May 23, 2019
63429aa
Update README.md
zhewa May 23, 2019
bd472c2
Style edits
May 24, 2019
06cc58a
Merge branch 'master' of github.com:zhewa/celda
zhewa May 25, 2019
d269cba
Merge branch 'master' of https://github.com/campbio/celda
zhewa May 28, 2019
2e9a54e
add alternate headings support for plotDimReduceFeature
zhewa May 28, 2019
6658d1f
Merge branch 'master' of github.com:zhewa/celda
zhewa May 28, 2019
2850685
fix bug
zhewa May 28, 2019
3ffaf3d
fix bug
zhewa May 28, 2019
9146ad7
headers = NULL if exactMatch == FALSE
zhewa May 28, 2019
2ab51bd
headers = NULL
zhewa May 28, 2019
ae5c1f7
Merge pull request #182 from zhewa/master
zhewa May 28, 2019
dc09339
update docs
zhewa May 28, 2019
50c0075
Merge pull request #183 from zhewa/master
zhewa May 28, 2019
340d49e
Small formatting fix
May 28, 2019
8adfd72
remove redundant clustSplit
zhewa Jun 3, 2019
e4ff4ad
version bump
zhewa Jun 3, 2019
bc4a374
remove redundant splitClust assignment
zhewa Jun 3, 2019
e2cf9f9
version bump
zhewa Jun 3, 2019
a7d4819
Merge pull request #187 from zhewa/master
zhewa Jun 3, 2019
d7993e4
fix topRank doc
zhewa Jun 7, 2019
17af51f
fix topRank doc
zhewa Jun 7, 2019
87f753b
Merge pull request #191 from zhewa/master
zhewa Jun 7, 2019
0deb8fd
Minor formatting changes for style guide
Jun 11, 2019
3830cdb
Fixed the tree height issues
Jun 14, 2019
ec3ea4d
Merge branch 'MCDT' of github.com:ericreed/celda
Jun 19, 2019
083717a
Fixed bug in setting the max features to print
Jun 20, 2019
0c1325b
Fixed leaf and rule labelling discrpency issue
Jul 5, 2019
de7e28d
Fixed style issues
Jul 5, 2019
c2d9e0e
Merge branch 'MCDT' of github.com:ericreed/celda
zhewa Jul 10, 2019
4654a94
add magrittr import
zhewa Jul 10, 2019
bf8b886
add documentation
zhewa Jul 10, 2019
ced5060
Merge branch 'master' of github.com:zhewa/celda
zhewa Jul 10, 2019
f65a898
fix example
zhewa Jul 10, 2019
a5cf804
update findMarkers
zhewa Jul 16, 2019
f116e7c
fix lints
zhewa Jul 16, 2019
b83bced
Merge pull request #194 from zhewa/master
zhewa Jul 16, 2019
6a3d54b
version bump
zhewa Jul 16, 2019
5cb728e
Merge branch 'master' of github.com:campbio/celda
zhewa Jul 16, 2019
a8989be
Merge pull request #197 from zhewa/master
zhewa Jul 16, 2019
135ac40
quick fixup merge
Irisapo Jul 24, 2019
a8a15f4
quick fixup merge conflict
Irisapo Jul 24, 2019
141b183
fix tsne plot clusterLabel bug
Irisapo Aug 5, 2019
944c83a
decontx vignette minor modification
Irisapo Aug 5, 2019
c13cbc6
deocntx vignette minor modification (upper/lower case)
Irisapo Aug 5, 2019
c8c4228
Merge pull request #200 from Irisapo/master
zhewa Aug 5, 2019
916122c
semiheatmap able to order group by colGroupOrder and rowGroupOrder
Irisapo Aug 6, 2019
94074a0
Fixed error in tSNE creation for celda_G where cells where being shuf…
joshua-d-campbell Aug 22, 2019
2a2e924
Changed all tSNE/UMAP functions to not subsample cells by default
joshua-d-campbell Aug 22, 2019
5345e14
Merged changes to tSNE/UMAP code including setting max.cells to NULL …
joshua-d-campbell Aug 22, 2019
dc67065
Slightly tweaked descrption
joshua-d-campbell Aug 22, 2019
a7cd458
Fixed old reference from 'max.cells' to 'maxCells'
joshua-d-campbell Aug 22, 2019
58a3c6a
Fixed lintr formatting
joshua-d-campbell Aug 22, 2019
c7a6b01
Merge pull request #201 from joshua-d-campbell/master
joshua-d-campbell Aug 22, 2019
bd53e0f
Updated UMAP and tSNE functions. Enabled PCA on UMAP with celda_C res…
joshua-d-campbell Aug 23, 2019
1d079f6
Updated DESCRIPTION with uwot
joshua-d-campbell Aug 23, 2019
0e481a8
Changed default umap parameters and nThread to cores to be consistent…
joshua-d-campbell Aug 23, 2019
6d6cb8e
lintr fixes
joshua-d-campbell Aug 23, 2019
add0826
lintr fixes
joshua-d-campbell Aug 23, 2019
df151b0
Merge pull request #202 from joshua-d-campbell/master
joshua-d-campbell Aug 23, 2019
d7f8817
added ncol option for dim reduce plots
salzcamino Aug 28, 2019
73f505e
added ncol option for dim reduce plots
salzcamino Aug 28, 2019
ed19ae0
cyclocomp_linter(complexity_limit = 40)
zhewa Sep 18, 2019
c3f836a
add empty line
zhewa Sep 19, 2019
cc79381
Merge pull request #205 from zhewa/master
zhewa Sep 19, 2019
925779e
Merge remote-tracking branch 'campbio/master' into htmap branch
Irisapo Oct 14, 2019
926f61e
code reformat
Irisapo Oct 14, 2019
7ad7128
code style reformat....
Irisapo Oct 14, 2019
88dc78a
code style reformat..........
Irisapo Oct 14, 2019
11772db
change plotDimReduceFeature default color scale
zhewa Oct 15, 2019
7e6be57
version bump
zhewa Oct 15, 2019
1eeb3bd
fix lints
zhewa Oct 15, 2019
66b0aaf
Merge pull request #208 from zhewa/master
zhewa Oct 15, 2019
dce7157
Merge branch 'master' into htmap
Irisapo Oct 16, 2019
fbdeffb
Merge branch 'htmap' of https://github.com/Irisapo/celda into htmap
Irisapo Oct 16, 2019
58f8538
bump x.y.z version to even y prior to creation of RELEASE_3_10 branch
nturaga Oct 29, 2019
a4f3d2a
bump x.y.z version to odd y after creation of RELEASE_3_10 branch
nturaga Oct 29, 2019
8699494
Merge pull request #207 from Irisapo/htmap
Irisapo Nov 2, 2019
658ae9d
Added group.by param to plotDimReduceCluster
salzcamino Nov 12, 2019
9a59c51
Merge branch 'master' into master
salzcamino Nov 12, 2019
d4e5faa
Merge pull request #204 from salzcamino/master
salzcamino Nov 12, 2019
17df2b5
styling changes
salzcamino Nov 12, 2019
323c1af
Merge branch 'master' of https://github.com/salzcamino/celda
salzcamino Nov 12, 2019
9cf2ce0
styling changes
salzcamino Nov 12, 2019
4988528
Merge pull request #210 from salzcamino/master
salzcamino Nov 12, 2019
75be85f
small description fix
salzcamino Nov 12, 2019
d40ae74
Merge pull request #211 from salzcamino/master
salzcamino Nov 12, 2019
5e1c1d2
update z-assignment probability calculateion in celda_C
Irisapo Nov 14, 2019
db64c2d
format
Irisapo Nov 17, 2019
04939ad
index bug
Irisapo Nov 17, 2019
1a4e661
format
Irisapo Nov 17, 2019
96fafbc
format........
Irisapo Nov 17, 2019
b3f4ee1
format..
Irisapo Nov 20, 2019
ea52f3c
update probability calculation of y for celda_G #213
Irisapo Nov 20, 2019
d5a7cef
column first loop in Rcpp y probability calculation to speed up
Irisapo Nov 27, 2019
fe25283
empty rows decontX
Irisapo Dec 4, 2019
316be07
empty genes in decontx wont be used during estimation
Irisapo Dec 4, 2019
c95cfb9
at least 2 genes need to be non-0 expression matrix check for decontX
Irisapo Dec 4, 2019
cd90b41
column first loop in cpp for y probability calculation fasterrrrr
Irisapo Dec 4, 2019
33dee49
decontx bug fix no geneNames
Irisapo Dec 4, 2019
19be159
code format
Irisapo Dec 5, 2019
2646d1f
change cG_calcGibbsProbY* names
Irisapo Dec 5, 2019
ed2ea07
code formaaaaaaaaaaaat
Irisapo Dec 5, 2019
5b8bd60
Merge pull request #220 from Irisapo/master
Irisapo Dec 5, 2019
2d61766
graph and density-based clustering when no z provided for decontX
Irisapo Dec 5, 2019
706c16a
bug fix
Irisapo Dec 5, 2019
752b12c
Merge pull request #214 from Irisapo/zProb
joshua-d-campbell Dec 5, 2019
10b9d69
bug fix
Irisapo Dec 5, 2019
278b7be
Merge remote-tracking branch 'campbio/master'
Irisapo Dec 7, 2019
1fd5977
remove deprecated background-case code in decontx
Irisapo Dec 7, 2019
1358122
cleaning code in decontx
Irisapo Dec 7, 2019
4d864fd
update logMessages in DecontX
Irisapo Dec 8, 2019
7a7831f
bug fixed
Irisapo Dec 8, 2019
5252831
logMessage for decontX
Irisapo Dec 8, 2019
9c47f2c
bug fixed for decontx
Irisapo Dec 8, 2019
b5a08d8
scater::normalizeSCE --> scater::logNormCounts
Irisapo Dec 9, 2019
df4ebc5
formaaaaaaaaaaaat
Irisapo Dec 9, 2019
9e35121
Merge pull request #222 from Irisapo/master
Irisapo Dec 10, 2019
7a87976
formaaaaaaaat
Irisapo Dec 10, 2019
a62a911
format
Irisapo Dec 10, 2019
68c7927
Merge pull request #223 from Irisapo/master
Irisapo Dec 10, 2019
ff4630e
scater bump version 1.14.4 for decontx
Irisapo Dec 10, 2019
a59bbf0
.colSumByGroup replaced by .colSumByGroupNumeric for integer issue de…
Irisapo Dec 10, 2019
16f3fa0
simulateContaminatedMatrix bug fixed
Irisapo Dec 11, 2019
0cea409
Merge pull request #224 from Irisapo/master
Irisapo Dec 11, 2019
f6aa6d6
bump BiocManager version
Irisapo Dec 12, 2019
cce9b39
bump BiocManager version
Irisapo Dec 12, 2019
5df16b5
Merge pull request #227 from Irisapo/master
Irisapo Dec 12, 2019
3554051
update DESCRIPTION, fix lints
zhewa Dec 12, 2019
28869f7
Merge pull request #228 from zhewa/master
zhewa Dec 12, 2019
18c4b34
customizable cluster labels fix #226
zhewa Dec 13, 2019
b2bbfc1
Merge branch 'RELEASE_3_10' of git.bioconductor.org:packages/celda in…
zhewa Dec 13, 2019
ad3517a
Add doc for ncol. Customizable cluster labels #226
zhewa Dec 13, 2019
3d22a0a
Merge pull request #230 from zhewa/master
zhewa Dec 13, 2019
8588f03
fix lints
zhewa Dec 13, 2019
54534f5
Merge branch 'RELEASE_3_10' of github.com:zhewa/celda
zhewa Dec 13, 2019
f8c0a08
Merge branch 'master' of https://github.com/campbio/celda
zhewa Dec 13, 2019
abf55ab
Merge pull request #231 from zhewa/master
zhewa Dec 13, 2019
b5659eb
Merge branch 'master' of git.bioconductor.org:packages/celda
zhewa Dec 16, 2019
67a0bd8
Merge pull request #234 from zhewa/master
zhewa Dec 16, 2019
ac66da4
version bump update docs
zhewa Dec 16, 2019
1111a15
Merge branch 'master' of https://github.com/campbio/celda
zhewa Dec 16, 2019
c812f09
Merge pull request #235 from zhewa/master
zhewa Dec 16, 2019
010b39c
Updated messaging
joshua-d-campbell Dec 28, 2019
12e008e
fix mistake in mcmc fix-iteration
Irisapo Dec 28, 2019
ea7c67a
Corrected call to dirichlet_fit to estimate deltas. Also made some sp…
joshua-d-campbell Dec 28, 2019
402ad7e
Added new fast DecontX functions which utilized RcppArmadillo sparse …
joshua-d-campbell Jan 3, 2020
a8930fa
changed order of LinksTo in description to avoid compile errors with …
joshua-d-campbell Jan 3, 2020
c46d74c
Updated DecontX to calculate native counts in cpp. Made several adjus…
joshua-d-campbell Jan 3, 2020
9dc93f1
More speed improvements to DecontX by referencing matrix values rathe…
joshua-d-campbell Jan 4, 2020
0289774
Updated decontX test units
joshua-d-campbell Jan 4, 2020
565d86d
Updated call to Scran to use modelGeneVar to find top most variable g…
joshua-d-campbell Jan 4, 2020
50796b3
Fix lints
joshua-d-campbell Jan 4, 2020
bb12194
Updated decontX documentation
joshua-d-campbell Jan 4, 2020
36d2652
Changed output names in results list
joshua-d-campbell Jan 4, 2020
4be3411
Updated DecontX example
joshua-d-campbell Jan 4, 2020
865abd2
Updated names of results list in DecontX. Included estimated distribu…
joshua-d-campbell Jan 4, 2020
243c760
Updated decontX docs. Added parameter to only check for convergence a…
joshua-d-campbell Jan 4, 2020
4f2a87f
Changed covergence check back to every interation but still calculate…
joshua-d-campbell Jan 5, 2020
a2c0f1c
Updated name of batch when no 'batch' variable is supplied
joshua-d-campbell Jan 5, 2020
12cc55d
Added back missing batch argument
joshua-d-campbell Jan 5, 2020
5865980
Removed code that filters out genes with all zeros as it is not nessi…
joshua-d-campbell Jan 5, 2020
daec32e
finished renaming 'convergenceStep' to 'iterLogLik'
joshua-d-campbell Jan 5, 2020
af08451
Moved with_seed function to wrap around .decontXonebatch so that way …
joshua-d-campbell Jan 5, 2020
cebb705
fix lints
joshua-d-campbell Jan 5, 2020
64f3f47
Changed to S4 methods for calling DecontX. Added support for calling …
joshua-d-campbell Jan 7, 2020
3f6b21a
Moved conversion to dgCMatrix to within each batch
joshua-d-campbell Jan 7, 2020
a276e9c
Updated spacing in messages. Changed variable names for batchEstimate…
joshua-d-campbell Jan 7, 2020
a9d130a
Updated decontX documentation
joshua-d-campbell Jan 7, 2020
8bc0d11
Updated decontX docs
joshua-d-campbell Jan 7, 2020
c98c392
Added UMAP to 'reducedDims' when 'x' is a SingleCellExperiment object
joshua-d-campbell Jan 8, 2020
a6ba7f0
Fixed call to uwot::umap to ensure reprocibility. Used celdaUmap func…
joshua-d-campbell Jan 8, 2020
bde91bf
Fixed decontX test units
joshua-d-campbell Jan 8, 2020
bae21ac
Updated decontX docs
joshua-d-campbell Jan 8, 2020
2e1d21f
Added code to attempt to convert decontaminated matrix to format/clas…
joshua-d-campbell Jan 8, 2020
ec79298
Fixed incorrect variable name
joshua-d-campbell Jan 8, 2020
d8d8236
Changed check for class to use function 'inherits'. Updated docs
joshua-d-campbell Jan 8, 2020
30f227c
fix lints
zhewa Jan 8, 2020
0dcd6de
Merge pull request #240 from zhewa/master
zhewa Jan 8, 2020
885a9d6
Temporarily removed conversion code
joshua-d-campbell Jan 8, 2020
1c2ecd0
Added 'try' statement around conversion as a backup in case 'canCoerc…
joshua-d-campbell Jan 8, 2020
00b0922
set silent=TRUE in try statement
joshua-d-campbell Jan 8, 2020
091a249
Added decontXcounts to SCE. Updated docs
joshua-d-campbell Jan 9, 2020
7f0014a
applied styler
joshua-d-campbell Jan 10, 2020
01899de
Removed old commented code
joshua-d-campbell Jan 10, 2020
5fb97c2
merge with upstream
joshua-d-campbell Jan 10, 2020
bd7a4a4
Merge pull request #241 from joshua-d-campbell/master
joshua-d-campbell Jan 10, 2020
bf83c0c
.decontxInitializeZ passes seed for reproducibility
Irisapo Jan 13, 2020
ba13c06
fix lints
zhewa Jan 13, 2020
467f809
Merge pull request #243 from zhewa/master
zhewa Jan 13, 2020
5dcdc1f
fix lints
zhewa Jan 13, 2020
7d31b5b
Merge pull request #244 from zhewa/master
zhewa Jan 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ r_github_packages:
after_success:
- R CMD INSTALL $PKG_TARBALL
- Rscript -e 'covr::coveralls()'
- Rscript -e 'library(lintr); lint_package(linters = with_defaults(object_length_linter(length = 40L), object_name_linter = NULL, commented_code_linter = NULL, object_usage_linter = NULL), exclusions = list("R/RcppExports.R"))'
- Rscript -e 'library(lintr); lint_package(linters = with_defaults(object_length_linter(length = 40L), object_name_linter = NULL, commented_code_linter = NULL, object_usage_linter = NULL, cyclocomp_linter(complexity_limit = 40)), exclusions = list("R/RcppExports.R"))'
30 changes: 19 additions & 11 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Package: celda
Title: CEllular Latent Dirichlet Allocation
Version: 1.1.2
Authors@R: c(person("Joshua", "Campbell", email = "camp@bu.edu", role = c("aut", "cre")),
person("Sean", "Corbett", email = "scorbett@bu.edu", role = c("aut")),
person("Yusuke", "Koga", email="ykoga07@bu.edu", role = c("aut")),
person("Zhe", "Wang", email="zhe@bu.edu", role = c("aut")))
Description: celda leverages Bayesian hierarchical modeling to cluster genes,
cells, or both simultaneously from single cell sequencing data.
Version: 1.3.1
Authors@R: c(person("Joshua", "Campbell", email = "camp@bu.edu",
role = c("aut", "cre")),
person("Sean", "Corbett", email = "scorbett@bu.edu", role = c("aut")),
person("Yusuke", "Koga", email="ykoga07@bu.edu", role = c("aut")),
person("Shiyi", "Yang", email="syyang@bu.edu", role = c("aut")),
person("Eric", "Reed", email="reeder@bu.edu", role = c("aut")),
person("Zhe", "Wang", email="zhe@bu.edu", role = c("aut")))
Description: celda is a Bayesian hierarchical model that can co-cluster features and cells in single cell sequencing data.
Depends:
R (>= 3.6)
VignetteBuilder: knitr
Expand All @@ -31,8 +33,9 @@ Imports:
S4Vectors,
data.table,
Rcpp,
RcppArmadillo,
RcppEigen,
umap,
uwot,
enrichR,
stringi,
SummarizedExperiment,
Expand All @@ -42,7 +45,12 @@ Imports:
withr,
dendextend,
ggdendro,
pROC
pROC,
magrittr,
scater (>= 1.14.4),
scran,
SingleCellExperiment,
dbscan
Suggests:
testthat,
knitr,
Expand All @@ -55,10 +63,10 @@ Suggests:
M3DExampleData,
BiocManager,
BiocStyle
LinkingTo: Rcpp, RcppEigen
LinkingTo: Rcpp, RcppArmadillo, RcppEigen
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: false
RoxygenNote: 6.1.1
RoxygenNote: 7.0.2
BugReports: https://github.com/campbio/celda/issues
biocViews: SingleCell, GeneExpression, Clustering, Sequencing, Bayesian
12 changes: 9 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by roxygen2: do not edit by hand

export("decontXcounts<-")
export(appendCeldaList)
export(availableModels)
export(bestLogLikelihood)
export(buildTreeHybrid)
export(celda)
export(celdaGridSearch)
export(celdaHeatmap)
Expand All @@ -19,11 +19,13 @@ export(clusters)
export(compareCountMatrix)
export(countChecksum)
export(decontX)
export(decontXcounts)
export(differentialExpression)
export(distinctColors)
export(factorizeMatrix)
export(featureModuleLookup)
export(featureModuleTable)
export(findMarkers)
export(geneSetEnrich)
export(getDecisions)
export(logLikelihood)
Expand Down Expand Up @@ -63,6 +65,7 @@ export(simulateContaminatedMatrix)
export(subsetCeldaList)
export(topRank)
export(violinPlot)
exportMethods("decontXcounts<-")
exportMethods(bestLogLikelihood)
exportMethods(celdaHeatmap)
exportMethods(celdaPerplexity)
Expand All @@ -72,6 +75,8 @@ exportMethods(celdaUmap)
exportMethods(clusterProbability)
exportMethods(clusters)
exportMethods(countChecksum)
exportMethods(decontX)
exportMethods(decontXcounts)
exportMethods(factorizeMatrix)
exportMethods(featureModuleLookup)
exportMethods(logLikelihoodHistory)
Expand All @@ -91,7 +96,9 @@ import(grDevices)
import(graphics)
import(grid)
import(gridExtra, except = c(combine))
import(magrittr)
import(stats, except = c(start, end))
import(uwot)
importFrom(MAST,FromMatrix)
importFrom(MAST,summary)
importFrom(MAST,zlm)
Expand Down Expand Up @@ -126,6 +133,7 @@ importFrom(gtable,gtable_height)
importFrom(gtable,gtable_width)
importFrom(matrixStats,logSumExp)
importFrom(methods,.hasSlot)
importFrom(methods,hasArg)
importFrom(methods,is)
importFrom(methods,new)
importFrom(pROC,auc)
Expand All @@ -138,8 +146,6 @@ importFrom(scales,brewer_pal)
importFrom(scales,dscale)
importFrom(scales,hue_pal)
importFrom(stringi,stri_list2matrix)
importFrom(umap,umap)
importFrom(umap,umap.defaults)
importFrom(withr,with_seed)
useDynLib(celda,"_colSumByGroup")
useDynLib(celda,"_colSumByGroupChange")
Expand Down
24 changes: 24 additions & 0 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

decontXEM <- function(counts, counts_colsums, theta, eta, phi, z, pseudocount) {
.Call('_celda_decontXEM', PACKAGE = 'celda', counts, counts_colsums, theta, eta, phi, z, pseudocount)
}

decontXLogLik <- function(counts, theta, eta, phi, z, pseudocount) {
.Call('_celda_decontXLogLik', PACKAGE = 'celda', counts, theta, eta, phi, z, pseudocount)
}

decontXInitialize <- function(counts, theta, z, pseudocount) {
.Call('_celda_decontXInitialize', PACKAGE = 'celda', counts, theta, z, pseudocount)
}

calculateNativeMatrix <- function(counts, native_counts, theta, eta, phi, z, row_index, col_index, pseudocount) {
.Call('_celda_calculateNativeMatrix', PACKAGE = 'celda', counts, native_counts, theta, eta, phi, z, row_index, col_index, pseudocount)
}

cG_calcGibbsProbY_Simple <- function(counts, nGbyTS, nTSbyC, nbyTS, nbyG, y, L, index, gamma, beta, delta) {
.Call('_celda_cG_calcGibbsProbY_Simple', PACKAGE = 'celda', counts, nGbyTS, nTSbyC, nbyTS, nbyG, y, L, index, gamma, beta, delta)
}

cG_CalcGibbsProbY_ori <- function(index, counts, nTSbyC, nbyTS, nGbyTS, nbyG, y, L, nG, lg_beta, lg_gamma, lg_delta, delta) {
.Call('_celda_cG_CalcGibbsProbY_ori', PACKAGE = 'celda', index, counts, nTSbyC, nbyTS, nGbyTS, nbyG, y, L, nG, lg_beta, lg_gamma, lg_delta, delta)
}

cG_CalcGibbsProbY_fastRow <- function(index, counts, nTSbyC, nbyTS, nGbyTS, nbyG, y, L, nG, lg_beta, lg_gamma, lg_delta, delta) {
.Call('_celda_cG_CalcGibbsProbY_fastRow', PACKAGE = 'celda', index, counts, nTSbyC, nbyTS, nGbyTS, nbyG, y, L, nG, lg_beta, lg_gamma, lg_delta, delta)
}

cG_CalcGibbsProbY <- function(index, counts, nTSbyC, nbyTS, nGbyTS, nbyG, y, L, nG, lg_beta, lg_gamma, lg_delta, delta) {
.Call('_celda_cG_CalcGibbsProbY', PACKAGE = 'celda', index, counts, nTSbyC, nbyTS, nGbyTS, nbyG, y, L, nG, lg_beta, lg_gamma, lg_delta, delta)
}
Expand Down
17 changes: 5 additions & 12 deletions R/all_generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -596,33 +596,26 @@ setGeneric("celdaTsne",
#' requires more memory. Default 25000.
#' @param minClusterSize Integer. Do not subsample cell clusters below this
#' threshold. Default 100.
#' @param initialDims Integer. PCA will be used to reduce the dimentionality
#' of the dataset. The top 'initialDims' principal components will be used
#' for umap. Default 20.
#' @param modules Integer vector. Determines which features modules to use for
#' tSNE. If NULL, all modules will be used. Default NULL.
#' @param seed Integer. Passed to \link[withr]{with_seed}. For reproducibility,
#' a default value of 12345 is used. If NULL, no calls to
#' \link[withr]{with_seed} are made.
#' @param umapConfig An object of class "umapConfig" specifying parameters to
#' the UMAP algorithm.
#' @return Numeric Matrix of dimension `ncol(counts)` x 2, colums representing
#' the "X" and "Y" coordinates in the data's t-SNE represetation.
#' @examples
#' @param ... Additional parameters to `uwot::umap`
#' @return A two column matrix of UMAP coordinates#' @examples
#' data(celdaCGSim, celdaCGMod)
#' tsneRes <- celdaUmap(celdaCGSim$counts, celdaCGMod)
#' @importFrom umap umap.defaults
#' umapRes <- celdaUmap(celdaCGSim$counts, celdaCGMod)
#' @export
setGeneric("celdaUmap",
signature = "celdaMod",
function(counts,
celdaMod,
maxCells = 25000,
maxCells = NULL,
minClusterSize = 100,
initialDims = 20,
modules = NULL,
seed = 12345,
umapConfig = umap::umap.defaults) {
...) {
standardGeneric("celdaUmap")
})

Expand Down
10 changes: 5 additions & 5 deletions R/buildTreeHelper.R
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@
splitStats <- vapply(
colnames(features),
function(feat, features, class, splitMetric) {
splitMetric(feat, class, features, rPerf = T)
splitMetric(feat, class, features, rPerf = TRUE)
}, features, class, splitMetric, FUN.VALUE = double(1))
names(splitStats) <- colnames(features)
splitStats <- sort(splitStats, decreasing = T)
splitStats <- sort(splitStats, decreasing = TRUE)

return(splitStats)
}
Expand Down Expand Up @@ -412,7 +412,7 @@
featValues <- features[, feat]

# Get order of values
ord <- order(featValues, decreasing = T)
ord <- order(featValues, decreasing = TRUE)

# Get sorted class and values
featValuesSort <- featValues[ord]
Expand Down Expand Up @@ -516,7 +516,7 @@
featValues <- features[, feat]

# Get order of values
ord <- order(featValues, decreasing = T)
ord <- order(featValues, decreasing = TRUE)

# Get sorted class and values
featValuesSort <- featValues[ord]
Expand Down Expand Up @@ -835,7 +835,7 @@
stat = HM,
stringsAsFactors = F))
}, .splitMetricModF1, fSub, cSub, group2only))
altStats <- altStats[order(altStats$stat, decreasing = T), ]
altStats <- altStats[order(altStats$stat, decreasing = TRUE), ]

# Get alternative splits
splitStats <- altStats$stat[1]
Expand Down
128 changes: 0 additions & 128 deletions R/buildTreeHybrid.R

This file was deleted.

Loading