摘要: rm(list = ls()) setwd("C:\\Users\\Administrator\\Desktop\\machine learning\\分组散点图") data("mpg") library(ggplot2) data <- read.table("data.txt", sep = 阅读全文
posted @ 2024-09-11 15:25 王哲MGG_AI 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 此代码的功能是遍历当前目录下的所有TSV文件,将每个文件的第一列内容提取出来,并将其写入一个TXT文件中。每个TSV文件的内容占一行,文件名作为该行的第一列,第一列内容依次排开。 rm(list = ls()) setwd("C:\\Users\\Administrator\\Desktop\\pr 阅读全文
posted @ 2024-08-06 10:28 王哲MGG_AI 阅读(11) 评论(0) 推荐(0) 编辑
摘要: # 清空工作环境,删除所有对象 rm(list = ls()) setwd("C:\\Users\\Administrator\\Desktop\\New_microtable\\Co-occurrence Network") #设置工作目录 # 加载必要的包 library(ggplot2) li 阅读全文
posted @ 2024-08-02 11:33 王哲MGG_AI 阅读(7) 评论(0) 推荐(0) 编辑
摘要: rm (list = ls ()) #清除所有变量 library(KEGGREST) # 设置工作目录并读取数据 setwd("C:\\Users\\Administrator\\Desktop\\New_microtable\\HUMAnN") # 根据实际路径修改 pathways_df <- 阅读全文
posted @ 2024-07-06 15:37 王哲MGG_AI 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 标准化(Z-score)是用于将不同微生物的丰度数据进行标准化处理,以便在热图中更容易比较和解释不同样本之间的差异。具体来说,标准化的过程如下: abundance <- scale( abundance, center = TRUE, # 减去均值 scale = TRUE # 除以标准差 ) 标 阅读全文
posted @ 2024-07-05 09:53 王哲MGG_AI 阅读(101) 评论(0) 推荐(0) 编辑
摘要: # 清空工作环境,删除所有对象 rm(list = ls()) library(data.table) # 加载data.table包 library(data.table) # 设置工作目录 setwd("C:\\Users\\Administrator\\Desktop") # 设置为你的工作目 阅读全文
posted @ 2024-06-19 16:07 王哲MGG_AI 阅读(15) 评论(0) 推荐(0) 编辑
摘要: rm(list = ls()) setwd("C:\\Users\\Administrator\\Desktop\\New_microtable") #设置工作目录 library(microeco) library(magrittr) library(dplyr) library(tibble) 阅读全文
posted @ 2024-06-13 22:38 王哲MGG_AI 阅读(25) 评论(0) 推荐(0) 编辑
摘要: rm(list = ls()) setwd("C:\\Users\\Administrator\\Desktop\\New_microtable") #设置工作目录 library(microeco) library(magrittr) library(dplyr) library(tibble) 阅读全文
posted @ 2024-06-12 11:12 王哲MGG_AI 阅读(35) 评论(0) 推荐(0) 编辑
摘要: rm(list = ls()) setwd("C:\\Users\\Administrator\\Desktop\\New_microtable") #设置工作目录 library(microeco) library(magrittr) library(dplyr) library(tibble) 阅读全文
posted @ 2024-06-06 08:49 王哲MGG_AI 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Vertex 135 Edge 1523 Average_degree 22.562962962963 Average_path_length 2.20846705198353 Network_diameter 6 Clustering_coefficient 0.701431967070555 D 阅读全文
posted @ 2024-06-05 20:29 王哲MGG_AI 阅读(30) 评论(0) 推荐(0) 编辑