예제 #1
0
 def test_intersect(self):
     isamp = self.gen_fake_isamp()
     series = Series('GSE0')
     sample_list = [Sample('GSM10', series), Sample('GSM20', series)]
     for __ in sample_list :
         series.add_passed_sample(__)
     self.assertEqual(ppr.intersect(series, isamp), sample_list)
예제 #2
0
 def test_intersect_with_discrenpacy(self, L):
     isamp = self.gen_fake_isamp()
     series = Series('GSE0')
     sample_list = [Sample('GSM10', series)]
     for __ in sample_list :
         series.add_passed_sample(__)
     self.assertEqual(ppr.intersect(series, isamp), sample_list)
     L.check(('rsempipeline.utils.pre_pipeline_run', 'ERROR',
              'Discrepancy for GSE0: 1 GSMs in soft, 2 GSMs in isamp, and only 1 left after intersection.'),)