Hail Interoperation Functions

Glow includes functionality to enable interoperation with Hail.

glow.hail.from_matrix_table(mt, include_sample_ids=True)[source]

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.

Parameters
  • mt (MatrixTable) – The Hail MatrixTable to convert

  • include_sample_ids (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

DataFrame

Returns

Glow DataFrame converted from the MatrixTable.