上一页 1 ··· 269 270 271 272 273 274 275 276 277 ··· 408 下一页
摘要: plink进行阈性状(质量性状)关联分析有两种方法 --assoc 和 --logistic, 这两种方法又分别有分是否校正: --assoc --adjust 和 --logistic --adjust --logistic方法有可以选择是否添加协变量: --logistic --covar 和 阅读全文
posted @ 2021-12-17 23:47 小鲨鱼2018 阅读(3039) 评论(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 阅读(1715) 评论(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 阅读(2169) 评论(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 阅读(1651) 评论(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 阅读(896) 评论(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 阅读(2605) 评论(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 阅读(299) 评论(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 阅读(181) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test/test# ls test.txt root@PC1:/home/test/test# cat test.txt ## 实现将每行最后一个e替换为xxx e r e y e u e e e g e 3 h r 1 3 e g e y e e s 阅读全文
posted @ 2021-12-15 00:23 小鲨鱼2018 阅读(2225) 评论(0) 推荐(0)
摘要: 1、创建测试数据 root@PC1:/home/test/test# seq -f %02g 40 | awk '{if(NR % 4 == 0) {print $0} else {printf("%s ", $0)}}' ## 利用seq命令产生连续数字,然后利用awk分配行 01 02 03 0 阅读全文
posted @ 2021-12-15 00:01 小鲨鱼2018 阅读(227) 评论(0) 推荐(0)
上一页 1 ··· 269 270 271 272 273 274 275 276 277 ··· 408 下一页