Skip to content

Commit f8020c0

Browse files
committed
don't subsample segments after joining neighbouring segments
1 parent aff6561 commit f8020c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/methSeg.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
diagnostic.plot = FALSE
5959
}
6060

61+
# Run subsampling of segments before performing the mixture modeling
6162
if("initialization" %in% names(args.Mclust)){
6263
if("subset" %in% names(args.Mclust[["initialization"]])) {
6364
if(length(args.Mclust[["initialization"]][["subset"]]) < 9 ){
@@ -105,6 +106,9 @@
105106
args.Mclust[["diagnostic.plot"]]=diagnostic.plot
106107
# skip second progress bar
107108
args.Mclust[["verbose"]]=FALSE
109+
# do not run subsampling of segments
110+
args.Mclust[["initialization"]]<-NULL
111+
108112
dens=do.call("densityFind", args.Mclust )
109113

110114
}

0 commit comments

Comments
 (0)