Skip to main content

Serpentine logo

Serpentine binning

PyPI version PyPI - Python Version Build Status codecov Read the docs Binder License: Artistic-2.0 Code style: black

Locally smearing noisy regions in Hi-C contact maps as a prelude to differential analyses

Table of contents

Synopsis

Use it as a Python 3 library:

   import numpy as np
   import serpentine as sp

   A = 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)

Or as a standalone UNIX tool:

$ serpentine --help
   Serpentine binning

   An implementation of the so-called 'serpentine binning' procedure described
   in Baudry 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]

Installation

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

Documentation

Executing the command serpentine --help will give you a brief help of the command line tool. For a detailed reference to the python library functions, please read the documentation.

Authors

Cluster Buster (scovit, a.k.a. Vittore F. Scolari), Lyamovich (baudrly, a.k.a. Lyam Baudry)

Copyright and license

Copyright © 2017 Institut Pasteur, this software has been developed in the Regulation Spatiale des Chromosomes team of Pasteur Institut, Paris, France.

This library is free software; you can redistribute it and/or modify it under the Artistic License.

Metadata

Release files for serpentine 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serpentine 0.1.3
File Size Uploaded Provenance Actions
serpentine-0.1.3.tar.gz 13.6 kB Without provenance Details for serpentine-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for serpentine 0.1.3
File Interpreter ABI Platform Actions
serpentine-0.1.3-py3-none-any.whl Python 3 none any Details for serpentine-0.1.3-py3-none-any.whl

Total release size: 30.9 kB

Release files / serpentine-0.1.3.tar.gz

Download URL serpentine-0.1.3.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5edbed26b21fb5520bb67a8f4aa15bc97708f97f678e135310f6affa00ba644
BLAKE2b-256 checksum
How to use checksums
065b64c46f7e5e3de937b39caf5216d4d57903578e777be24b2568d2afc650d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

Release files / serpentine-0.1.3-py3-none-any.whl

Download URL serpentine-0.1.3-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
863a07b2b02285a2ac74585939a6605241217a9c701303e5a3a3242825789272
BLAKE2b-256 checksum
How to use checksums
d8a409b9d406ef9c0d03358349cb6ed3dc8bdfe33b9c33be236509cc57e9690c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

Security for serpentine 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page