Beispiel #1
0
 def test_run_info_file_missing(self):
     path = os.path.dirname(os.path.abspath(__file__))
     with self.assertRaises(OSError):
         parsed_run_info = classes.RunInfoParser(
             os.path.join(path,
                          '../test_data/191018_ST-E00214_0031_BH2WY7CCXX/',
                          'missing_RunInfo.xml'))
Beispiel #2
0
 def test_run_info_valid_case(self):
     path = os.path.dirname(os.path.abspath(__file__))
     parsed_run_info = classes.RunInfoParser(
         os.path.join(
             path,
             '../test_data/150424_ST-E00214_0031_BH2WY7CCXX/RunInfo.xml'))
     expected_data = {
         'Number':
         '31',
         'FlowcellLayout': {
             'TileCount': '24',
             'LaneCount': '8',
             'SurfaceCount': '2',
             'SwathCount': '2'
         },
         'Instrument':
         'ST-E00214',
         'Reads': [{
             'IsIndexedRead': 'N',
             'NumCycles': '151',
             'Number': '1'
         }, {
             'IsIndexedRead': 'Y',
             'NumCycles': '8',
             'Number': '2'
         }, {
             'IsIndexedRead': 'N',
             'NumCycles': '151',
             'Number': '3'
         }],
         'Flowcell':
         'H2WY7CCXX',
         'Date':
         '150424',
         'Id':
         '150424_ST-E00214_0031_BH2WY7CCXX'
     }
     assert parsed_run_info.data == expected_data
     assert parsed_run_info.recipe == "2x151"
Beispiel #3
0
def test_runinfo():
    path = os.path.dirname(os.path.abspath(__file__))
    k = classes.RunInfoParser(
        os.path.join(
            path, '../test_data/150424_ST-E00214_0031_BH2WY7CCXX/RunInfo.xml'))
    assert (k.data is not None)