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)Builds a dictionary of shape {batch: [files, ...], ...} to store files of batches without references
If the batch is entered as a string, we convert them to integers in order to comply with the numpy sorts later on.
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.
to_df()update()