上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 367 下一页
摘要: 001、 [root@PC1 test03]# ls a.fa test.py [root@PC1 test03]# cat a.fa ## 测试fasta文件 ATCGATGC [root@PC1 test03]# cat test.py ## python程序 #!/usr/bin/env py 阅读全文
posted @ 2023-06-06 23:54 小鲨鱼2018 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test03]# ls a.fa [root@PC1 test03]# cat a.fa ## 测试序列 ATCGATGC [root@PC1 test03]# cat a.fa | tr "ATCG" "TAGC" ## 提取碱基序列的互补序列 TAGCTACG 阅读全文
posted @ 2023-06-06 23:45 小鲨鱼2018 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 001、 >>> str1 = "ab_cd ef_gh ij_kl" ## 测试字符串 >>> str1.split(" ") ## 一句空格进行拆分 ['ab_cd', 'ef_gh', 'ij_kl'] >>> import re >>> re.split("[_| ]",str1) ## 同 阅读全文
posted @ 2023-06-06 11:37 小鲨鱼2018 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 001、 >>> import sys >>> print(sys.version) 2.7.5 (default, Jun 28 2022, 15:30:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] 阅读全文
posted @ 2023-06-06 11:32 小鲨鱼2018 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test3]# ls a.txt [root@PC1 test3]# cat a.txt ## 测试数据 334 gene kkk yyy gene gene kkk gene gene mmmm [root@PC1 test3]# awk 'BEGIN{a="no"} 阅读全文
posted @ 2023-06-05 13:18 小鲨鱼2018 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test3]# ls a.txt [root@PC1 test3]# cat a.txt ## 测试数据 3 5 44 agf gene 45 87 gene dfg iu gene 887 777 [root@PC1 test3]# sed '1,/gene/{/ge 阅读全文
posted @ 2023-06-05 13:04 小鲨鱼2018 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test3]# ls a.txt b.txt [root@PC1 test3]# cat a.txt ## 测试数据 3 a 5 b b 4 7 [root@PC1 test3]# cat b.txt ## 测试数据 3 a 5 b 4 7 [root@PC1 test 阅读全文
posted @ 2023-06-05 12:45 小鲨鱼2018 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test3]# ls file1.txt file2.txt [root@PC1 test3]# cat file1.txt 1 John 2 Mary 3 Tom [root@PC1 test3]# cat file2.txt 1 M 2 F 4 M [root@PC 阅读全文
posted @ 2023-06-04 13:33 小鲨鱼2018 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 001、输出匹配字符之后的若干行 a、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 01 02 kk 03 04 05 06 07 kk 08 09 10 11 12 ## 输出匹配字符之后的3行 [root@PC1 阅读全文
posted @ 2023-06-04 00:23 小鲨鱼2018 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test3]# ls test.txt [root@PC1 test3]# cat test.txt ## 测试数据 jjjj kkk gene jjj dddd yyy iiii ppp ffff 999 gene ttt eeee mmm aaaa nnn [roo 阅读全文
posted @ 2023-06-03 20:12 小鲨鱼2018 阅读(258) 评论(0) 推荐(0) 编辑
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 367 下一页