Skip to content

Commit

Permalink
Merge pull request #50 from ahl27/master
Browse files Browse the repository at this point in the history
feat: Random forests
  • Loading branch information
npcooley authored Aug 19, 2024
2 parents ead8b13 + dd40e1a commit 1205176
Show file tree
Hide file tree
Showing 14 changed files with 1,488 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.so
*/*.o
*/*.so
*/*.mod
.Rproj.user
*.Rproj
*.Rhistory
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: SynExtend
Type: Package
Title: Tools for Working With Synteny Objects
Version: 1.17.1
Version: 1.17.2
Authors@R: c(
person("Nicholas", "Cooley", email = "npc19@pitt.edu", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6029-304X")),
person("Aidan", "Lakshman", email = "ahl27@pitt.edu", role = c("aut", "ctb"), comment = c(ORCID = "0000-0002-9465-6785")),
Expand Down
16 changes: 14 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ import(S4Vectors)
import(DBI)
import(RSQLite)

importFrom("utils", "setTxtProgressBar", "txtProgressBar", "data", "object.size", "getS3method", "read.table")
importFrom("stats", "predict", "runif", "setNames", "rnorm", "optim", "kmeans", "density", "nls", "ppois", "pt", "pnorm", "as.dist", "fisher.test", "is.leaf", "pchisq", "rbinom")
importFrom("utils", "setTxtProgressBar", "txtProgressBar", "data", "object.size",
"getS3method", "read.table")
importFrom("stats", "predict", "runif", "setNames", "rnorm", "optim", "kmeans", "density", "nls",
"ppois", "pt", "pnorm", "as.dist", "fisher.test", "is.leaf", "pchisq", "rbinom", "as.dendrogram",
".checkMFClasses", ".getXlevels", "delete.response", "is.empty.model", "model.frame",
"model.matrix", "model.response", "model.weights", "na.pass", "offset", "terms")
importFrom("parallel", "mclapply", "detectCores")
importFrom("graphics", "hist", "points", "abline", "axis", "layout", "lines", "par", "text")
importFrom("grDevices", "topo.colors", "colorRampPalette")
Expand Down Expand Up @@ -109,3 +113,11 @@ S3method(names, 'simMat')
S3method(`names<-`, 'simMat')
S3method(as.data.frame, 'simMat')

S3method(show, "DecisionTree")
S3method(show, "RandForest")
S3method(print, "RandForest")
S3method(print, "DecisionTree")
S3method(predict, "RandForest")
S3method(as.dendrogram, "DecisionTree")
S3method(plot, "DecisionTree")
export(RandForest)
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SynExtend 1.17.2
* `RandForest` function added to train random forest models
* Associated man pages for `RandForest` and `DecisionTree` objects
* New methods for `DecisionTree` objects to plot and coerce to `dendrogram`
* Small bugfix to `subset.dendrogram`

# SynExtend 1.17.1
* Major updates to `EvoWeaver`:
* `predict.EvoWeaver` now returns a `data.frame` by default
Expand Down
Loading

0 comments on commit 1205176

Please sign in to comment.