v1.0.0
MatrixTableConsumer v1.1.0
To install this package run (you need to have Go):
pip install build
pip install .To compile Go modules with C types to work with Python run:
export CGO_ENABLED=1
go build -o functions.so -buildmode=c-shared functions/functions.goWe have a class MatrixTableConsumer, which performs operations on Hail matrix table:
-
MatrixTableConsumer().prepare_metadata_for_savingsaves matrix table metadata to json format -
MatrixTableConsumer().prepare_metadata_for_loadingloads table metadata -
MatrixTableConsumer().collectgivesnum_rowsrows from vcf file (it can also open vcf.gz) -
MatrixTableConsumer().collect_allcollects all table rows from vcf file (it can also open vcf.gz) -
MatrixTableConsumer().convert_rows_to_hailconverts rows to Matrix Table format -
MatrixTableConsumer().create_hail_tablecollects table from rows -
MatrixTableConsumer().combine_hail_matrix_table_and_tablecombines MatrixTable and Table -
MatrixTableConsumer().countreturns number of rows in the vcf file
You may donate to matrix_table_consumer project:
- Ethereum: 0xE2e2D675a3843f4ED211BB93847ad18b0A6fe7c6