def setup_class_hook(cls):
     cls.study = tmtk.Study()
     dir_ = os.path.join(cls.studies_dir, 'blueprinted_modifier')
     cls.study.Clinical.add_datafile(os.path.join(dir_, 'datafile.tsv'))
     cls.modifiers = pd.read_csv(os.path.join(dir_, 'modifiers.txt'),
                                 sep='\t')
     cls.modifiers.set_index('modifier_cd', drop=False, inplace=True)
     cls.study.Clinical.Modifiers.df = cls.modifiers
     cls.study.study_id = 'test'
     cls.study.top_node = '\\Public Studies\\Test\\'
     cls.study.apply_blueprint(
         os.path.join(cls.studies_dir, 'blueprinted_modifier',
                      'blueprint.json'))
     cls.export = tmtk.toolbox.SkinnyExport(cls.study, cls.temp_dir)
     cls.export.build_observation_fact()
Exemple #2
0
 def setUpClass(cls):
     cls.study = tmtk.Study('studies/valid_study/study.params')
Exemple #3
0
 def setup_class_hook(cls):
     cls.study = tmtk.Study()
     dir_ = os.path.join(cls.studies_dir, 'blueprinted')
     cls.study.Clinical.add_datafile(os.path.join(dir_, 'datafile.tsv'))
     cls.study.apply_blueprint(os.path.join(dir_, 'blueprint.json'))
Exemple #4
0
 def setUpClass(cls):
     cls.study = tmtk.Study('studies/remap/study.params')
Exemple #5
0
 def setUpClass(cls):
     cls.study = tmtk.Study('studies/incomplete/study.params')
Exemple #6
0
 def setUpClass(cls):
     cls.study = tmtk.Study()
     cls.study.Clinical.add_datafile('./studies/blueprinted/datafile.tsv')
     cls.study.apply_blueprint('./studies/blueprinted/blueprint.json')
Exemple #7
0
def create_study_from_dir(dir_name):
    return tmtk.Study(
        os.path.join(TestBase.studies_dir, dir_name, 'study.params'))
Exemple #8
0
 def setUp(self):
     self.study = tmtk.Study('studies/incomplete/study.params')