tmp-tests/benchmark-transpose.R

#' Date: 2016-10-04
#' Object: Benchmark "transpose" on Celiac
#' Results: 16 sec - 1 min -> very fast
#' + deepcopy that takes RAM

library(bigsnpr)
library(bigstatsr)

test <- AttachBigSNP("celiac", "../thesis-celiac/backingfiles")

print(system.time(test2 <- transpose(test$genotypes, shared = FALSE)))

print(dim(test2))

print(test2[1:10, 1:10] - t(test$genotypes[1:10, 1:10]))

print(test2[528969 - 0:10, 11950 - 0:10] -
        t(test$genotypes[11950 - 0:10, 528969 - 0:10]))
privefl/bigstatsr documentation built on March 29, 2024, 3:31 a.m.