def test_5_classify_with_model_step(self):
     print("test_5_classify_with_model_step")
     warnings.simplefilter(action="error")
     print(self.test_model_file_path)
     self.classification_results_file = entry_point.classify_data_by_model(self.postprocessed_ions_file,
                                                                           self.test_model_file_path,
                                                                           method=self.method)
     print(self.classification_results_file)
     self.assertTrue(os.path.exists(self.classification_results_file))
def main():
    args = app.parse_args()
    out = match_deconvoluted_ions(
        args.search_space,
        args.deconvoluted_spectra_file,
        args.ms1_match_tolerance,
        args.ms2_match_tolerance,
        4)
    out = postprocess_matches(out)
    out = classify_data_by_model(out, args.model_file)
    out = calculate_false_discovery_rate(out, deconvoluted_spectra=args.deconvoluted_spectra_file, model_file_path=args.model_file)