cytonormpy._dataset.Metadata

Contents

cytonormpy._dataset.Metadata#

class cytonormpy._dataset.Metadata(metadata, reference_column, reference_value, batch_column, sample_identifier_column)#

Methods

add_file_to_metadata(file_name, batch)

assemble_reference_assembly_dict()

Builds a dictionary of shape {batch: [files, ...], ...} to store files of batches without references

convert_batch_dtype()

If the batch is entered as a string, we convert them to integers in order to comply with the numpy sorts later on.

find_batches_without_reference()

Return a list of batch identifiers for which the given ref_control_value never appears in the reference column.

get_batch(file_name)

Returns the corresponding batch of a file.

get_corresponding_reference_file(file_name)

Returns the corresponding reference file of a file.

get_files_per_batch(batch)

get_ref_value(file_name)

Returns the corresponding reference value of a file.

get_reference_file_names()

get_validation_file_names()

to_df()

update()

validate_batch_references()

validate_metadata()

validate_metadata_table()