Exemple #1
0
 def test_get_bwa_0_7_12(self):
     content = "\nProgram: bwa (alignment via Burrows-Wheeler transformation)\nVersion: 0.7.12-r1039"
     with mock.patch('subprocess.getoutput',
                     mock.Mock(return_value=content)):
         self.assertEqual(
             '0.7.12-r1039',
             align.get_aligner_version(align.SUPPORTED_ALIGNER.BWA_MEM))
Exemple #2
0
 def test_get_blat_36x2(self):
     content = 'blat - Standalone BLAT v. 36x2 fast sequence search command line tool\n'
     with mock.patch('subprocess.getoutput',
                     mock.Mock(return_value=content)):
         self.assertEqual(
             '36x2',
             align.get_aligner_version(align.SUPPORTED_ALIGNER.BLAT))
Exemple #3
0
 def test_get_bwa_0_7_15(self):
     content = (
         "\nProgram: bwa (alignment via Burrows-Wheeler transformation)\nVersion: 0.7.15-r1140"
     )
     with mock.patch('subprocess.getoutput', mock.Mock(return_value=content)):
         assert align.get_aligner_version(align.SUPPORTED_ALIGNER.BWA_MEM) == '0.7.15-r1140'
Exemple #4
0
 def test_get_blat_36(self):
     content = "blat - Standalone BLAT v. 36 fast sequence search command line tool"
     with mock.patch('subprocess.getoutput', mock.Mock(return_value=content)):
         assert align.get_aligner_version(align.SUPPORTED_ALIGNER.BLAT) == '36'