gnomad_qc.v5.resources.rwb_utils

This module contains utility functions for the Research Workbench.

These functions should live in the ‘util_functions.ipynb.’ notebook. It is included here for version control purposes and cannot be imported via the gnomad_qc module in Researcher Workbench unless the gnomad_qc repo is cloned prior to use.

Module Functions

gnomad_qc.v5.resources.rwb_utils.restart_kernel_with_gnomad_packages([...])

Clone the gnomad_qc repository, update the gnomAD package, and restart the kernel.

This module contains utility functions for the Research Workbench.

These functions should live in the ‘util_functions.ipynb.’ notebook. It is included here for version control purposes and cannot be imported via the gnomad_qc module in Researcher Workbench unless the gnomad_qc repo is cloned prior to use.

gnomad_qc.v5.resources.rwb_utils.restart_kernel_with_gnomad_packages(qc_branch=None, methods_branch=None, directory='/home/jupyter/packages/')[source]

Clone the gnomad_qc repository, update the gnomAD package, and restart the kernel.

Parameters:
  • qc_branch (Optional[str]) – Branch of the gnomad_qc repository to clone, defaults to None which loads main.

  • methods_branch (Optional[str]) – Branch of the gnomad_methods repository to clone, defaults to None which loads main.

  • directory – Package directory, defaults to “/home/jupyter/packages/”.

Return type:

None