PREDICT.IOparser package¶
Submodules¶
PREDICT.IOparser.config_io module¶
-
PREDICT.IOparser.config_io.
load_config
(config_file_path)¶ Load the config ini, parse settings to PREDICT
- Args:
- config_file_path (String): path of the .ini config file
- Returns:
- settings_dict (dict): dict with the loaded settings
PREDICT.IOparser.config_io_CalcFeatures module¶
-
PREDICT.IOparser.config_io_CalcFeatures.
load_config
(config_file_path)¶
PREDICT.IOparser.config_io_classifier module¶
-
PREDICT.IOparser.config_io_classifier.
load_config
(config_file_path)¶ Load the config ini, parse settings to PREDICT
- Args:
- config_file_path (String): path of the .ini config file
- Returns:
- settings_dict (dict): dict with the loaded settings
PREDICT.IOparser.file_io module¶
-
PREDICT.IOparser.file_io.
get_DTI_dicoms
(input_dir)¶
-
PREDICT.IOparser.file_io.
get_b_value
(dicom_file)¶
-
PREDICT.IOparser.file_io.
get_gradient
(dicom_file)¶
-
PREDICT.IOparser.file_io.
get_positions
(dicoms)¶
-
PREDICT.IOparser.file_io.
load_DTI
(dicom_folder)¶
-
PREDICT.IOparser.file_io.
load_DTI_post
(dicom_folder, patient_ID)¶
-
PREDICT.IOparser.file_io.
load_data
(featurefiles, patientinfo=None, label_names=None, modnames=[])¶ Read feature files and stack the features per patient in an array. Additionally, if a patient label file is supplied, the features from a patient will be matched to the labels.
- featurefiles: list, mandatory
List containing all paths to the .hdf5 feature files to be loaded. The argument should contain a list per modelity, e.g. [[features_mod1_patient1, features_mod1_patient2, ...],
[features_mod2_patient1, features_mod2_patient2, ...]].- patientinfo: string, optional
- Path referring to the .txt file to be used to read patient labels from. See the Github Wiki for the format.
- label_names: list, optional
- List containing all the labels that should be extracted from the patientinfo file.
-
PREDICT.IOparser.file_io.
load_dicom
(dicom_folder)¶
-
PREDICT.IOparser.file_io.
load_image_features
(image_feature_file, patient_ID, genetic_file, image_folders, image_type, contour_files, gabor_settings)¶