allpy
annotate test/test.py @ 99:ffc102ed0249
lib::save_fasta ugly bug fixed
author | boris <bnagaev@gmail.com> |
---|---|
date | Wed, 20 Oct 2010 23:38:21 +0400 |
parents | 3d40d7b9a123 |
children | b43daeb9d767 |
rev | line source |
---|---|
bnagaev@98 | 1 import sys |
bnagaev@83 | 2 |
bnagaev@83 | 3 from allpy.lib.project import Project |
bnagaev@83 | 4 |
bnagaev@99 | 5 p = Project(open('test.fasta')) |
bnagaev@83 | 6 print "alignment length: %i" % len(p) |
bnagaev@95 | 7 print "sequence `: %s" % str(p.sequences[0]) |
bnagaev@83 | 8 |
bnagaev@98 | 9 #~ p.sequences[0].pdb_chain_add(open('1jcc.pdb'), '1jcc', 'A') |
bnagaev@98 | 10 p.muscle_align() |
bnagaev@98 | 11 p.save_fasta(sys.stdout) |