VariantSpark icon indicating copy to clipboard operation
VariantSpark copied to clipboard

Update the Cloud Marketplace example Notebooks to include logistic regression covariates

Open BauerLab opened this issue 4 years ago • 1 comments

BauerLab avatar Feb 22 '21 00:02 BauerLab

@BauerLab as far as I can tell they are already included in the example notebook see: https://bitbucket.csiro.au/users/hos076/repos/variantspark-aws/browse/data/monitor-ami/notebook/VariantSpark_example.ipynb (or : https://variantspark-marketplace-resources.s3.amazonaws.com/static/public/example_notebook.html)

covariates = [mt.pheno.isFemale, mt.pcs[0], mt.pcs[1]]

result = hl.logistic_regression_rows(test ='wald', 
                                          y=mt.pheno.isCase,
                                          x=mt.GT.n_alt_alleles(),
                                          covariates=covariates)

Also as the code for AWS deployment is managed in different repository I think it would be better to manage the related issue somewhere else, unless they do require changes in the core variant spark.

piotrszul avatar Mar 04 '21 05:03 piotrszul