Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 253 Bytes
import fasta
def hdist(x,y):
return len([i for i,t in enumerate(x) if t!=y[i]])
s=fasta.readFASTA("rosalind_pdst.txt")
for x in s.values():
for y in s.values():
print '%1.5f ' % (float(hdist(x,y))/len(x)),
print
You can’t perform that action at this time.