bridge.pipelines.gh2bt_for_meta.map_funcs.name module

Contents

bridge.pipelines.gh2bt_for_meta.map_funcs.name module#

Mapping name from GitHub to bio.tools.

This module reconciles the GitHub repository name with the bio.tools name. It compares the two names and applies a policy that prefers the GitHub name while preserving the bio.tools name when GitHub is silent or ambiguous.

bridge.pipelines.gh2bt_for_meta.map_funcs.name.map_name(gh_name, bt_name)[source]#

Map and reconcile GitHub and bio.tools names using the generic GitHub-over-bio.tools policy.

Parameters:
  • gh_name (str | None) – GitHub repository name.

  • bt_name (str | None) – Existing bio.tools name.

Returns:

Mapped bio.tools name.

Return type:

str | None