上一页 1 ··· 197 198 199 200 201 202 203 204 205 ··· 403 下一页
摘要: 001、 a <- 1:3 b <- letters[1:3] c <- LETTERS[1:3] d <- rep("K",3) vx <- paste(a, b, c, sep = "_") vx dat <- data.frame(vx, d) ## 测试数据框 dat library(tid 阅读全文
posted @ 2022-08-04 13:58 小鲨鱼2018 阅读(1663) 评论(0) 推荐(0)
摘要: 001、 a <- 1:3 b <- letters[1:3] c <- LETTERS[1:3] d <- rep("K",3) dat <- data.frame(a, b, c, d) ## 生成测试数据框 dat library(tidyr) dat1 <- unite(dat, "cxx" 阅读全文
posted @ 2022-08-04 13:39 小鲨鱼2018 阅读(671) 评论(0) 推荐(0)
摘要: 001、shell实现 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt 3 a 8 a y a a a f y a a a a a e a a a r k root@PC1:/home/test2# awk ' 阅读全文
posted @ 2022-08-03 15:33 小鲨鱼2018 阅读(194) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test3# ls test.py root@PC1:/home/test3# cat test.py #!/usr/bin/python import argparse parser = argparse.ArgumentParser() parser.ad 阅读全文
posted @ 2022-08-03 15:16 小鲨鱼2018 阅读(86) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test2# cat test.txt 1_55910>snp1 0.05591 1_85204>snp2 0.085204 1_122948>snp3 0.122948 1_203750>snp4 0.20375 1_312707>snp5 0.312707 阅读全文
posted @ 2022-08-03 07:18 小鲨鱼2018 阅读(1212) 评论(0) 推荐(0)
摘要: str_detect函数属于tidyverse包中函数, 功能类似于grepl函数。 001、 str1 <- c("xx", "yy", "zz", "xx", "pp", "xx") str1 grepl("xx", str1) str_detect("xx", str1) 阅读全文
posted @ 2022-08-03 06:22 小鲨鱼2018 阅读(898) 评论(0) 推荐(0)
摘要: 001、shell实现 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据, 删除第一次匹配xpehh以外的所有匹配xpehh的行 01 ee ff 02 ee de 03 dd ee 04 jj 阅读全文
posted @ 2022-08-03 05:56 小鲨鱼2018 阅读(185) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test2# ls test.map root@PC1:/home/test2# cat test.map ## 用一个map文件进行测试,按照染色体打乱顺序 6 snp16 0 312984 1 snp2 0 85204 5 snp15 0 204629 6 阅读全文
posted @ 2022-08-03 00:45 小鲨鱼2018 阅读(408) 评论(0) 推荐(0)
摘要: 001、压缩保留源文件 root@PC1:/home/test2# ls outcome.map root@PC1:/home/test2# gzip -c outcome.map > new.map.gz ## 压缩为gz文件,并保留源文件 root@PC1:/home/test2# ls new 阅读全文
posted @ 2022-08-03 00:20 小鲨鱼2018 阅读(734) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt aa dd ss dd ff xv ef 33 cc xx ee ww df ff zc xx xx ff er ed ww xx xx ee er uy vv r 阅读全文
posted @ 2022-08-02 23:21 小鲨鱼2018 阅读(688) 评论(0) 推荐(0)
上一页 1 ··· 197 198 199 200 201 202 203 204 205 ··· 403 下一页