##file为bed文件:chr,start,end file1为10条染色体的cM数据:position,cM import os,sys import bisect for file in os.listdir(/share/xulab_10t/lxl/IBD_20141224_recobination): if file.endswith(_trop_trop.bed): file1=file.repla ...
##将inf1作为字典,在inf2中进行搜索,将匹配上的gene的fasat序列提取出来! import os, sys for i in range(1,11): inf1=open(chr+str(i)+.gene.one,r) inf2=open(chr+str(i)+.raw.cds,r) ouf=open(chr+str(i)+.chr ...