-
Notifications
You must be signed in to change notification settings - Fork 20
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
Program keeps crashing R! #110
Comments
Here is the code I have, I followed the directions on the wiki: install.packages("glmnet") You see it begins, but seems to get stuck on the clustering part: And then I get: |
Hi, |
Thanks for the reply :) From playing around on cytobank it seems like lowering your events results in different CITRUS results. Do you know if these differences are significant? |
I've tried it now with 5,000 events per sample and 1,000 events per sample. Still crashes. |
Hi - sorry you're experiencing crashing. Could you tell me what version of Mac OS X you're using? |
Robert is definitevily the guru for Macintosh issues.
|
Robert, I looked over the issue you sent along and I added the code you provided for potential memory leak: install.packages(c("Rcpp","RcppEigen"),type="source") I am on macOS Sierra Version 10.12.1 Sam, per your recommendation here, and on the linked issue I first lowered the Minimum Cluster Size to 1 (the program still crashed), and then to .5 and the program still crashed. I read somewhere that having uneven samples (4 in one group and 5 in another for this case) could affect the algorithm, is this really true? I've attached files of the set up. |
Abby, does Citrus still crash after you've installed Rclusterpp from source, e:g:
|
Dear Abby, I really think that the problem is due to some compilation issue. Parameter setup should not lead to a crash. I think Robert could also explain you how to run the script (created by the Shiny interface) from command line. library(Rclusterpp)
# Matrix size
nc = 20
nr = 10000
# Generate some random data
set.seed(123)
some.data = matrix(rnorm(nc*nr), ncol = nc)
# Define a population with a different mean value
some.data[1:1000, 1:(nc %/% 4)] = some.data[1:1000, 1:(nc %/% 4)] + 1
# Do clustering
hc = Rclusterpp.hclust(some.data)
hc
# Optional process: cut the hierarchical tree in 10 clusters
hc.cut.members = cutree(hc, k = 10)
hc.cut.mean = apply(some.data, 2, function(x) tapply(x, hc.cut.members, mean))
hc.cut.mean = as.matrix(hc.cut.mean)
plot(hclust(dist(hc.cut.mean)))
# Alternative display
image(some.data)
image(hc.cut.mean) |
Hello! I've tried this a couple of times and R keeps unexpectedly closing. Is this a common problem?
The text was updated successfully, but these errors were encountered: