morphval.validation

Statistical validation tools.

Attributes

DICTDATA

DICTALLDATA

DESCR

Stats

Functions

extract_hist(data[, bins])

Extract a histogram distribution from data.

load_stat_test(test_name)

Load stat test object from test name.

stat_test(validation_data, reference_data, test[, ...])

Run the selected statistical test.

write_hist(data, feature, name[, bins])

Write the histogram in the format expected by the validation report.

unpack_config_data(config, name, component, feature)

Return values needed for statistical tests from config file.

write_all(validation_data, reference_data, component, ...)

Write the histogram in the format expected by the validation report.

extract_feature(test_population, ref_population, ...)

Extract the distributions of the selected feature.

Module Contents

DICTDATA
DICTALLDATA
DESCR = 'Morphology validation against reference morphologies. Comparison of the %s of the two...
Stats
extract_hist(data, bins=20)

Extract a histogram distribution from data.

Parameters:
  • data – the data from which the histogram is computed

  • bins – select the bins, according to numpy.histogram guidelines.

load_stat_test(test_name)

Load stat test object from test name.

stat_test(validation_data, reference_data, test, fargs=0.1, val_crit='pvalue')

Run the selected statistical test.

Returns:

the results(distance, pvalue) along with a PASS - FAIL statement according to the selected threshold.

write_hist(data, feature, name, bins=20)

Write the histogram in the format expected by the validation report.

unpack_config_data(config, name, component, feature)

Return values needed for statistical tests from config file.

write_all(validation_data, reference_data, component, feature, name, config)

Write the histogram in the format expected by the validation report.

extract_feature(test_population, ref_population, component, feature)

Extract the distributions of the selected feature.

The distributions are extracted from the test and reference populations.