ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件

这篇具有很好参考价值的文章主要介绍了ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

前言

使用到的软件 

docker   文档 :  https://www.docker.com/

HiGlass  文档:http://docs.higlass.io/higlass_docker.html#running-locally

higlass-docker  地址:https://github.com/higlass/higlass-docker

nginx      文档:   https://www.cnginx.com/  

docker安装步骤 

#卸载旧版本

sudo apt-get remove docker docker-engine docker-ce docker.io

#更新索引包

sudo apt-get update

#安装 apt 依赖包,用于通过HTTPS来获取仓库

sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common


#添加Docker官方的GPG密钥

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

#设置stable存储库

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

#更新一下apt包索引

sudo apt-get update

#安装最新版本的Docker CE

sudo apt-get install -y docker-ce

#验证-查看docker运行状态

systemctl status docker

#验证 - 查看docker版本

docker -v


#如果安装指定版本可使用如下命令
#列出各个可用版本
apt-cache madison docker-ce
#安装指定版本
sudo apt-get install docker-ce=<VERSION>

安装HiGlass docker镜像

拉取HiGlass docker镜像

需要花点时间

sudo docker pull higlass/higlass-docker:v0.6.1

创建容器数据卷目录

#创建/higlass/hg-data 用来 docker容器中的higlass文件目映射

sudo mkdir -p /higlass/hg-data

#创建/higlass/tmp,用来用户上传文件操作目录

sudo mkdir -p /higlass/tmp

启动容器

运行以下命令

sudo docker run --detach \
           --publish 8989:80 \
           --volume ~/higlass/hg-data:/data \
           --volume ~/higlass/tmp:/tmp \
           --name higlass-container \
         higlass/higlass-docker:v0.6.1


#--publish 8989:80  宿主机端口8989与容器80端口映射
#--volume ~/higlass/hg-data:/data \  宿主机目录/higlass/hg-data和容器/data目录映射
#--volume ~/higlass/tmp:/data \  宿主机目录/higlass/tmp和容器/tmp目录映射

配置nginx用于对外访问

安装nginx

sudo apt-get install nginx

配置config

位置:/etc/nginx/sites-available/default

sudo vim /etc/nginx/sites-available/default

文件中 location / 添加如下内容原来的重启,作用将服务器80端口的访问代理到 higlass容器的端口

#尝试了定义 location /higlass {} 模块中定义去使用,但是蛋疼的是higlass内部web服务中的的一些css、js访问不到,要是非要使用这个可以自行到docker容器中去把这个路径改一下使用。还不如单开一个nginx的server处理higlass。

#替换内容

location / {
            proxy_pass http://localhost:8989/;
            proxy_http_version 1.1;
            proxy_set_header  X-Forwarded-Proto https; #配置报文转发协议为https
            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header  Host $http_host;
            proxy_set_header Cookie $http_cookie;
            proxy_connect_timeout 30;
            proxy_set_header Referer $http_referer;
            #proxy_cookie_path [/项目名] [代理路径地址]; #[/项目名] [代理路径地址]  保证https和http的cookie一致
        }

重启nginx

sudo service nginx restart

访问客户端地址

#这里直接映射了服务器的80端口所以直接访问IP地址或域名就可以了

http://xxx.xxx.xxx/

效果

ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlass

一般在项目中内嵌使用的话没有用到这个客户端,是在其他前端框架中嵌入显示界面调用这个higlass服务端的api接口去展示一些内容

访问管理端

设置管理端管理员账号密码

在 higlass-docker 中可查看到信息

ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlass

sudo docker exec -it higlass-container higlass-server/manage.py createsuperuser

如图:

ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlass

访问

http://xxx.xxx.xxxx/admin

ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlassubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlass

管理端添加文件展示

ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlass

遇到个问题就是设置了登陆403没搞懂,有的时候是正确的。

进入之后就可以通过界面上传要展示的文件,要注意不同格式个文件对应的配置项也不同

文件类型 filetype datatype
mcool cooler matrix
bedpe bed2ddb 2d-rectangle-domains
wig chromsizes-tsv chromsizes

加入之后在客户端界面就可以选择了,每加入一个都会生成一个唯一uuid,这个就可以用来与其他系统进行对接联动。

ubuntu命令行添加文件展示

将文件移动到容器数据卷  higlass/tmp下面执行命令

#mcool格式

sudo docker exec higlass-container python higlass-server/manage.py ingest_tileset --filename /tmp/mcool/test.mcool --filetype cooler --datatype matrix

#bedpe格式

sudo docker exec higlass-container python higlass-server/manage.py ingest_tileset --filename /tmp/test.bedpe --filetype bed2ddb --datatype 2d-rectangle-domains

#wig格式

sudo docker exec higlass-container python higlass-server/manage.py ingest_tileset --filename /tmp/test.wig --filetype chromsizes-tsv --datatype chromsizes

客户端效果图

ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件,ubuntu,docker,higlass

待续......文章来源地址https://www.toymoban.com/news/detail-737020.html

到了这里,关于ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • ubuntu 18.04安装docker

    from:Install Docker Engine on Ubuntu | Docker Documentation Install from a package If you can’t use Docker’s  apt  repository to install Docker Engine, you can download the  deb  file for your release and install it manually. You need to download a new file each time you want to upgrade Docker Engine. Go to Index of linux/ubuntu/dists/. Select your

    2024年02月05日
    浏览(53)
  • Ubuntu18.04 制作系统ISO镜像并物理机还原(Systemback)

     简单记录 使用Systemback工具打包Ubuntu系统得到iso镜像文件,并在物理机上进行还原(安装)的流程 。测试结果发现,使用打包的iso文件安装得到的Ubuntu系统继承了我之前的Ubuntu系统, 包括并不限于如下内容: Home、Desktop、Documents、Downloads、Pictures、Videos 等文件夹下的所有文

    2024年02月03日
    浏览(49)
  • 在Ubuntu 18.04安装Docker

    安装需要的包 $ sudo apt-get update 安装 apt 依赖包,用于通过HTTPS来获取仓库 添加 Docker 的官方 GPG 密钥 设置稳定版仓库 安装 Docker-ce 启动服务 设置开机自启动并启动 Docker-ce 安装成功后默认开启,可忽略该步骤 测试运行 添加当前用户到 docker 用户组 如果仍然无法直接使用dock

    2024年02月07日
    浏览(44)
  • Ubuntu18.04 系统安装 Docker

     

    2024年02月16日
    浏览(35)
  • 如何在Ubuntu 18.04上安装Docker

    选项1:使用默认存储库在Ubuntu上安装Docker 第1步:更新软件存储库 更新本地软件数据库以确保可以访问最新版本。 打开终端并输入: 第2步:卸载旧版本的Docker 建议继续之前卸载任何旧的Docker软件。 使用命令: 第3步:在 Ubuntu 18.04 上安装Docker 在 Ubuntu 上安装Docker,打开终端

    2023年04月26日
    浏览(37)
  • 【Ubuntu 18.04 搭建 DHCP 服务】

    参考Ubuntu官方文档:https://ubuntu.com/server/docs/how-to-install-and-configure-isc-dhcp-server dhcpd.conf 手册页 配置:https://maas.io/docs/about-dhcp Ubuntu 18.04(172.16.65.128/24) dhcp服务端 Ubuntu 18.04(172.16.65.x/24) dhcp客户端 1.服务端设置静态ip vim /etc/netplan/00-installer-config.yaml 2.安装配置dhcp服务 vim /e

    2024年02月14日
    浏览(40)
  • Ubuntu 18.04 搭建 DHCP 服务

    最近在公司进行边缘服务器的部署工作,借此机会和大家交流一下部署中的一个技术环节——DHCP 服务器的搭建,为什么要多此一举搭建这个服务呢,用现成的他不香吗?其实,这个取决于你的实际应用场景,如果你部署的边缘服务器是批量的,你是怎么识别每台边缘服务器

    2023年04月18日
    浏览(40)
  • Docker安装和维护mantisbt(Ubuntu 18.04)

    将/etc/apache2/sites-available/default-ssl.conf拷贝为/etc/apache2/sites-available/xxx a2ensite xxx a2enmod ssl systemctl restart apache2

    2024年02月13日
    浏览(33)
  • Ubuntu18.04安装docker-io

    1.1 网上一搜,全是更新仓库、下载依赖、添加docker的gpg密钥、添加docker仓库、安装docker-ce的步骤,但是在安装docker-ce时却提示 “ package \\\"docker-ce\\\" has no installation candidate ” ,就很迷。 1.2 安装 docker.io 2.1 按照某文档执行指令\\\" docker run -it img_name:tag /bin/bash \\\",却报错“ docker: Er

    2024年02月10日
    浏览(31)
  • ubuntu18.04安装docker及docker基本命令的使用

    官网安装步骤:https://docs.docker.com/desktop/install/ubuntu/ docker快速入门教程 Ubuntu-Docker安装和使用 docker官网 docker-hub仓库 (1)镜像操作 (2)容器操作 (3)数据卷操作 https://blog.csdn.net/weixin_43977226/article/details/128411102 构建目录 dockfile 构建镜像 启动容器

    2024年02月14日
    浏览(35)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包