用于HI-C接触图的蛇形装箱包

serpentine的Python项目详细描述


Serpentine logo

蛇形装箱

PyPI versionPyPI - Python VersionBuild StatusAppveyor StatuscodecovRead the docsBinderLicense: Artistic-2.0Code style: black

局部涂抹hi-c接触图中的噪声区域,作为微分分析的前奏

目录

概要

将其用作Python3库:

importnumpyasnpimportserpentineasspA=np.loadtxt('./demos/A.csv')B=np.loadtxt('./demos/B.csv')trend,threshold=sp.MDbefore(A,B,show=False)sA,sB,sK=sp.serpentin_binning(A,B,threshold,threshold/5)

或者作为一个独立的unix工具:

$ serpentine --help
   Serpentine binning

   An implementation of the so-called 'serpentine binning' procedure described
   in Scolari et al.

   Command line::

    Usage:
        serpentine.py [<matrixA>] [<matrixB>] [--threshold=auto] [--verbose]
                      [--min-threshold=auto] [--trend=high] [--triangular]
                      [--limit=3] [--demo] [--demo-size=500]

    Arguments:
        matrixA                         The first input matrix, in plain text
                                        CSV format. Optional in demo mode.
        matrixB                         The second input matrix, in plain text
                                        CSV format. Optional in demo mode or
                                        single binning mode.

    Options:
        -h, --help                      Display this help message.
        --version                       Display the program's current version.
        -t auto, --threshold auto       Threshold value to trigger binning.
                                        [default: auto]
        -m auto, --min-threshold auto   Minimum value to force trigger binning
                                        in either matrix. [default: auto]
        --trend high                    Trend to subtract to the differential
                                        matrix, possible values are "mean":
                                        equal amount of positive and negative
                                        differences, and "high": normalize
                                        at the regions with higher coverage.
                                        [default: high]
        --triangular                    Treat the matrix as triangular,
                                        useful when plotting matrices adjacent
                                        to the diagonal. [default: False]
        --limit 3                       Set the z-axis limit on the
                                        plot of the differential matrix.
                                        [default: 3]
        --demo                          Run a demo on randomly generated
                                        matrices. [default: False]
        --demo-size 500                 Size of the test matrix for the demo.
                                        [default: 500]
        -v, --verbose                   Show verbose output. [default: False]

安装

   sudo pip3 install -e git+https://github.com/koszullab/serpentine.git@master#egg=serpentine

文档

执行命令serpentine --help将提供命令行工具的简要帮助。有关python库函数的详细参考,请 阅读documentation

作者

集群破坏者(scovit,a.k.a.vittore f.scolari), lyamovich(baudrly,又名lyam baudry)

版权和许可

版权所有©2017巴斯德研究所,本软件开发于 巴斯德研究所染色体空间调控小组, 法国巴黎。

这个库是免费软件;您可以重新分发和/或修改它 在艺术许可下。

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

推荐PyPI第三方库


热门话题
java Springboot数据JPA findByDate()   java是否可以有多个顶级树节点?   javahibernatehql。子查询中的多个   使用Twilio验证java Keyclope电话号码   java重写对象的toString()表示返回意外的符号   java Android最多每15分钟调用一个方法,否则使用保存的数据   在java swing中突出显示jeditorpane中的一些单词   java将时间戳转换为UTC时区   由于main中存在ArrayIndexOutOfBoundsException,导致java编译错误   java如何通过requestscope获取对象内部对象的值?   java访问安卓代码内的网站并检索生成的图像   java这种日期格式的模式是什么?   java解析包含超链接的xml字符串