上一页 1 ··· 216 217 218 219 220 221 222 223 224 ··· 403 下一页
摘要: 1、提取第一列 [root@PC1 test2]# ls a.txt test.py [root@PC1 test2]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 阅读全文
posted @ 2022-06-02 22:56 小鲨鱼2018 阅读(7950) 评论(0) 推荐(0)
摘要: 1、问题 [root@PC1 test2]# pip install numpy bash: pip: command not found... 2、系统 [root@PC1 test2]# cat /etc/system-release Rocky Linux release 8.5 (Green 阅读全文
posted @ 2022-06-02 22:12 小鲨鱼2018 阅读(1981) 评论(0) 推荐(0)
摘要: 数据来源:https://www.jianshu.com/p/4f7aeae81ef1 1、 pbmc <- NormalizeData(pbmc) dat <- pbmc[["RNA"]]@counts ## 原始数据 dat <- as.data.frame(dat) dat2 <- matri 阅读全文
posted @ 2022-06-02 19:22 小鲨鱼2018 阅读(208) 评论(0) 推荐(0)
摘要: 1、 [root@PC1 test3]# ls a.txt [root@PC1 test3]# cat a.txt ## 测试数据 8.34565 3.23445 7.32423 0 8.343532523 5.34355 3.355623253 0 0 [root@PC1 test3]# awk 阅读全文
posted @ 2022-06-02 18:18 小鲨鱼2018 阅读(446) 评论(0) 推荐(0)
摘要: 1、 >>> a = [111, 222, 333] >>> "-".join(a) ## 数值类型报错 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: sequence item 0 阅读全文
posted @ 2022-06-01 23:21 小鲨鱼2018 阅读(241) 评论(0) 推荐(0)
摘要: 1、 [root@PC1 test2]# ls a.txt test.py [root@PC1 test2]# cat a.txt ## 测试数据 dsfs JHDSF ADFD dfesr fKHJ FJfdf [root@PC1 test2]# cat test.py ## 转换程序 #!/us 阅读全文
posted @ 2022-06-01 23:13 小鲨鱼2018 阅读(661) 评论(0) 推荐(0)
摘要: 1、输出文本的前三行 [root@PC1 test2]# ls a.txt test.py [root@PC1 test2]# cat a.txt ## 测试数据 1 u j d 2 s f f 3 z c e 4 z v k 5 c f y 6 w q r 7 a d g 8 e f s [roo 阅读全文
posted @ 2022-06-01 22:28 小鲨鱼2018 阅读(1557) 评论(0) 推荐(0)
摘要: 1、 [root@PC1 test2]# ls a.txt b.txt test.sh [root@PC1 test2]# cat a.txt ## 测试数据 8 2 4 8 7 3 [root@PC1 test2]# cat b.txt 8 3 4 8 5 3 6 [root@PC1 test2] 阅读全文
posted @ 2022-06-01 20:38 小鲨鱼2018 阅读(434) 评论(0) 推荐(0)
摘要: 1、 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt 8 4 2 2 8 3 1 3 4 3 4 6 [root@PC1 test2]# awk 'BEGIN{a = 0} {print $1 - a; a = $1}' a.txt ## 阅读全文
posted @ 2022-06-01 17:38 小鲨鱼2018 阅读(77) 评论(0) 推荐(0)
摘要: 001、 1、矩阵转换为三元组 num <- c(5, 2, 7, 0, 9, 3, 4, 2, 3, 1, 7, 8) dat <- matrix(num, nrow = 3, ncol = 4, byrow = T) dat rows <- rep(1:nrow(dat), each = nco 阅读全文
posted @ 2022-06-01 16:29 小鲨鱼2018 阅读(769) 评论(0) 推荐(0)
上一页 1 ··· 216 217 218 219 220 221 222 223 224 ··· 403 下一页