Changeset 10 for biocomp.pscoils
- Timestamp:
- 02/16/08 10:00:35 (4 years ago)
- Location:
- biocomp.pscoils/trunk
- Files:
-
- 2 added
- 1 modified
- 1 moved
-
src (modified) (1 prop)
-
tests/ceba_bovin.Coils (added)
-
tests/ceba_bovin.fasta (added)
-
tests/tests_coils.py (moved) (moved from biocomp.pscoils/trunk/tests/test_ferritin.py) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
biocomp.pscoils/trunk/src
-
Property
svn:ignore set
to
biocomp.pscoils.egg-info
-
Property
svn:ignore set
to
-
biocomp.pscoils/trunk/tests/tests_coils.py
r6 r10 6 6 7 7 class test_suite(TestCase): 8 def test_ coils(self):8 def test_ferritin(self): 9 9 # ../psCoils.py -f ./ferritin.fasta -l F > ./ferritin.Coils 10 10 weight='un' … … 22 22 bench_output = open("tests/ferritin.Coils").read() 23 23 self.assertEqual(output.getvalue(),bench_output) 24 25 def test_ceba_bovin(self): 26 # ../psCoils.py -f ./ferritin.fasta -l F > ./ferritin.Coils 27 weight='un' 28 wlambda=0.5 29 win=21 30 modeprofile=False 31 seqs=biocomp.pscoils.readFasta("tests/ceba_bovin.fasta") 32 modefasta=True 33 labels='F' 34 params=biocomp.pscoils.Params.Params(weight,win) 35 output = StringIO.StringIO() 36 for name in seqs.keys(): 37 gg,gcc,prob,hept_seq,score=biocomp.pscoils.pred_coil(seqs[name],len(seqs[name]),params,biocomp.pscoils.seqScore) 38 biocomp.pscoils.printCoil(seqs[name],len(seqs[name]),hept_seq,score,prob,gcc,gg,labels,io=output) 39 bench_output = open("tests/ceba_bovin.Coils").read() 40 self.assertEqual(output.getvalue(),bench_output) 24 41 25 42 if __name__ == "__main__":
