LocusZoom attempts to support many kinds of data, but in practice, no two usages have the same nomenclature.
This is very annoying when working with reusable layouts- modifying nested objects is not fun. This PR adds a simple helper method to make this process easier.
See unit tests for a full set of example use cases.
Purpose
LocusZoom attempts to support many kinds of data, but in practice, no two usages have the same nomenclature.
This is very annoying when working with reusable layouts- modifying nested objects is not fun. This PR adds a simple helper method to make this process easier.
See unit tests for a full set of example use cases.
LocusZoom.Layouts.renameFields(layout, old_name, new_name, warn_transforms = true)
Tagging: @kbruskiewicz