def compute_distance_matrix_from_metadata(column_data):
 data_row = array(column_data)
 data_col = reshape(data_row, (1, len(data_row)))
 dist_mtx = abs((data_row - data_col.T))
 return dist_mtx

def compute_distance_matrix_from_metadata ( column_data ) : data_row = array ( column_data ) data_col = reshape ( data_row , ( 1 , len ( data_row ) ) ) dist_mtx = abs ( ( data_row - data_col . T ) ) return dist_mtx
calculates distance matrix on a single column of a mapping file inputs: column_data .