Entering edit mode
3.1 years ago
jenyfer
▴
10
When i am trying loading gene expression counts downloaded from tcga (I have 859 samples with raw counts of 60000 rows). I GET THIS ERROR and R STOPPED FOR NO REASON! I check the memory to find out that my memory is nearly full.BUT i have 16GB RAM.
counts_df <- counts_files %>%
lapply(function(x) {
tmp <- read_tsv(x, col_names = F) %>%
purrr::set_names("gene_id", basename(x))
cat(which(counts_files == x), "of", length(counts_files), "\n")
return(tmp)
}) %>%
reduce(function(x, y) full_join(x, y, by = "gene_id")) %>%
dplyr::select(gene_id, metadata$file_name) %>%
set_names("gene_id", metadata$TCGA_id_full) %>%
dplyr::slice(1:(nrow(.)-5))
Thanks a lot for foryour kindness advise. I processed this on my old computer i bought 6 years ago with 8GB RAM. SAME code SAME pakages. and it produce results of 60000row and 789columns data。 However i wil still try your advise latter. thanks