def testGetMetadata(self): """Make sure that we can retrieve metadata, even before createMutations has been called""" ic = MafliteInputMutationCreator("testdata/maflite/tiny_maflite.maf.txt") gtKeys = {'build', 'chr', 'start', 'end', 'ref_allele', 'alt_allele', 'tumor_barcode', 'normal_barcode', 'tumor_f', 'init_t_lod', 't_lod_fstar', 't_alt_count', 't_ref_count', 'judgement'} md = ic.getMetadata() ks = set(md.keys()) diff = gtKeys.symmetric_difference(ks) self.assertTrue(len(diff) == 0, "Missing keys that should have been seen in the metadata: " + str(diff))
def testGetMetadata(self): """Make sure that we can retrieve metadata, even before createMutations has been called""" ic = MafliteInputMutationCreator( "testdata/maflite/tiny_maflite.maf.txt") gtKeys = { 'build', 'chr', 'start', 'end', 'ref_allele', 'alt_allele', 'tumor_barcode', 'normal_barcode', 'tumor_f', 'init_t_lod', 't_lod_fstar', 't_alt_count', 't_ref_count', 'judgement' } md = ic.getMetadata() ks = set(md.keys()) diff = gtKeys.symmetric_difference(ks) self.assertTrue( len(diff) == 0, "Missing keys that should have been seen in the metadata: " + str(diff))