上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 367 下一页
摘要: R 语言中bquote函数用于显示变量的值, 有点类似与shell中的$符号, 主要应用于绘图系统中坐标名称标签的显示。 001、 i = 100 ## 定义一个测试变量 bquote(i) ## 不能直接输出变量的值 bquote(.(i)) ## 需要借助.()的形式输出变量的值 002、应用于 阅读全文
posted @ 2023-07-08 21:59 小鲨鱼2018 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 001、basename:去掉路径名,单独获取文件名 >>> import os.path >>> os.getcwd() '/home/test02' >>> os.listdir() ['a.txt', 'test_dir'] >>> os.path.basename("/home/test02 阅读全文
posted @ 2023-07-07 16:48 小鲨鱼2018 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 001、 sed实现 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 01 02 05 06 x 09 10 44 66 33 77 13 14 17 18 k 21 22 88 99 25 26 21 22 x 25 阅读全文
posted @ 2023-07-07 11:11 小鲨鱼2018 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test03]# ls file.txt [root@PC1 test03]# cat file.txt ## 测试数据 match random text line 1 match match match random text line 2 match random 阅读全文
posted @ 2023-07-07 10:35 小鲨鱼2018 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) [b20223040323@admin2 test]$ ls a.txt (base) [b20223040323@admin2 test]$ cat a.txt ## 测试数据 gene exon exon exon exon gene exon exon gene exo 阅读全文
posted @ 2023-07-07 08:48 小鲨鱼2018 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 001、列出当前的工作路径 >>> import os ## 导入os模块 >>> os.getcwd() ## 列出当前的工作路径 '/home/test02' 02、改变工作路径 >>> os.getcwd() '/home/test02' >>> os.chdir("/home/test03" 阅读全文
posted @ 2023-07-06 23:35 小鲨鱼2018 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 001、生成统计文件 [root@PC1 test01]# ls ## 测试bam文件 SRR21814498.sorted.bam [root@PC1 test01]# samtools flagstat SRR21814498.sorted.bam > stat.txt ## 生成统计文件 [r 阅读全文
posted @ 2023-07-06 20:54 小鲨鱼2018 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 ID=gene-ABCC1 a 6121 ID=gene-ABCC1 b 6121 ID=gene-JFEE3 j 876 ID=gene-ABCC5 c 57 阅读全文
posted @ 2023-07-06 12:00 小鲨鱼2018 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 001、-s用于指定输出的间隔符 [root@PC1 test02]# seq 10 ## 默认输出分隔符为换行符 1 2 3 4 5 6 7 8 9 10 [root@PC1 test02]# seq -s " " 10 ## 指定空格为换行符 1 2 3 4 5 6 7 8 9 10 [root 阅读全文
posted @ 2023-07-05 21:45 小鲨鱼2018 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 001、创建数组 [root@PC1 test02]# ay=(1 2 3 4) ## 生成数组 [root@PC1 test02]# echo ${ay[*]} ## 输出数组 1 2 3 4 [root@PC1 test02]# echo ${#ay[*]} ## 输出数组的长度 4 002、 阅读全文
posted @ 2023-07-05 18:11 小鲨鱼2018 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 367 下一页