Skip to content

dominikgoeller/GWASProtocol

 
 

Repository files navigation

GWAS Protocol (as a container)

Usage

The container comes with all the software needed to generate summary statistics.

  1. You need to download the container file using one of the following commands. This will use approximately one gigabyte of storage.

    Container platform Version Command
    Singularity 3.x wget http://download.gwas.science/singularity/gwas-protocol-latest.sif
    Docker docker pull gwas.science/gwas-protocol:latest
  2. Next, start an interactive shell inside the container using one of the following commands.

    Container platform Command
    Singularity singularity shell --hostname localhost --bind ${working_directory}:/data --bind /tmp gwas-protocol-latest.sif
    Docker docker run --interactive --tty --volume ${working_directory}:/data --bind /tmp gwas.science/gwas-protocol /bin/bash
  3. Development

    To create a local development environment install Miniforge and create a .condarc file in your home directory with the following contents:

    channels:
      - conda-forge
      - bioconda
    

    Then update your .bashrc or .zshrc with mamba init. This will allow you to use the conda command.

    Next, install mamba using conda install mamba and then create the environment using the following command:

    mamba create --name "gwas" \
      "mamba" "boa" "conda-verify" \
      "python=3.11" "more-itertools" \
      "jupyterlab" "ipywidgets" \
      "numpy" "scipy" "pandas" "pytorch<2" "networkx" \
      "matplotlib" "seaborn" \
      "bzip2" "p7zip>=15.09" \
      "python-blosc2" "msgpack-python" "ndindex" \
      "bcftools>=1.17" "plink" "plink2" "tabix" \
      "cython>=3b1" "mkl-include" "zlib" \
      "mypy" "pytest-benchmark" "threadpoolctl" \
      "compilers" "rust" "sysroot_linux-64>=2.17"

    Finally, install the gwas package using the following command:

    pip install --no-deps --editable "src/gwas"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.4%
  • C++ 7.3%
  • Shell 1.6%
  • Cython 1.0%
  • Dockerfile 0.9%
  • Nix 0.5%
  • Other 0.3%