momics


Namemomics JSON
Version 0.4.0 PyPI version JSON
download
home_pageNone
SummaryA package to create and manage genome-related TileDB arrays
upload_time2024-10-25 14:26:01
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseCC BY-NC 4.0
keywords tile-db bioinformatics epigenomics format genomics matrix multi-omics sparse
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fjs2264%2Fmomics%2Frefs%2Fheads%2Fdevel%2Fpyproject.toml)
[![PyPI - Version](https://img.shields.io/pypi/v/momics)](https://pypi.org/project/momics/)
[![Test & Doc](https://github.com/js2264/momics/actions/workflows/ci.yml/badge.svg)](https://github.com/js2264/momics/actions/workflows/ci.yml)
[![Codecov](https://img.shields.io/codecov/c/gh/js2264/momics)](https://app.codecov.io/gh/js2264/momics)
[![Black](https://img.shields.io/badge/style-black-black)](https://github.com/psf/black)

# momics

`momics` is both a revolutionary file format for efficient storage of ***multi-omics*** data, and a Python package designed to query and manipulate these files. The file format is specifically designed to handle genomic coverage tracks and sequences. The package provides an intuitive command-line interface (CLI) and a Python library for bioinformatics workflows involving genomic data.

## Install

You can install `momics` using `pip`:

```sh
pip install momics
```

Alternatively, clone this repository and install the package locally:

```sh
git clone https://github.com/js2264/momics.git
cd momics
pip install .
```

## Features

- Efficient genomic data storage: Store large genomic coverage tracks and genome reference sequences compactly.
- Multi-Range querying: Query multiple genomic regions simultaneously with high performance.
- Rich Python library: Directly access and manipulate genomic data using Python objects and methods.
- Full-fledged command-line interface (CLI): Perform common tasks such as adding new tracks, querying data, and extracting information directly from the shell.

## Usage

### CLI Commands

- Add a track:

To ingest a `.bw` genomic coverage data into a momics repository, you can use the `ingest` command:

```sh
momics ingest tracks -f bw1=path/to/file.bw path/to/momics_repo
```

- Query genomic coverage:

You can query tracks using either UCSC-style coordinates or a BED file:

```sh
momics query tracks --coordinates "chr1:1-1000" path/to/momics_repo
momics query tracks --file path/to/file.bed path/to/momics_repo
```

### Python API

In Python, you can load and query a momics repository like this:

```py
from momics.momics import Momics

# Load a Momics repository
repo = Momics("path/to/momics_repo")

# Query tracks with coordinates
df = repo.query_tracks("chr1:1-1000")
```

## Data Format

`momics` uses a custom data format that combines genomic sequences and coverage tracks in a compressed and indexed form. The format allows for rapid access to any region of the genome and supports simultaneous querying of multiple genomic regions.

## Contributing

Contributions are welcome! Please submit pull requests or issues on the GitHub repository.


This project uses `black` to format code and `ruff` for linting. We also support `pre-commit` to ensure
these have been run. To configure your local environment, please install these development dependencies and set up
the commit hooks.


## License

This project is licensed under the MIT License. See the LICENSE file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "momics",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Tile-DB, bioinformatics, epigenomics, format, genomics, matrix, multi-omics, sparse",
    "author": null,
    "author_email": "Jacques Serizay <jacques.serizay@pasteur.fr>",
    "download_url": "https://files.pythonhosted.org/packages/00/3c/8ff1158a308a27a993bf458c7bfc88c1aa9c4441b131735dc40cd665e97a/momics-0.4.0.tar.gz",
    "platform": null,
    "description": "![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fjs2264%2Fmomics%2Frefs%2Fheads%2Fdevel%2Fpyproject.toml)\n[![PyPI - Version](https://img.shields.io/pypi/v/momics)](https://pypi.org/project/momics/)\n[![Test & Doc](https://github.com/js2264/momics/actions/workflows/ci.yml/badge.svg)](https://github.com/js2264/momics/actions/workflows/ci.yml)\n[![Codecov](https://img.shields.io/codecov/c/gh/js2264/momics)](https://app.codecov.io/gh/js2264/momics)\n[![Black](https://img.shields.io/badge/style-black-black)](https://github.com/psf/black)\n\n# momics\n\n`momics` is both a revolutionary file format for efficient storage of ***multi-omics*** data, and a Python package designed to query and manipulate these files. The file format is specifically designed to handle genomic coverage tracks and sequences. The package provides an intuitive command-line interface (CLI) and a Python library for bioinformatics workflows involving genomic data.\n\n## Install\n\nYou can install `momics` using `pip`:\n\n```sh\npip install momics\n```\n\nAlternatively, clone this repository and install the package locally:\n\n```sh\ngit clone https://github.com/js2264/momics.git\ncd momics\npip install .\n```\n\n## Features\n\n- Efficient genomic data storage: Store large genomic coverage tracks and genome reference sequences compactly.\n- Multi-Range querying: Query multiple genomic regions simultaneously with high performance.\n- Rich Python library: Directly access and manipulate genomic data using Python objects and methods.\n- Full-fledged command-line interface (CLI): Perform common tasks such as adding new tracks, querying data, and extracting information directly from the shell.\n\n## Usage\n\n### CLI Commands\n\n- Add a track:\n\nTo ingest a `.bw` genomic coverage data into a momics repository, you can use the `ingest` command:\n\n```sh\nmomics ingest tracks -f bw1=path/to/file.bw path/to/momics_repo\n```\n\n- Query genomic coverage:\n\nYou can query tracks using either UCSC-style coordinates or a BED file:\n\n```sh\nmomics query tracks --coordinates \"chr1:1-1000\" path/to/momics_repo\nmomics query tracks --file path/to/file.bed path/to/momics_repo\n```\n\n### Python API\n\nIn Python, you can load and query a momics repository like this:\n\n```py\nfrom momics.momics import Momics\n\n# Load a Momics repository\nrepo = Momics(\"path/to/momics_repo\")\n\n# Query tracks with coordinates\ndf = repo.query_tracks(\"chr1:1-1000\")\n```\n\n## Data Format\n\n`momics` uses a custom data format that combines genomic sequences and coverage tracks in a compressed and indexed form. The format allows for rapid access to any region of the genome and supports simultaneous querying of multiple genomic regions.\n\n## Contributing\n\nContributions are welcome! Please submit pull requests or issues on the GitHub repository.\n\n\nThis project uses `black` to format code and `ruff` for linting. We also support `pre-commit` to ensure\nthese have been run. To configure your local environment, please install these development dependencies and set up\nthe commit hooks.\n\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n",
    "bugtrack_url": null,
    "license": "CC BY-NC 4.0",
    "summary": "A package to create and manage genome-related TileDB arrays",
    "version": "0.4.0",
    "project_urls": {
        "changelog": "https://github.com/js2264/momics/blob/devel/CHANGES.md",
        "documentation": "https://js2264.github.io/momics",
        "homepage": "https://js2264.github.io/momics",
        "repository": "https://github.com/js2264/momics"
    },
    "split_keywords": [
        "tile-db",
        " bioinformatics",
        " epigenomics",
        " format",
        " genomics",
        " matrix",
        " multi-omics",
        " sparse"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fddcc6314136f83614cc9db87ef533330f53da6256730307b10f942c0c27d7cb",
                "md5": "e804f311a21f9122c2df19dc28890f20",
                "sha256": "4dc90ba4f8ac5031f30b516d420c1cdea86bf2be9f1b3a5053a08c3118a18e3f"
            },
            "downloads": -1,
            "filename": "momics-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e804f311a21f9122c2df19dc28890f20",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 43903,
            "upload_time": "2024-10-25T14:25:59",
            "upload_time_iso_8601": "2024-10-25T14:25:59.848672Z",
            "url": "https://files.pythonhosted.org/packages/fd/dc/c6314136f83614cc9db87ef533330f53da6256730307b10f942c0c27d7cb/momics-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "003c8ff1158a308a27a993bf458c7bfc88c1aa9c4441b131735dc40cd665e97a",
                "md5": "443af8125317aefdc45832cc18c285f0",
                "sha256": "1bda04915dd83fb52656d5020afc3a367ab66b4905c0c1322fce6714944b1d7e"
            },
            "downloads": -1,
            "filename": "momics-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "443af8125317aefdc45832cc18c285f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 74968,
            "upload_time": "2024-10-25T14:26:01",
            "upload_time_iso_8601": "2024-10-25T14:26:01.246602Z",
            "url": "https://files.pythonhosted.org/packages/00/3c/8ff1158a308a27a993bf458c7bfc88c1aa9c4441b131735dc40cd665e97a/momics-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-25 14:26:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "js2264",
    "github_project": "momics",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "momics"
}
        
Elapsed time: 1.39354s