上一页 1 ··· 228 229 230 231 232 233 234 235 236 ··· 367 下一页
摘要: 1、测试数据 root@PC1:/home/test# ls test.py test.txt root@PC1:/home/test# cat test.txt ## 测试数据 w r s f z s d g z c w d z d g g z c e w root@PC1:/home/test# 阅读全文
posted @ 2021-12-18 21:26 小鲨鱼2018 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt ## 测试数据 w r s f a s d g z c w d a d g t z c e w 2、提取包含w的行 root@PC1:/home/tes 阅读全文
posted @ 2021-12-18 21:17 小鲨鱼2018 阅读(5806) 评论(0) 推荐(1) 编辑
摘要: plink进行阈性状(质量性状)关联分析有两种方法 --assoc 和 --logistic, 这两种方法又分别有分是否校正: --assoc --adjust 和 --logistic --adjust --logistic方法有可以选择是否添加协变量: --logistic --covar 和 阅读全文
posted @ 2021-12-17 23:47 小鲨鱼2018 阅读(2372) 评论(0) 推荐(0) 编辑
摘要: scale的作用 1、中心化: 减去平均值 2、标准化: 除以根方差 test <- c(2,3,4,6) ## 测试数据 a <- scale(test,center = F, scale = F) ## 既不中心化, 也不标准化 a b <- scale(test, center = T, sc 阅读全文
posted @ 2021-12-17 19:01 小鲨鱼2018 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: 1、 dir() dat <- read.table('test.txt',fill = T) ## fill = T,读取列数不一致的行,用“”填充 dat result <- data.frame() ## 创建空数据框 result for (i in 1:nrow(dat)) { if (( 阅读全文
posted @ 2021-12-16 23:08 小鲨鱼2018 阅读(1439) 评论(0) 推荐(0) 编辑
摘要: 1、删除test.txt末尾的单个或者多个空格或者制表符 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt ## 测试数据 2 3 4 a 3 d d w e z v e z c g z v b root@PC1:/ 阅读全文
posted @ 2021-12-16 22:40 小鲨鱼2018 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据,依据列数筛选数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt ## 测试数据 2 3 4 3 d a 3 d d w e f z v e z c g k e q z v b d root@PC1: 阅读全文
posted @ 2021-12-16 22:34 小鲨鱼2018 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 1、问题 ubuntu中解压rar文件, 如下: root@PC1:/home/test2# ls test.rar root@PC1:/home/test2# unrar e test.rar -bash: /usr/bin/unrar: No such file or directory 2、解 阅读全文
posted @ 2021-12-16 21:52 小鲨鱼2018 阅读(2469) 评论(0) 推荐(0) 编辑
摘要: sort命令 -g选项忽略字母 1、测试数据 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt name gender score ddd 2 8 aa 1 87 ff 2 3 ss 1 23 root@PC1:/home/te 阅读全文
posted @ 2021-12-15 23:28 小鲨鱼2018 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1、在a.txt中每行匹配的最后一个e替换为xxx(每行都有e的情况) dat <- read.table("a.txt", header = F) dat index <- data.frame() ## 创建数据框,储存匹配结果 for (i in 1:nrow(dat)) { count = 阅读全文
posted @ 2021-12-15 20:48 小鲨鱼2018 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 228 229 230 231 232 233 234 235 236 ··· 367 下一页