上一页 1 ··· 115 116 117 118 119 120 121 122 123 ··· 403 下一页
摘要: 两者都返回首次匹配字符串的索引,re.match函数只从头开始匹配, re.search函数不限制只从头开始匹配。 001、re.match函数 [root@PC1 test2]# python3 Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11. 阅读全文
posted @ 2023-05-31 13:03 小鲨鱼2018 阅读(204) 评论(0) 推荐(0)
摘要: 001、判断文件是否存在 (base) [root@PC1 test4]# ls a.txt dir01 (base) [root@PC1 test4]# if [ -e a.txt ]; then echo "exist"; fi ## 判断文件是否存在 exist (base) [root@PC 阅读全文
posted @ 2023-05-31 08:41 小鲨鱼2018 阅读(7473) 评论(0) 推荐(0)
摘要: 001、代码 dat <- c(3, 8, 2, 9, 4) k <- barplot(dat, axes = FALSE, ylim = c(-4, 10) ,names.arg = FALSE) axis(2, at = seq(0, 10, 2)) label <- paste0("label 阅读全文
posted @ 2023-05-31 00:33 小鲨鱼2018 阅读(851) 评论(0) 推荐(0)
摘要: 001、将所有的小写字母转换为大写 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 abd mnj uyr XDE THR QYE cvb Ddg gyi [root@PC1 test4]# sed 's/[a-z]/\U 阅读全文
posted @ 2023-05-30 21:29 小鲨鱼2018 阅读(856) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test3]# ls test1 test2 [root@PC1 test3]# tree ## 测试数据 . ├── test1 │ └── a.txt └── test2 └── b.txt 2 directories, 2 files [root@PC1 test 阅读全文
posted @ 2023-05-30 16:42 小鲨鱼2018 阅读(2887) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 aa bb cc dd kk jj ee uu rr [root@PC1 test4]# sed -n l a.txt aa bb cc$ dd\tkk\tjj$ 阅读全文
posted @ 2023-05-29 00:47 小鲨鱼2018 阅读(113) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 ee ff 88 fff aa ff uuk fff uuuu kkk yyy fff kkkk [root@PC1 test4]# awk '{print len 阅读全文
posted @ 2023-05-29 00:02 小鲨鱼2018 阅读(165) 评论(0) 推荐(0)
摘要: 001、匹配空格 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 1_aa bb 2_ccdd 3_ee ff 4_gg hh kk [root@PC1 test4]# sed -n l a.txt ## 显示出空格和制表 阅读全文
posted @ 2023-05-28 23:49 小鲨鱼2018 阅读(1024) 评论(0) 推荐(0)
摘要: 001、计算纯合率 (base) [root@PC1 test]# ls outcome.bed outcome.fam outcome.map outcome.ped outcome.bim outcome.log outcome.nosex (base) [root@PC1 test]# (ba 阅读全文
posted @ 2023-05-28 16:24 小鲨鱼2018 阅读(135) 评论(0) 推荐(0)
摘要: 001、测试数据 (base) [root@PC1 test]# ls ## 测试数据, plink格式 outcome.map outcome.ped (base) [root@PC1 test]# cat outcome.map 1 snp1 0 55910 1 snp2 0 85204 1 s 阅读全文
posted @ 2023-05-28 16:16 小鲨鱼2018 阅读(204) 评论(0) 推荐(0)
上一页 1 ··· 115 116 117 118 119 120 121 122 123 ··· 403 下一页