最近要处理蛮大的数据。结果这个数据放到R中,却出现了内存不够的问题。
关于计算机的基础的知识,是我一直以来的薄弱项。
我现在拥有足够的精力和时间,所以,我希望能够认真解决这个问题。

解决方法,并没有想象的那么复杂。
在要处理的大数据的代码前,添加gc()
即如下所示:

coverage_cutoff <- 3
coverage_percentage <- 0.2
cell_percentage <- 0.2
artefact_percentage <- 0.03
gc() #即这行指令 #下面的处理将占用很大的内存,在运行之前先删去不必要的
preprocess_genetics <- read_sclineager(runinfo,coverage_cutoff,coverage_percentage,cell_percentage,out_folder,artefact_percentage)

最终运行成功。

[1] "./mutations/cell/1"
[1] "./mutations/cell/2"
[1] "./mutations/cell/3"
[1] "./mutations/cell/4"
[1] "./mutations/cell/5"
[1] "./mutations/cell/6"
[1] "./mutations/cell/7"
[1] "./mutations/cell/8"
[1] "./mutations/cell/9"
[1] "./mutations/cell/10"
[1] "./mutations/cell/11"
[1] "./mutations/cell/12"
[1] "./mutations/cell/13"
[1] "./mutations/cell/14"
[1] "./mutations/cell/15"
[1] "./mutations/cell/16"
[1] "./mutations/cell/17"
[1] "./mutations/cell/18"
[1] "./mutations/cell/19"
[1] "./mutations/cell/20"
[1] "./mutations/cell/21"
[1] "./mutations/cell/22"
[1] "./mutations/cell/23"
[1] "./mutations/cell/24"
[1] "./mutations/cell/25"
[1] "./mutations/cell/26"
[1] "./mutations/cell/27"
[1] "./mutations/cell/28"
[1] "./mutations/cell/29"
[1] "./mutations/cell/30"
[1] "./mutations/cell/31"
[1] "./mutations/cell/32"
[1] "./mutations/cell/33"
[1] "./mutations/cell/34"
[1] "./mutations/cell/35"
[1] "./mutations/cell/36"
[1] "./mutations/cell/37"
[1] "./mutations/cell/38"
[1] "./mutations/cell/39"
[1] "./mutations/cell/40"
[1] "./mutations/cell/41"
[1] "./mutations/cell/42"
[1] "./mutations/cell/43"
[1] "./mutations/cell/44"
[1] "./mutations/cell/45"
[1] "./mutations/cell/46"
[1] "./mutations/cell/47"
[1] "./mutations/cell/48"
[1] "./mutations/cell/49"
[1] "./mutations/cell/50"
[1] "./mutations/cell/51"
[1] "./mutations/cell/52"
[1] "./mutations/cell/53"
[1] "./mutations/cell/54"
[1] "./mutations/cell/55"
[1] "./mutations/cell/56"
[1] "./mutations/cell/57"
[1] "./mutations/cell/58"
[1] "./mutations/cell/59"
[1] "./mutations/cell/60"
[1] "./mutations/cell/61"
[1] "./mutations/cell/62"
[1] "./mutations/cell/63"
[1] "./mutations/cell/64"
[1] "./mutations/cell/65"
[1] "./mutations/cell/66"
[1] "./mutations/cell/67"
[1] "./mutations/cell/68"
[1] "./mutations/cell/69"
[1] "./mutations/cell/70"
[1] "./mutations/cell/71"
[1] "./mutations/cell/72"
[1] "./mutations/cell/73"
[1] "./mutations/cell/74"
[1] "./mutations/cell/75"
[1] "./mutations/cell/76"
[1] "./mutations/cell/77"
[1] "./mutations/cell/78"
[1] "./mutations/cell/79"
[1] "./mutations/cell/80"
[1] "./mutations/cell/81"
[1] "./mutations/cell/82"
[1] "./mutations/cell/83"
[1] "./mutations/cell/84"
[1] "./mutations/cell/85"
[1] "./mutations/cell/86"
[1] "./mutations/cell/87"
[1] "./mutations/cell/88"
[1] "./mutations/cell/89"
[1] "./mutations/cell/90"
[1] "./mutations/cell/91"
[1] 87581    86
Processing coverage data for 1 th cell
Processing coverage data for 2 th cell
Processing coverage data for 3 th cell
Processing coverage data for 4 th cell
Processing coverage data for 5 th cell
Processing coverage data for 6 th cell
Processing coverage data for 7 th cell
Processing coverage data for 8 th cell
Processing coverage data for 9 th cell
Processing coverage data for 10 th cell
Processing coverage data for 11 th cell
Processing coverage data for 12 th cell
Processing coverage data for 13 th cell
Processing coverage data for 14 th cell
Processing coverage data for 15 th cell
Processing coverage data for 16 th cell
Processing coverage data for 17 th cell
Processing coverage data for 18 th cell
Processing coverage data for 19 th cell
Processing coverage data for 20 th cell
Processing coverage data for 21 th cell
Processing coverage data for 22 th cell
Processing coverage data for 23 th cell
Processing coverage data for 24 th cell
Processing coverage data for 25 th cell
Processing coverage data for 26 th cell
Processing coverage data for 27 th cell
Processing coverage data for 28 th cell
Processing coverage data for 29 th cell
Processing coverage data for 30 th cell
Processing coverage data for 31 th cell
Processing coverage data for 32 th cell
Processing coverage data for 33 th cell
Processing coverage data for 34 th cell
Processing coverage data for 35 th cell
Processing coverage data for 36 th cell
Processing coverage data for 37 th cell
Processing coverage data for 38 th cell
Processing coverage data for 39 th cell
Processing coverage data for 40 th cell
Processing coverage data for 41 th cell
Processing coverage data for 42 th cell
Processing coverage data for 43 th cell
Processing coverage data for 44 th cell
Processing coverage data for 45 th cell
Processing coverage data for 46 th cell
Processing coverage data for 47 th cell
Processing coverage data for 48 th cell
Processing coverage data for 49 th cell
Processing coverage data for 50 th cell
Processing coverage data for 51 th cell
Processing coverage data for 52 th cell
Processing coverage data for 53 th cell
Processing coverage data for 54 th cell
Processing coverage data for 55 th cell
Processing coverage data for 56 th cell
Processing coverage data for 57 th cell
Processing coverage data for 58 th cell
Processing coverage data for 59 th cell
Processing coverage data for 60 th cell
Processing coverage data for 61 th cell
Processing coverage data for 62 th cell
Processing coverage data for 63 th cell
Processing coverage data for 64 th cell
Processing coverage data for 65 th cell
Processing coverage data for 66 th cell
Processing coverage data for 67 th cell
Processing coverage data for 68 th cell
Processing coverage data for 69 th cell
Processing coverage data for 70 th cell
Processing coverage data for 71 th cell
Processing coverage data for 72 th cell
Processing coverage data for 73 th cell
Processing coverage data for 74 th cell
Processing coverage data for 75 th cell
Processing coverage data for 76 th cell
Processing coverage data for 77 th cell
Processing coverage data for 78 th cell
Processing coverage data for 79 th cell
Processing coverage data for 80 th cell
Processing coverage data for 81 th cell
Processing coverage data for 82 th cell
Processing coverage data for 83 th cell
Processing coverage data for 84 th cell
Processing coverage data for 85 th cell
Processing coverage data for 86 th cell
[1] 50880    86
keep
FALSE  TRUE
50351   529
keep
FALSE  TRUE 9    77

出错解决 | Error: cannot allocate vector of size 109.7 Mb相关推荐

  1. Error: cannot allocate vector of size 88.1 Mb问题

    标签:tps   ace   应该   reference   big   err   无法   注意   hive 这几天训练模型运行代码的时候,老是提示我说:Error: cannot alloc ...

  2. Error: cannot allocate vector of size XX Gb

    Error: cannot allocate vector of size XX Gb 目录 Error: cannot allocate vector of size XX Gb #问题 #解决 # ...

  3. mysql错误码1709_MySQL5.6出现ERROR 1709 (HY000): Index column size too large问题的解决方法...

    一.问题 mysql 5.6 出现如下问题: [ERROR 1709 (HY000): Index column size too large. The maximum column size is ...

  4. mysql data too large_MySQL数据库之mysql 主从同步故障解决   Error 'Row size too large ( 8126)....

    本文主要向大家介绍了MySQL数据库之mysql 主从同步故障解决   Error 'Row size too large (> 8126). ,通过具体的内容向大家展现,希望对大家学习MySQ ...

  5. 如何解决 类似 nltk安装Wordnet出错[nltk_data] Error loading wordnet: <urlopen error [Errno 111] 问题

    参考:https://blog.csdn.net/liu16659/article/details/109691534 最近想做一个NLP的数据增强,于是找到了 EDA: Easy Data Augm ...

  6. VC6.0编译出错Compiling...,Error spawning cl.exe的解决方法

    VC6.0编译出错Compiling-,Error spawning cl.exe的解决方法 出现错误的原因由于路径设置错误 依次点击工具->选项->目录 目录(S)有四个下拉选项 分别为 ...

  7. ERROR CODE:0X8007000D Microsoft Office 2010在安装过程中出错 解决方法

    Microsoft Office 2010在安装过程中出错 解决方法 XP系统安装OFFICE 2010过程中遇到进度条回滚后提示:"Microsoft Office 2010在安装过程中出 ...

  8. Centos7安装MySQL安装出错:Error: Package: MariaDB-client-5.5.49-1.el7.centos.x86_64 (base)的解决办法

    Cents7上MySQL安装出错:Error: Package: MariaDB-client-5.5.49-1.el7.centos.x86_64 (base)的解决办法: Error: Packa ...

  9. kafka启动报错:INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error=‘Cannot allocate

    现象 启动kafka报错 INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot alloca ...

最新文章

  1. python导入本地文件-Python使用import导入本地脚本及导入模块的技巧总结
  2. http如何像tcp一样实时的收消息?
  3. 【Java】5.1 类和对象
  4. 讲师征集| .NET Conf China 2021正式启动!
  5. intellij idea强制更新索引
  6. 每个初学者都应该搞懂的问题
  7. easy Connect连接成功,但是虚拟IP地址获取失败,而导致网页无法打开
  8. Arcgis制作行政区划矢量文件(shp格式)
  9. Can't open ACPI ATK0100 kernel mode driver解决方法
  10. matlab 泊松分布作图,matlab用一组数据画泊松分布图
  11. linux切换root 权限,【linux】sudo su切换到root权限
  12. java520.1314表白_521.1314表白的数学题大全 临沂学霸520专用表白方式
  13. java将淘宝客链接转换为正常商品链接
  14. 美国软件供应链安全行动中的科技巨头们
  15. python免费课程全套-为了学习Python,我汇总了这10个免费的视频课程!
  16. C/C++程序计时函数
  17. Bilateral Filtering(双边滤波)算法研究
  18. Linux 下文件的查询与搜索
  19. 大乐透双色球号码自动生成器
  20. linux中进程与线程

热门文章

  1. python 量化投资【1】技术指标择时macd、ATR、RSI、KDJ等
  2. 多智能相机视觉系统助力实现智能制造
  3. 智能水泵控制器,如何选型?
  4. 修改弹性公网IP的带宽
  5. 饮料售货机——状态机
  6. firefox的html校验与dreamweave
  7. Python(1)初识
  8. 腾讯太极广告一站式机器学习平台的产品化之路
  9. 微信小程序该怎么推广引流?
  10. 网易云信-短信验证码发送、验证