Trio¶
-
class
hail.representation.Trio(proband, fam=None, father=None, mother=None, is_female=None)[source]¶ Class containing information about nuclear family relatedness and sex.
Parameters: - proband (str) – Sample ID of proband.
- fam (str or None) – Family ID.
- father (str or None) – Sample ID of father.
- mother (str or None) – Sample ID of mother.
- is_female (bool or None) – Sex of proband.
Attributes
famFamily ID. fatherID of father in trio, may be missing. is_femaleReturns True if the proband is a reported female, False if reported male, and None if no sex is defined. is_maleReturns True if the proband is a reported male, False if reported female, and None if no sex is defined. motherID of mother in trio, may be missing. probandID of proband in trio, never missing. Methods
__init__x.__init__(…) initializes x; see help(type(x)) for signature is_completeReturns True if the trio has a defined mother, father, and sex. -
fam¶ Family ID.
Return type: str or None
-
father¶ ID of father in trio, may be missing.
Return type: str or None
-
is_complete()[source]¶ Returns True if the trio has a defined mother, father, and sex.
The considered fields are
mother,father, andsex. Recall thatprobandmay never be missing. Thefamfield may be missing in a complete trio.Return type: bool
-
is_female¶ Returns True if the proband is a reported female, False if reported male, and None if no sex is defined.
Return type: bool or None
-
is_male¶ Returns True if the proband is a reported male, False if reported female, and None if no sex is defined.
Return type: bool or None
-
mother¶ ID of mother in trio, may be missing.
Return type: str or None
-
proband¶ ID of proband in trio, never missing.
Return type: str