多基因或基因组区域集合的交叉和可视化工具

intervene的Python项目详细描述


https://raw.githubusercontent.com/asntech/intervene/master/docs/img/intervene_logo.png

干预

a tool for intersection and visualization of multiple gene or genomic region sets
https://travis-ci.org/asntech/intervene.svg?branch=masterhttps://img.shields.io/pypi/pyversions/intervene.svghttps://img.shields.io/pypi/v/intervene.svghttps://anaconda.org/bioconda/intervene/badges/version.svghttps://anaconda.org/bioconda/intervene/badges/downloads.svghttps://anaconda.org/bioconda/intervene/badges/installer/conda.svghttps://img.shields.io/github/issues/asntech/intervene.svghttps://img.shields.io/twitter/url/https/github.com/asntech/intervene.svg?style=social

文件

有不同格式的详细文档:HTMLPDFePUB

http://intervene.readthedocs.io/en/latest/_images/Intervene_sketch.png

安装

使用conda快速安装

conda install -c bioconda intervene

这将安装所有依赖项,您可以使用intervene。

使用pip安装

可以使用pip从pypi安装intervenate。

从pypi安装:

pip install intervene

注意:如果使用pip安装,请确保安装下面列出的bedtools和r包。

intervene需要以下python模块和r包:

安装床具

我们正在使用pybedtools,它是bedtools的python包装器。因此,在使用干预前,应安装床具。建议您安装最新版本,但如果您已经安装了较旧的版本,应该没问题。

一个快速安装,如果你有康达安装。

conda install -c bioconda bedtools

请阅读https://github.com/arq5x/bedtools2上的说明来安装bedtools,并确保它位于您的路径上,并且您可以从任何目录调用bedtools。

安装所需的R软件包

intervene需要三个r包,UpSetRcorrplot用于可视化,Cairo用于生成高质量的矢量和位图图形。

install.packages(c("UpSetR","corrplot","Cairo"))

安装干预源

您可以使用github或bitbucket中的git安装开发版本。

从Bitbucket安装开发版本

如果您已经安装了git,请使用这个:

git clone https://bitbucket.org/CBGR/intervene.git
cd intervene
python setup.py sdist install

从github安装开发版本

如果您已经安装了git,请使用这个:

git clone https://github.com/asntech/intervene.git
cd intervene
python setup.py sdist install

如何使用intervene

安装intervene后,您可以键入:

intervene --help

这将显示以下帮助消息。

usage: intervene <subcommand> [options]

positional arguments <subcommand>:
  {venn,upset,pairwise}
                        List of subcommands
    venn                Venn diagram of intersection of genomic regions or list sets (upto 6-way).
    upset               UpSet diagram of intersection of genomic regions or list sets.
    pairwise            Pairwise intersection and heatmap of N genomic region sets in <BED/GTF/GFF> format.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

要查看这三个子命令的帮助pairwisevennupset类型:

intervene pairwise --help

intervene venn --help

intervene upset --help

对测试数据运行intervene

要使用示例数据运行intervene,请使用以下命令。要访问测试数据,请确保有sudoroot访问权限。

intervene pairwise --test

intervene venn --test

intervene upset --test

如果已从源代码本地安装intervente,则可能无法找到测试数据。您可以在这里下载测试数据https://github.com/asntech/intervene/tree/master/intervene/example_data,并使用-i而不是--test指向它。

./intervene/intervene venn -i intervene/example_data/ENCODE_hESC/*.bed
./intervene/intervene upset -i intervene/example_data/ENCODE_hESC/*.bed
./intervene/intervene pairwise -i intervene/example_data/dbSUPER_mm9/*.bed

上述三个测试命令将生成以下三个图(A、B和C)。

http://intervene.readthedocs.io/en/latest/_images/Intervene_plots.png

默认情况下,您的结果将与名为Intervene_results的文件夹一起存储在当前工作目录中。如果要将结果保存到特定文件夹中,可以键入:

intervene upset --test --output ~/path/to/your/folder

互动闪亮应用程序

Intervene Shiny应用程序在https://asntech.shinyapps.io/intervenehttps://intervene.shinyapps.io/intervene免费提供

闪亮应用程序的源代码位于https://github.com/asntech/intervene-shiny

支持

如果您有任何问题,或在程序中发现任何错误,请致电aziz.khan[at]ncmm.uio.no

引用我们

如果您使用intervene,请引用我们:Khan A, Mathelier A. Intervene: a tool for intersection and visualization of multiple gene or genomic region sets. BMC Bioinformatics. 2017;18:287. doi: 10.1186/s12859-017-1708-7

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
“电话目录”数据结构的java实现   使用PC remote读取JSP页面上的文件时出现java错误   无法在不同目录中从Java执行Python脚本   java无法在windows 8.1上运行javafx应用程序   java航空公司系统如何防止两个用户同时预订同一个座位?   反射如何在java方法中获取每个参数的名称和值?   阅读中的字符串问题。txt文档并在Java中编辑   java JTextPane行包装问题   使用PowerMock Android Junit时出现java ClassNotFoundException   java输入和If语句   java如何在不使用剪贴板或操作CTRL+C、CTRL+V的情况下将字符串中的“\t”或“tab”发送到selenium中的文本框中   tomcat7将Java应用程序部署到Digitalocean中的Tomcat根目录   响应中嵌套映射的java问题(Jersey)