专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
sumstats

ebispot/sumstats

自动构建
ebispot

Software to load/search/serve summary statistics data

下载次数: 0状态:自动构建维护者:ebispot仓库类型:镜像最近更新:3 年前
轩辕镜像,加速的不只是镜像。点击查看
镜像简介
标签下载
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。点击查看

SumStats

![Build Status]([***]

Summary statistics with HDF5

Python version >= 3.5 required

Installation - using Docker

Docker documentation: [***]

  • Clone the repository
    • git clone https://github.com/EBISPOT/SumStats.git
    • cd SumStats
  • Build the docker image
    • docker build -t sumstats .
  • Run the setup script that will create the folder structure and prepare the file that you want for loading
    • python bin/preparation/setup_configuration.py -f -config
    • you can use the -create flag when running setup_configuration.py and it will create the directory layout as described below
  • Create the container from the image
    • docker run -i -p 8080:8080 -v $(pwd)/files/toload:/application/files/toload -v $(pwd)/files/output:/application/files/output -v $(pwd)/bin:/scripts -v $(pwd)/config:/application/config -t sumstats
  • Run the script to load a file on docker
    • [OPTIONAL] set the environmental variable as: export SS_CONFIG=<path to json config> if you want to pass in a different configuration than the default one
    • python /scripts/preparation/load.py -f <file to be loaded> -study <study accession> -trait <efo trait>

You can run all the commands described in the section below on the docker container that you have just launched.

Files produced by the sumstats package (.h5 files) should be generated in the files/output volume

Installation - using conda and pip

  • Clone the repository
    • git clone https://github.com/EBISPOT/SumStats.git
    • cd SumStats
  • Create conda environment (installs HDF5 lib and other dependencies)
    • conda env create -f sumstats.yml
    • conda activate sumstats
  • pip install the sumstats package - this will install pytables, numpy, flask, gunicorn - and sumstats
    • pip install -r requirements.txt
    • pip install .
  • Run the setup script that will create the folder structure and prepare the file that you want for loading
    • python bin/preparation/setup_configuration.py -f <path to file to be processed> -config <path to json config>

Setting properties

Under the config directory you will find the files that are responsible for setting the runtime properties.

properties.py is the default one. It can be altered but you will need to re-install the package in oreder for the changes to take effect.

properties.json can be edited and passed as a an environmental variable as: export SS_CONFIG=<path to json config> when running:

  • gunicorn -b <host:port> --chdir sumstats/server --access-logfile <path to access log file> --error-logfile <path to error log file> app:app [--log-level <log level>] to run the API
  • gwas-search to search the database via command line
  • gwas-explore to explore what is saved in the database via command line
  • gwas-load to load data to the database via command line

The properties that are being set are:

  • h5files_path: path to the output directory where the data will be stored. Used by gwas-loader, gwas-explorer, gwas-search, etc.
  • tsvfiles_path: path to the directory where the sum stats files to be loaded reside. Used by gwas-loader, gwas-explorer, gwas-search, etc.
  • local_h5files_path: used by the setup_configuration.py file when creating the output directory layout on your local machine
  • local_tsvfiles_path: used by the setup_configuration.py file when pre-processing the loading file, and stores the files that are ready to be loaded (see below)
  • bp_step: how many files we want each chromosome to be split into, based on base pair location (default: 16)
  • max_bp: max bp location to be found in any chromosome (default: 300,000,000)
  • snp_dir: name of the directory under 'h5files_path', that the snp loader will use as to save the created h5files (default: bysnp)
  • chr_dir: name of the directory under 'h5files_path', that the chromosome loader will use as to save the created h5files (default: bychr)
  • trait_dir: name of the directory under 'h5files_path', that the trait loader will use as to save the created h5files (default: bytrait)
  • ols_terms_location: url for querying terms in the Ontology Lookup Service API
  • gwas_study_location: url for querying the study meta-data in the GWAS Catalog API
  • logging_path: path to the directory where the logs will be stored
  • LOG_LEVEL: log level (default is INFO and will be overrided by the gunicorn log level if set)

NOTE: local_h5files_path - h5files_path and local_tsvfiles_path - tsvfiles_path can point the same directories with the same paths (respectively). But you can use the local_ variables to refer to the actual locations where these directories will reside, and the variables missing the local_ prefix when referring to the locations that will be used by gwas-loader, gwas-search, etc. that might be running from a docker container and possibly have different paths and/or directory names on the container.

For example, you might want to store the files locally on your maching under ./files/toload but then mount that same directory on docker under /toload

In this case you will set local_tsvfiles_path=./files/toload and this will be used by the setup_configuration.py script to process and split up your summary statistics file, but you will set tsvfiles_path=/toload and this will be used when you are loading, searching etc data when the loading/searching/etc commands are run from docker.

Default directory layout

The directories that are created are ./files/toload and ./files/output. These do not need to be named as such, and they can be located anywhere you like. You will just need to either provide the toload and output directories as arguments while running via command line,

You can provide the preferred location by:

  • passing them as arguments when running the tools via command line
  • editing the config/properties.py file and re-installing the package
  • editing the config/properties.json file and passing it through via command line argument

In the files/output directory 3 subdirectories will be created:

  • bytrait
  • bychr
  • bysnp
    • dirctories named 1...24, one directory for each chromosome (X, Y -> 23, 24)

Each one will hold the hdf5 files created with the data loaded by the 3 different loaders. The loaders can be run in parallel. Do not try and store more than one study at a time. This package does not support parallel study loading.

  • loading by trait will save the data under the trait/study hdf5 group
    • a file named file_<efo_trait>.h5 will be created, under the bytrait directory, one for each trait loaded, where the study groups will be stored (and the corresponding info/associations)
  • loading by chromosome will save the data under the chr hdf5 group
    • a file named file_<chromosome>.h5 will be created, under the bychr directory, one for each chromosome, where bp block groups that blong to this chromosome will be stored (and the corresponding info/associations)
  • loading by snp will save the data under the snp hdf5 group
    • a file named file_<bp_step>.h5 will be created, under the bysnp directory, one for each chromosome, where the variant groups that belong to this chromosome will be stored (and the corresponding info/associations)

In the configuration file we have set the max bp location and the bp step that we want. Each study is split into chromosomes. Each chromosome sub-set is further split up into <bp_step> pieces based on the range, so bp 0 to max_bp with step bp_range, where bp_range = max_bp / bp_step.

So we loop through the chromosome for (default) 16 ranges of base pair locations, and create separate files for each chromosome. They are then loaded in the corresponding bysnp/<chr>/file_<bp_step>.h5 file.

Loading

Once the package is installed you can load studies and search for studies using the command line toolkit

To load a study it is suggested that you first run the bin/setup_configuration.sh <to_load_filename> script on the file. This script will copy the file into the files/toload directory, and will split the study up into chromosomes, creating as many files as the chromosomes represented in the study. They will be named chr_filename.

You can then run the below commands to fully load the study in all the formats:

  1. gwas-load -tsv chr_<x>_<filename> -study <study> -chr <x> -loader chr
  2. gwas-load -tsv chr_<x>_<filename> -study <study> -chr <x> -loader snp
  3. gwas-load -tsv <filename> -study <study> -trait <trait> -loader trait

Assumtion:

The script will assume that the tsv file is stored under ./files/toload and that the output direcories will be found under the ./files/output directory (when mounted to docker as shown above, the volumes are placed in those positions)

If you need to specify the location where it resides, modify the properties.json file and set the environmental variable as: export SS_CONFIG=<path to json config>

Note that the loading command for chr and snp loaders need to be run for all the available chromosomes in the study.

Exploring

To explore the contents of the database you can use the following commands:

  • gwas-explore -traits will list the available traits
  • gwas-explore -studies will list all the available studies and their corresponding traits
  • gwas-explore -study <study> will list the study name and it's corresponding trait

Note that, if the output directory is set by default to ./files/output in the properties file. If you need to specify the location where it resides, modify the properties.json file and use the -config <path to properties.json> flag to specify it.

Searching

To actually retrieve data from the database you can use the following commands:

  • gwas-search -all will retrieve all the data from all the studies that are stored
  • gwas-search -trait <trait> will retrieve all the data for that trait
  • gwas-search -trait <trait> -study <study> will retrieve all the data for that trait/study combination
  • gwas-search -study <study> will retrieve all the data for that study
  • gwas-search -chr <chr> will retrieve all the data for that specific chromosome
  • gwas-search -snp <rsid> will retrieve all the data for that specific snp
  • gwas-search -snp <rsid> -chr <chr> will retrieve all the data for that specific snp and it will search for it under the chromosome given

The data will by default be retrieved in batches of 20 snps and their info per query. You can loop through the data using the default size of 20 and updating the start flag as you go: -start <start>, or use the flags -start <start> -size <size> to specify the bandwith of your retrieval.

There are two more flags that you can use:

  1. -bp floor:ceil e.g. -bp 10000:20000000 that specifies the range of the base pair location in the chromosome that you want. Makes sense to use when querying for a chromosome, or a trait/study
  2. -pval floor:ceil e.g. -pval 2e-10:5e-5 or -pval 0.000003:4e-3 that specifies the p-value range of the results.

Note that, if the output directory is set by default to ./files/output in the properties file. If you need to specify the location where it resides, modify the properties.json file and use the -config <path to properties.json> flag to specify it.

Exposing the API

To expose the API you need to run: gunicorn -b <host:port> --chdir sumstats/server --access-logfile <path to access log file> --error-logfile <path to error log file> app:app [--log-level <log level>]

You can set the environmental variable as: export SS_CONFIG=<path to json config> to change the default properties, such as the directory where all the data is stored (output directory) as explained in all the above sections.

This will spin up the service and make it available on port 8080 (if running via docker, we exposed the port when we spinned up the container).

You should be able to see the API on http://localhost:8080/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 sumstats 镜像标签

docker pull docker.xuanyuan.run/ebispot/sumstats:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull ebispot/sumstats:<标签>

更多 sumstats 镜像推荐

ebispot/gwas-deposition-backend logo

ebispot/gwas-deposition-backend

ebispot
GWAS数据提交应用的后端服务,负责处理数据提交、验证、存储及API接口提供等核心功能。
1 次收藏5万+ 次下载
1 个月前更新
ebispot/gwas-rest-api logo

ebispot/gwas-rest-api

ebispot
GWAS公共面向REST API,提供用于通过编程方式访问GWAS数据库的端点。
5万+ 次下载
2 个月前更新
ebispot/gwas-curation-service logo

ebispot/gwas-curation-service

ebispot
暂无描述
1万+ 次下载
17 天前更新
ebispot/gwas-sumstats-harmoniser logo

ebispot/gwas-sumstats-harmoniser

ebispot
暂无描述
1万+ 次下载
7 个月前更新
ebispot/gwas-sumstats-service logo

ebispot/gwas-sumstats-service

ebispot
暂无描述
1万+ 次下载
1 个月前更新
ebispot/neo4j4-ubuntu18 logo

ebispot/neo4j4-ubuntu18

ebispot
暂无描述
1万+ 次下载
3 年前更新

查看更多 sumstats 相关镜像

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

轩辕镜像支持 docker push 上传本地镜像吗?

不支持 push

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

为什么拉取镜像的 :latest 标签,拿到的往往不是「最新」镜像?

latest 与「最新」

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ebispot/sumstats
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单。官方公众号:源码跳动。官方技术交流群:51517718。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单。官方公众号:源码跳动。官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.