vampire.quickstart.transform_dataset#
- vampire.quickstart.transform_dataset(img_set_path, model_path, output_path, img_set_name, filter_info, write_csv=True, write_contour=False, savefig=True)[source]#
Apply VAMPIRE model to one image set.
- Parameters:
- img_set_pathstr
Path to the directory containing the image set(s) used to apply model.
- model_pathstr
Path to the pickle file that stores model information.
- output_pathstr
Path of the directory used to output model and figures. Defaults to
img_set_path.- img_set_namestr
Name of the image set being applied to. Defaults to time of function call.
- filter_infondarray
Regex filter(s) of image filenames to be analyzed. Empty if no filter needed.
- write_csvbool, optional
Whether write apply model data to csv. Could be time-consuming if csv is large.
- write_contourbool, optional
Whether write and save raw contour coordinates.
- savefigbool, optional
Whether save distribution contour dendrogram.
See also
apply_modelsApply multiple models using different images/conditions.