def test_get_experiment_as_isatab(self): tmp_dir = AX.get_isatab('E-AFMX-1') # gets E-AFMX-1 MAGE-TAB files self.assertEqual(len(os.listdir(tmp_dir)), 3) self.assertSetEqual(set(os.listdir(tmp_dir)), { 'i_investigation.txt', 'a_E-AFMX-1.sdrf.txt', 's_E-AFMX-1.sdrf.txt' }) shutil.rmtree(tmp_dir)
def test_get_experiment_as_isatab_afmx_5(self): AX.get_isatab('E-AFMX-5', self._tmp_dir) # gets E-AFMX-5 MAGE-TAB files with open(os.path.join(self._tmp_dir, 'i_investigation.txt')) as i_fp: isatab.validate(i_fp)
def test_get_experiment_as_isatab_afmx_2( self): # FIXME -> output ISA-Tab has many missing cells! WHY!?!? AX.get_isatab('E-AFMX-2', self._tmp_dir) # gets E-AFMX-2 MAGE-TAB files with open(os.path.join(self._tmp_dir, 'i_investigation.txt')) as i_fp: isatab.validate(i_fp)