当前位置: 首页 > news >正文

jbrowse基因组浏览器部署

一、jbrowse部署

1.1 jbrowse部署

sudo mkdir /var/www/jbrowse;
sudo chown `whoami` /var/www/jbrowse;
# cd into it
cd /var/www/jbrowse;

1.2 nginx配置

  server {listen       80 default_server;listen       [::]:80 default_server;server_name  _;#root         /var/www/html/jbrowse;# Load configuration files for the default server block.include /etc/nginx/default.d/*.conf;location / {root  /var/www/html/jbrowse;autoindex on;index  index.html index.htm  index.jsp;}error_page 404 /404.html;location = /40x.html {}

fetch a JBrowse release zip file

curl -O http://jbrowse.org/releases/JBrowse-1.8.0.zip# unzip it and cd into it
unzip JBrowse-1.8.0.zip
cd JBrowse-1.8.0

二 数据导入

1、 ca文件处理

samtools工具安装

 wget https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2tar -jxvf samtools-1.9.tar.bz2 cd samtools-1.9/./configure --prefix=/usr/local/samtools #编译make make install
samtools faidx zdd0006.genome.v1.fa #生成ca文件的索引
执行命令后会自动生成文件zdd0006.genome.v1.fa.fai

2、vcf格式文件处理

确保你的 VCF 文件是经过 BGZF 压缩的(以 .vcf.gz 结尾),并且已经创建了相应的索引文件(.tbi 文件)。如果没有,你可以使用 bgzip 和 tabix 工具来进行压缩和索引。
tabix命令安装

git clone https://github.com/samtools/htslib.gitgit submodule update --init --recursive

然后进入项目make 和make install
数据处理

 bgzip -c 680_sample_filter_ID.vcf > 680_sample_filter_ID.vcf.gztabix -p vcf 680_sample_filter_ID.vcf.gz

track.conf文件配置

[root@VM-4-17-opencloudos data]# cat tracks.conf 
[GENERAL]
refSeqs=Gmax_275_v2.0.fa.fai
[tracks.Gmax_275_v2.0]
urlTemplate=Gmax_275_v2.0.fa
storeClass=JBrowse/Store/SeqFeature/IndexedFasta
type=SequencerefSeqs=SN14.genome.fa.fai
[tracks.SN14_genome]
urlTemplate=SN14.genome.fa
storeClass=JBrowse/Store/SeqFeature/IndexedFasta
type=SequencerefSeqs=zdd0006.genome.v1.fa.fai
[tracks.zdd0006_genome]
urlTemplate=zdd0006.genome.v1.fa
storeClass=JBrowse/Store/SeqFeature/IndexedFasta
type=Sequence[tracks.680_sample_filter]
# settings for what data is shown in the track
storeClass     = JBrowse/Store/SeqFeature/VCFTabix
urlTemplate    = 680_sample_filter_ID.vcf.gz# settings for how the track looks
category = VCF
type = JBrowse/View/Track/CanvasVariants
key  = 680_sample
#GFF格式
[tracks.Gmax_275_Wm82]
urlTemplate = Gmax_275_Wm82.a2.v1.gene.gff3
storeClass = JBrowse/Store/SeqFeature/GFF3
type = CanvasFeatures
key = Gmax_275_Wm82
http://www.lryc.cn/news/250571.html

相关文章:

  • 神经网络 模型表示(一)
  • 【漏洞复现】智跃人力资源管理系统GenerateEntityFromTable.aspx接口存在SQL注入漏洞 附POC
  • 【matlab程序】画海洋流场
  • 线性表 力扣67. 二进制求和
  • 2312skia,13画布包入门
  • 【网络安全技术】消息认证技术
  • 智慧安防三大信息技术:云计算、大数据及人工智能在视频监控EasyCVR中的应用
  • 接口测试基础知识
  • C++多线程之通过成员函数作为线程入口
  • word、excel文件转PDF(documents4j方式,简单)
  • 【Linux】:信号(三)捕捉
  • 数据结构 / 队列 / 循环队列 / 概念
  • elasticsearch 内网下如何以离线的方式上传任意的huggingFace上的NLP模型(国内闭坑指南)
  • vue中中的动画组件使用及如何在vue中使用animate.css
  • MATLAB 模型参考自适应控制 - Model Reference Adaptive Control
  • 【如何用批处理文件实现自动编译Keil工程和C# Visual Studio工程】
  • 大模型的实践应用11-“书生”通用大模型的搭建与模型代码详细介绍,以及快速使用方法
  • 【开发PaaS】基于Postgresql的开发平台Supabase
  • 前端开启gzip优化页面加载速度
  • 用Java写一个俄罗斯方块
  • 应用于智慧金融的AI边缘计算盒子+AI算法软硬一体化方案
  • 目标检测——Faster R-CNN算法解读
  • Wireshark (一)安装入门 —— 软件介绍
  • Web框架与Django路由层
  • 什么是CAS, 什么是AQS
  • 蓝桥杯每日一题2023.12.1
  • 正则表达式从放弃到入门(1):“正则表达式”是什么?
  • SQL解惑 - 谜题2
  • FWT+高维前缀和:Gym - 103202M
  • 【C++】string类的接口综合运用