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.bz2
  tar -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.git
 git submodule update --init --recursive

然后进入项目make 和make install

数据处理

复制代码
 bgzip -c 680_sample_filter_ID.vcf > 680_sample_filter_ID.vcf.gz
 tabix -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=Sequence

refSeqs=SN14.genome.fa.fai
[tracks.SN14_genome]
urlTemplate=SN14.genome.fa
storeClass=JBrowse/Store/SeqFeature/IndexedFasta
type=Sequence

refSeqs=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
相关推荐
RPA机器人就选八爪鱼10 分钟前
RPA财务机器人:重塑财务效率,数字化转型的核心利器
大数据·数据库·人工智能·机器人·rpa
ITVV1 小时前
flink CDC 3.5.0
大数据·flink
Elastic 中国社区官方博客2 小时前
Elasticsearch:如何创建知识库并使用 AI Assistant 来配置 slack 连接器
大数据·人工智能·elasticsearch·搜索引擎·全文检索·信息与通信
XIAOYU6720132 小时前
中专学历,在服装设计行业真的没出路吗?
大数据
TDengine (老段)2 小时前
TDengine IDMP 赋能新能源:光伏电站智能运维实践
大数据·运维·数据库·物联网·时序数据库·tdengine·涛思数据
努力的光头强4 小时前
《智能体设计模式》从零基础入门到精通,看这一篇就够了!
大数据·人工智能·深度学习·microsoft·机器学习·设计模式·ai
小园子的小菜4 小时前
深度剖析Elasticsearch数据写入与读取:从分片同步到核心组件协同
大数据·elasticsearch·搜索引擎
samLi06207 小时前
【实证分析】股票市场羊群效应、股市羊群效应CSSD和CSAD数据集(2000-2024年)
大数据
武子康8 小时前
大数据-157 Apache Kylin 全面指南:MOLAP 架构、Hive/Kafka 实战与实时 OLAP 落地
大数据·后端·apache kylin
海豚调度8 小时前
结项报告完整版 | 为 Apache DolphinScheduler 添加 gRPC 插件
大数据·任务调度·开源社区·大数据调度·apachedolphinscheduler