Created
February 28, 2019 18:53
-
-
Save nievergeltlab/a26d9b511e526b373290f2f9cce3483b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nsub=30000 | |
| nr=nsub | |
| ncol=nsub | |
| dummy_datamatrix <- data.frame(pc1=rnorm(nsub), pc2=rnorm(nsub),studytype=round(runif(nsub))) | |
| distmat <- matrix(rnorm(nsub^2),ncol=nsub,nrow=nsub) | |
| library(vegan) | |
| adon1 <- adonis(distmat~pc1+pc2+studytype,data=dummy_datamatrix,parallel=8) | |
| 10000 people = 3.3 g of ram | |
| 30k people = 30 g | |
| so ram scales qudratically | |
| with the number of people. | |
| it said it couldnt allocate a matrix of this size, but i think I have 32 g of ram - either ram being used or r limits somehow | |
| use a grm based on the overlap? | |
| ok seems to top out at 30k people |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment