IOparser Package¶
config_WORC
Module¶
config_io_PyRadiomics
Module¶
config_io_classifier
Module¶
config_io_combat
Module¶
config_preprocessing
Module¶
config_segmentix
Module¶
file_io
Module¶
-
WORC.IOparser.file_io.
convert_config_pyradiomics
(config)[source]¶ Convert WORC to PyRadiomics config.
Convert fields from WORC confiparser object to a PyRadiomics compatible dictionary.
-
WORC.IOparser.file_io.
load_data
(featurefiles, patientinfo=None, label_names=None, modnames=[])[source]¶ 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.
-
WORC.IOparser.file_io.
load_features
(feat, patientinfo, label_type)[source]¶ 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.