【python脚本】计算fasta序列长度;基因组contig/scaffold/chromosome长度
目的如题脚本importsys,os,redefprocess_file(reader):'''Open,read,andprintafile'''names=[]index=0dict={}forlineinreader:ifline.startswith('>'):ifindex>=1:names.append(line)index=index+1name=line[:-1]seq=''e