摘要:
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 阅读全文
摘要:
001、 [root@PC1 test03]# ls a.fa [root@PC1 test03]# cat a.fa ## 测试序列 ATCGATGC [root@PC1 test03]# cat a.fa | tr "ATCG" "TAGC" ## 提取碱基序列的互补序列 TAGCTACG 阅读全文
摘要:
001、 >>> str1 = "ab_cd ef_gh ij_kl" ## 测试字符串 >>> str1.split(" ") ## 一句空格进行拆分 ['ab_cd', 'ef_gh', 'ij_kl'] >>> import re >>> re.split("[_| ]",str1) ## 同 阅读全文
摘要:
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)] 阅读全文