美文网首页
2018-06-09 第二阶段,使用diamond跑程序

2018-06-09 第二阶段,使用diamond跑程序

作者: keaidelele | 来源:发表于2018-06-11 15:59 被阅读8次

将没有的项目弄出来

import os
myroot = 'cazymetotal'
i = 0
# for root, dirs, files in os.walk(myroot):
#     for fungi in dirs:
#         for root1, dirs1, files1 in os.walk(myroot + '/' + fungi):
#             n = 0
#             for onefile in files1:
#                 if onefile.endswith(".fasta"):
#                     n = n + 1
#                 if "gff" in onefile:
#                     n = n + 2
#             if n < 2:
#                 print (fungi)
for root1, fungis, files1 in os.walk('fungi'):
    break
for root, dirs, files in os.walk(myroot):
    for onefile in files:
        fungi = onefile.split("_all")[0]
        fungis.remove(fungi)

for root2, dirs2, files2 in os.walk('parserouts_all2'):
    for item in files2:
        itemname = item.split("_all")[0]
        if itemname in fungis:
            os.system('mv parserouts_all2/'+item +' parserouts_all_rest/')

没有用的fungi

[Command: python -u /home/huangle/fungidata/www.py]
Agabi_varbur_1
Phybl2
SerlaS7_3_2
Treme1
Trire2
Aspca3
Sporo1
Mucci2
Picst3
Triha1
[Finished in 0.079s]

相关文章

  • 2018-06-09 第二阶段,使用diamond跑程序

    将没有的项目弄出来 没有用的fungi

  • 深入淘宝Diamond之客户端架构解析

    说明:本文不介绍如何使用Diamond,只介绍Diamond的实现原理 一、什么是Diamond diamond是...

  • Diamond 比对软件使用

    Diamond是一个用于比对query蛋白和数据库蛋白(blastp)或query核苷酸序列和数据库蛋白(blas...

  • android studio:java source 1.6中不

    java source 1.6中不支持diamond运算符 使用 android studio 导入项目,编译后发...

  • diamond

    BLAST本地比对太慢?不怕用diamond 生信入门:序列比对之diamond

  • Diamond

    就在几小时前,我还沉浮在眼前的匆匆行色里,看着你来我往,尽量把自己压缩在一个没有声音只有画面的自由空间里。 实际上...

  • Diamond

    一、我瞥见了几个人 “中杯卡布,在这喝。”与往常一样,一杯咖啡、一个人、一个周一的上午。 如果说有什么变化,那可能...

  • Diamond

    Maybe we don't have everything figured out right now But ...

  • diamond

    上午去舰保大看篮球比赛,想起了一首歌《diamond》。 虽然没有上场,但是我渴望做闪耀的那颗diamond。 y...

  • Diamond

    http://www.chenlianfu.com/?p=2703[http://www.chenlianfu.c...

网友评论

      本文标题:2018-06-09 第二阶段,使用diamond跑程序

      本文链接:https://www.haomeiwen.com/subject/kjdxeftx.html