-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
Hi all,
I've been trying to run FIt-SNE on a FCS file 20 million events large. Unfortunately, despite allocating 1.5TB of memory, an error still arises (below). This does not occur when running the same file downsampled to 2 or 5 million cells. I have just been trying to run a small 20 iterations, just to identify the problem, however it never manages to get there...
Has anyone encountered this error before? I've attached the error file, the output, and my script.
Thanks!
=============== t-SNE v1.2.1 ===============
fast_tsne data_path: <path>
fast_tsne result_path: <path>
fast_tsne nthreads: 96
Read the following parameters:
n 19113296 by d 17 dataset, theta 0.500000,
perplexity 50.000000, no_dims 2, max_iter 20,
stop_lying_iter 250, mom_switch_iter 250,
momentum 0.500000, final_momentum 0.800000,
learning_rate 1592774.666667, max_step_norm 5.000000,
K -1, sigma -30.000000, nbody_algo 2,
knn_algo 1, early_exag_coeff 12.000000,
no_momentum_during_exag 0, n_trees 50, search_k 7500,
start_late_exag_iter -1, late_exag_coeff 1.000000
nterms 3, interval_per_integer 1.000000, min_num_intervals 50, t-dist df 1.000000
Read the 19113296 x 17 data matrix successfully. X[0,0] = 71838.656250
Read the initialization successfully.
Will use momentum during exaggeration phase
Computing input similarities...
Using perplexity, so normalizing input data (to prevent numerical problems)
Using perplexity, not the manually set kernel width. K (number of nearest neighbors) and sigma (bandwidth) parameters are going to be ignored.
Using ANNOY for knn search, with parameters: n_trees 50 and search_k 7500
Going to allocate memory. N: 19113296, K: 150, N*K = -1427972896
Memory allocation failed!
Resource Usage on 2021-08-05 16:59:31:
Job Id: job_ID
Project: ##
Exit Status: 1
Service Units: 6.20
NCPUs Requested: 48 NCPUs Used: 48
CPU Time Used: 00:02:26
Memory Requested: 1.46TB Memory Used: 37.03GB
Walltime requested: 20:00:00 Walltime Used: 00:02:35
JobFS requested: 30.0GB JobFS used: 15.18KB
Error file:
FIt-SNE R wrapper loading.
FIt-SNE root directory was set to <directory>
Using rsvd() to compute the top PCs for initialization.
Error in fftRtsne(dsobject_s[, -c(1, 19:24)], perplexity = 50, max_iter = 20) :
tsne call failed
Execution halted
Script:
library(flowCore)
## Sourcing FITSNE
fast_tsne_path <- "<path>/fast_tsne"
source(paste0(fast_tsne_path,".R"))
## Loading in File
object <- exprs(read.FCS("<file>.fcs"))
## Running FIt-SNE
tsne_object <-fftRtsne(object[,-c(1, 19:24)],perplexity = 50, max_iter = 20)
export_obj <- cbind(object, tSNEX = tsne_object[,1], tSNEY = tsne_object[,2],fast_tsne_path=fast_tsne_path)
## Saving Object
saveRDS(export_obj, "fitSNE_alltube_simple20.rds")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels