上一页 1 ··· 118 119 120 121 122 123 124 125 126 ··· 408 下一页
摘要: conda create -n py27 python=2.7 conda activate py27 conda install -c conda-forge r-base=4.3.0 R if (!require("BiocManager", quietly = TRUE)) install.p 阅读全文
posted @ 2023-06-07 21:28 小鲨鱼2018 阅读(577) 评论(0) 推荐(0)
摘要: 001、 >>> list1 = ["aa", "bb", "cc", "dd", "ee", "ff", "gg"] ## 测试列表 >>> list1 ['aa', 'bb', 'cc', 'dd', 'ee', 'ff', 'gg'] >>> list1[2:] ## 从2开始,一直到最 阅读全文
posted @ 2023-06-07 16:25 小鲨鱼2018 阅读(224) 评论(0) 推荐(0)
摘要: 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 阅读(108) 评论(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 阅读(42) 评论(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 阅读(95) 评论(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 阅读(24) 评论(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 阅读(85) 评论(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 阅读(62) 评论(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 阅读(54) 评论(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 阅读(43) 评论(0) 推荐(0)
上一页 1 ··· 118 119 120 121 122 123 124 125 126 ··· 408 下一页