Exemple #1
0
 def test_smmtap_abitrary_peptide_length(self):
     smmtap = TAPPredictorFactory("smmtap")
     peptides = [
         Peptide("SYFPEITHI"),
         Peptide("IHTIEPFYSA"),
         Peptide("IHTIEPFYSAA")
     ]
     print smmtap.predict(peptides)
Exemple #2
0
    def test_tap_single_peptide_input(self):
        """
            Tests SVMTAP prediction

            not compared yet (dont know where)
        """
        for m in TAPPredictorFactory.available_methods():
            pred = TAPPredictorFactory(m)
            r = pred.predict(self.peptides[0])
            print(r)
Exemple #3
0
    def test_tap_single_peptide_input(self):
        """
            Tests SVMTAP prediction

            not compared yet (dont know where)
        """
        for m in TAPPredictorFactory.available_methods():
            pred = TAPPredictorFactory(m)
            r = pred.predict(self.peptides[0])
            print r
Exemple #4
0
 def test_peptide_chunksize(self):
     for m in TAPPredictorFactory.available_methods():
         pred = TAPPredictorFactory(m)
         r = pred.predict(self.peptides, chunksize=1)
         print(r)
Exemple #5
0
 def test_smmtap_abitrary_peptide_length(self):
     smmtap = TAPPredictorFactory("smmtap")
     peptides = [Peptide("SYFPEITHI"), Peptide("IHTIEPFYSA"), Peptide("IHTIEPFYSAA")]
     print smmtap.predict(peptides)
Exemple #6
0
 def test_peptide_chunksize(self):
     for m in TAPPredictorFactory.available_methods():
         pred = TAPPredictorFactory(m)
         r = pred.predict(self.peptides, chunksize=1)
         print r