gffutils.helpers.merge_attributes

gffutils.helpers.merge_attributes(attr1, attr2, numeric_sort=False)[source]

Merges two attribute dictionaries into a single dictionary.

Parameters:
  • attr1 (dict) –

  • attr2 (dict) –

  • numeric_sort (bool) – If True, then attempt to convert all values for a key into floats, sort them numerically, and return the original strings in numerical order. Default is False for performance.

Return type:

dict