si-medbif / VEP_filter.R

Filtration SUDS variant from VEP by R
1 stars 1 forks source link

Error due to Memory Failure #3

Closed silenus092 closed 5 years ago

silenus092 commented 5 years ago

I have faced two problems as followings:

Error:1

Error in { : task 1 failed - "data is too long"

Error:2

Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : 
could not allocate memory (2048 Mb) in C function 'R_AllocStringBuffer'
Calls: tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
silenus092 commented 5 years ago

The solution was to explicitly set quote = "" in the argument list.

read.csv(filename, nrows=1, sep="\t", skip = skip_headerLine ,header = TRUE , check.names = FALSE,quote = "")