cubids.metadata_merge.check_merging_operations

check_merging_operations(action_tsv, raise_on_error=False)[source]

Check that the merges in an action tsv are possible.

Parameters:
  • action_tsv (str) – Path to the action tsv file.

  • raise_on_error (bool, optional) – Whether to raise an exception if there are errors.

Returns:

  • ok_merges (list) – List of tuples of ok merges.

  • deletions (list) – List of tuples of deletions.

Raises:

Exception – If there are errors and raise_on_error is True.