pandaspgs.get_trait.get_traits

get_traits(
    trait_id: str = None,
    term: str = None,
    exact: bool = None,
    cached: bool = True,
    mode: str = "Fat",
) -> Trait

Get Trait data from the server.

Parameters:
  • trait_id (str, default: None ) –

    Ontology ID (e.g. from EFO, HP or MONDO) with the format "EFO_XXXX"

  • term (str, default: None ) –

    Trait ID, trait name, trait category, trait synonym or external mapped terms/IDs

  • exact (bool, default: None ) –

    Flag to search only the exact term or not

  • cached (bool, default: True ) –

    Whether or not to try to get data from the cache.

  • mode (str, default: 'Fat' ) –

    Fat or Thin. Specifies the mode of the returned object.

Returns:
  • Trait

    A Trait object. Attributes of type DataFrame have hierarchical dependencies.

from pandaspgs.get_trait import get_traits

ch = get_traits(trait_id='EFO_0000305')