生物信息学与算法生物信息学习生物信息杂谈

Motif 分析(1) - HOMER 安装

2019-03-23  本文已影响6人  JeremyL
HOMER

HOMER 是一套用于Motif查找和二代数据分析的工具。HOMER 中的工具是使用Perl 和C++编写的,适用于unix操作系统。基于motif寻找的算法,HOMER 适用于在大规模基因组数据中发现8-20 bp motifs 。

#1. 使用基本要求

Homer是一个计算密集型的工具,因此对计算机硬件有所要求。

#1.1 必备的UNIX工具和NGS分析软件

UNIX工具

检查一下这些工具是否安装好;需要安装使用sudo apt-get install

NGS分析软件

Anaconda/Bioconda

对于NGS分析软件的下载,安装和管理可以使用conda。

conda安装samtools,DESeq2, edgeR

onda install wget samtools r-essentials bioconductor-deseq2 bioconductor-edge

#2. HOMER软件配置

configureHomer.pl: 使用configureHomer.pl可以完成configureHomer.pl的配置

mkdir homer && cd homer
wget http://homer.ucsd.edu/homer/configureHomer.pl
Usage: configureHomer.pl [options]

perl /path-to-homer/configureHomer.pl

Options:
        -list 列出可用的包
        -install 安装Homer或homer需要用到的数据包
        -version 安装homer包时,可以指定包版本
        -remove 移除包
        -update 更新所有包到最新版本
        -reinstall 强制重新安装所有已经安装过的包
        -all 安装所有包
        -getFacts (add humor to HOMER - to remove delete contents of data/misc/)
        -check 检查第三方软件:samtools, DESeq2, edgeR
        -make 重新配置和编译可执行文件
        -sun SunOS系统,使用gmake 和 gtar代替make 和 tar
        -keepScript 不更新configureHomer.pl
        -url 安装时,使用的资源地址,默认:http://homer.ucsd.edu/homer/
        Hubs & BigWig settings (with read existing settings from config.txt if upgrading):
            -bigWigUrl <base urls for bigWigs> (Setting for makeBigWigs.pl)
            -bigWigDir <base directory for bigWigs> (Setting for makeBigWigs.pl)
            -hubsUrl <base urls for hubs> (Setting for makeMultiWigHub.pl)
            -hubsDir <base directory for hubs> (Setting for makeMultiWigHub.pl)
    Configuration files: 下载 update.txt,更新config.txt

#2.1 HOMER软件安装

使用configureHomer.pl安装homer

perl /path-to-homer/configureHomer.pl -install
echo 'export PATH=$PATH:path-to-homer/homer/bin' >> ~/.bash_profile
source ~/.bash_profile

使用conda安装

#在bioconda中搜索homer
conda search homer -c bioconda
#安装homer
conda install -c bioconda homer

安装某个版本homer:使用参数-version

perl configureHomer.pl -install homer -version v4.8

#2.2 HOMER包介绍和安装

homer包分为4种:

HOMER包安装

刚安装的Homer实际没有包含参考序列或注释数据 ;但是可以使用 configureHomer.pl下载数据:

查看Homer数据包:

perl /path-to-homer/configureHomer.pl -list

Homer数据包安装使用-install参数

perl /path-to-homer/configureHomer.pl -install mouse #下载老鼠启动子数据
perl /path-to-homer/configureHomer.pl -install mm8    #下载 mm8
perl /path-to-homer/configureHomer.pl -install hg19    #下载 hg19

#2.3 Homer更新

perl /path-to-homer/configureHomer.pl -update
perl /path-to-homer/configureHomer.pl -install homer #重新安装homer

#2.4 NGS分析软件安装

samtools安装

(Debian/Ubuntu): sudo apt-get install samtools 
(Redhat/CentOS): sudo yum install samtools

R包(DESeq2 和EdgeR)安装

R 3.5以前的版本

source("https://bioconductor.org/biocLite.R")
biocLite("DESeq2")
biocLite("edgeR")
q()

R 3.5+的版本:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("DESeq2", version = "3.8")
BiocManager::install("edgeR", version = "3.8")

#3. HOMER文件目录

上一篇下一篇

猜你喜欢

热点阅读