Data handler module

Reads in and writes CSV files with the IQMs

mriqc.classifier.data.balanced_leaveout(dataframe, site_column='site', rate_label='rater_1')[source]
mriqc.classifier.data.combine_datasets(inputs, rating_label='rater_1')[source]
mriqc.classifier.data.get_bids_cols(dataframe)[source]

Returns columns corresponding to BIDS bits

mriqc.classifier.data.get_groups(X, label='site')[source]

Generate the index of sites

mriqc.classifier.data.read_dataset(feat_file, label_file, merged_name=None, binarize=True, site_name=None, rate_label='rater_1', rate_selection='random')[source]

Reads in the features and labels

mriqc.classifier.data.read_iqms(feat_file)[source]

Reads in the features

mriqc.classifier.data.read_labels(label_file, rate_label='rater_1', binarize=True, site_name=None, rate_selection='random', collapse=True)[source]

Reads in the labels. Massage labels table to have the appropriate format

mriqc.classifier.data.zscore_dataset(dataframe, excl_columns=None, by='site', njobs=-1)[source]

Returns a dataset zscored by the column given as argument

mriqc.classifier.data.zscore_site(args)[source]

z-scores only one site