当前位置:网站首页>R language calculates Spearman correlation coefficient in parallel to speed up the construction of co occurrence network
R language calculates Spearman correlation coefficient in parallel to speed up the construction of co occurrence network
2022-06-27 07:23:00 【Mrrunsen】
Altogether (co-occurrence network) Network analysis has increasingly become an important part of microbial ecology
Part of the , It has become a hot technology in the current articles . utilize spearman Correlation analysis is to construct co-occurrence
The important method of network , But because of OTU table There are often thousands of lines , use R Self contained corr.test() Letter
Counting is time-consuming , It seriously restricts our analysis speed . Yes spearman The correlation analysis is parallelized
Running can greatly save computing time , For this we wrote spearman Correlation analysis function to achieve parallel
Standardized operation . For the convenience of explanation , This article takes OTU table Take the data , Yes OTU Go in twos spearman phase
Turn off sex branch Analysis , a have to phase Turn off system Count r and display Writing sex p value . I People take since Oneself hand Write Of Letter Count
network_construct() And psych In bag corr.test() Function both the running time and the calculated results
Compared , Our own function network_construct() The calculation time is far less than corr.test() Function Union
The results are the same , Concrete R The code is shown below
library(psych)
system.time(corr.test(otu[,1:500],use=边栏推荐
- Bean拷贝详解
- Win10 remote connection to ECS
- Compatibility comparison between tidb and MySQL
- Configuring FTP, enterprise official website, database and other methods for ECS
- Idea method template
- [graduation season] graduation is the new beginning of your life journey. Are you ready
- Get the query parameter in the address URL specify the parameter method
- tracepoint
- Interviewer: you use Lombok every day. What is its principle? I can't answer
- winow10安装Nexus nexus-3.20.1-01
猜你喜欢

【OpenAirInterface5g】RRC NR解析之RrcSetupComplete

Process termination (have you really learned recursion? Test your recursion Foundation)

云服务器配置ftp、企业官网、数据库等方法

面试官:大量请求 Redis 不存在的数据,从而打倒数据库,你有什么方案?

Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file

2022 cisp-pte (II) SQL injection

Xiaomi Interviewer: let's talk about the proficient Registration Center for three days and three nights

win10远程连接云服务器

Coggle 30 Days of ML 7月竞赛学习

Interviewer: please introduce cache penetration, cache null value, cache avalanche and cache breakdown, which are easy to understand
随机推荐
Bean拷贝详解
再见了,敏捷Scrum
VNC Viewer方式的远程连接树莓派
poi导出excle
HTAP in depth exploration Guide
聊聊领域驱动设计
MPC control of aircraft wingtip acceleration and control surface
如何优雅的写 Controller 层代码?
mssql如何使用语句导出并删除多表数据
攻防演习防御体系构建之第二篇之应对攻击的常用策略
一個人管理1000臺服務器?這款自動化運維工具一定要掌握
Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state
Idea one click log generation
Centos7.9 install MySQL 5.7 and set startup
[graduation season] graduation is the new beginning of your life journey. Are you ready
面试官:用分库分表如何做到永不迁移数据和避免热点问题?
uview的安装和功能
[leetcode] day90 the element with the smallest K in the binary search tree
【软件工程】山东大学软件工程复习提纲
On gpu: historical development and structure