摘要: 1、创建测试数据 [root@linuxprobe test]# seq 20 > a.txt [root@linuxprobe test]# ls a.txt [root@linuxprobe test]# head a.txt 1 2 3 4 5 6 7 8 9 10 2、提取奇数行 [root 阅读全文
posted @ 2020-10-02 09:50 小鲨鱼2018 阅读(2963) 评论(0) 推荐(0) 编辑
摘要: 1、创建测试数据 [root@linuxprobe test]# seq 30 > a.txt [root@linuxprobe test]# ls a.txt [root@linuxprobe test]# head a.txt 1 2 3 4 5 6 7 8 9 10 2、提取奇数行 [root 阅读全文
posted @ 2020-10-01 23:29 小鲨鱼2018 阅读(3001) 评论(0) 推荐(0) 编辑
摘要: 1、遇到一个数据需要提取奇数列 创建测试数据 [root@linuxprobe test]# seq -f %03g 60 | xargs -n 30 > test.txt[root@linuxprobe test]# seq -f c%02g 30 | xargs |cat - test.txt 阅读全文
posted @ 2020-10-01 23:12 小鲨鱼2018 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 1、遇到一个数据需要提取奇数列 [root@linuxprobe test]# cat test.txtc1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 阅读全文
posted @ 2020-10-01 23:09 小鲨鱼2018 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 1、运行perl程序遇到如下报错,Can't exec "epstopdf": No such file or directory 2、 安装 epstopdf git clone https://github.com/lgong30/epstopdf.g cd epstopdf/ chmod +x 阅读全文
posted @ 2020-10-01 21:47 小鲨鱼2018 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: 1、sh: gnuplot: command not found 2、 安装 yum install gnuplot 阅读全文
posted @ 2020-10-01 17:51 小鲨鱼2018 阅读(2720) 评论(0) 推荐(0) 编辑
摘要: 1、使用beagle填充遇到如下报错: 2、原因是有两个相邻位点出现如下全部杂合基因型组合: 目前原因未知。 阅读全文
posted @ 2020-09-30 20:04 小鲨鱼2018 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 1、split命令用于分离文件 创建测试文件: [root@linuxprobe test]# dd if=/dev/zero bs=1024 count=1000000 of=test.txt 1000000+0 records in 1000000+0 records out 102400000 阅读全文
posted @ 2020-09-28 23:50 小鲨鱼2018 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 1、利用data.frame函数随机生成数据框,dat1为生成的数据框 c1 <- 1:5 c2 <- c(2,5,1,8,6) c3 <- c("w","q","r","t","p") c4 <- c("i","w","u","z","v") dat1 <- data.frame(c1,c2,c3 阅读全文
posted @ 2020-09-28 18:41 小鲨鱼2018 阅读(15160) 评论(0) 推荐(0) 编辑
摘要: 1、R语言中rep函数主要是重复输出: 简单示例: rep(1,4) ## 1重复4次 [1] 1 1 1 1 rep(1:3,4) ##向量1—3重复4次 [1] 1 2 3 1 2 3 1 2 3 1 2 3 2、each和time选项 rep(1:3,each = 3) ##每个元素重复三次 阅读全文
posted @ 2020-09-27 23:20 小鲨鱼2018 阅读(26276) 评论(0) 推荐(0) 编辑