Changeset 10 for biocomp.pscoils

Show
Ignore:
Timestamp:
02/16/08 10:00:35 (4 years ago)
Author:
mauro
Message:
 
Location:
biocomp.pscoils/trunk
Files:
2 added
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • biocomp.pscoils/trunk/src

    • Property svn:ignore set to
      biocomp.pscoils.egg-info
  • biocomp.pscoils/trunk/tests/tests_coils.py

    r6 r10  
    66 
    77class test_suite(TestCase): 
    8     def test_coils(self): 
     8    def test_ferritin(self): 
    99        # ../psCoils.py -f ./ferritin.fasta -l F > ./ferritin.Coils 
    1010        weight='un' 
     
    2222        bench_output = open("tests/ferritin.Coils").read() 
    2323        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)         
    2441 
    2542if __name__ == "__main__":