Hail Interoperation Functions
Glow includes functionality to enable interoperation with Hail.
- glow.hail.from_matrix_table(mt, include_sample_ids=True)
Converts a Hail MatrixTable to a Glow DataFrame. The variant fields are derived from the Hail MatrixTable row fields. The sample IDs are derived from the Hail MatrixTable column fields. All other genotype fields are derived from the Hail MatrixTable entry fields.
Requires that the MatrixTable rows contain locus and alleles fields.
MatrixTable) – The Hail MatrixTable to convert
bool) – If true (default), include sample IDs in the Glow DataFrame. Sample names increase the size of each row, both in memory and on storage.
- Return type
Glow DataFrame converted from the MatrixTable.