LZGraphs


NameLZGraphs JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/MuteJester/LZGraphs
SummaryAn Implementation of LZ76 Based Graphs for Repertoire Representation and Analysis
upload_time2024-03-27 08:29:17
maintainerNone
docs_urlNone
authorThomas Konstantinovsky
requires_python<4,>=3.8
licenseMIT
keywords graph theory immunology analytics biology t-cell repertoire cdr3
VCS
bugtrack_url
requirements networkx numpy pandas tqdm matplotlib seaborn lzgraphs setuptools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">

[![Stargazers][stars-shield]][stars-url]
[![Commits][commits-shield]][commits-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]

</p>


<!-- PROJECT LOGO -->
<br />
<p align="center">
  <a href="https://github.com/MuteJester/LZGraphs">
    <img src="https://github.com/MuteJester/LZGraphs/blob/master/misc/lzglogo2.png" alt="Logo" width="480" height="330">
  </a>

  <h2 align="center">LZGraphs</h2>

  <p align="center">
    LZ76 Graphs and Applications in Immunology
    <br />
    <a href="https://MuteJester.github.io/LZGraphs/"><strong>Explore the docs »</strong></a>
    <br />
    <br />
    <a href="https://github.com/MuteJester/LZGraphs/issues">Report Bug</a>
    ·
    <a href="https://github.com/MuteJester/LZGraphs/issues">Request Feature</a>
  </p>
</p>



<!-- TABLE OF CONTENTS -->
## Table of Contents

* [About the Project](#about-the-project)
* [Usage](#usage)
* [Roadmap](#roadmap)
* [Contributing](#contributing)
* [License](#license)
* [Contact](#contact)



<!-- ABOUT THE PROJECT -->
## About The Project

LZGraphs :dna: is a Python library that implements the methodology presented in the research paper "A Novel Approach to T-Cell Receptor Beta Chain (TCRB) Repertoire Encoding Using Lossless String Compression". 

### Background

The diversity of T-cells is crucial for producing effective receptors that can recognize the pathogens encountered throughout life. A stochastic biological process known as V(D)J recombination accounts for the high diversity of these receptors, making their analysis challenging.

### The LZGraphs Approach

LZGraphs presents a new approach to sequence encoding and analysis, based on the Lempel-Ziv 76 algorithm (LZ-76). By creating a graph-like model, LZGraphs identifies specific sequence features and produces a new encoding approach to an individual’s repertoire. 

This unique repertoire representation allows for various applications, such as:

- Generation probability inference
- Informative feature vector derivation
- Sequence generation
- A new measure for diversity estimation

All of these are obtained without relying on time costly and error-prone alignment steps. 


### Installation

#### General Python Environment

To install LZGraphs in a general Python environment, you can use pip, which is a package manager for Python. Open your terminal and type the following command:

```bash
pip install LZGraphs
```

If you have both Python 2 and Python 3 installed on your machine, and you want to use Python 3, you should use pip3:

```bash
pip3 install LZGraphs
```

#### Jupyter Notebook

If you're using a Jupyter notebook, you can install LZGraphs directly in a code cell. Just type and execute the following command in a new cell:

```python
!pip install LZGraphs
```

The exclamation mark at the beginning is a special Jupyter command that allows you to run terminal commands from within a notebook.

#### Troubleshooting

If you encounter any issues during the installation, make sure that your pip is up-to-date. You can upgrade pip using the following command:

```bash
pip install --upgrade pip
```

Or, for Python 3:

```bash
pip3 install --upgrade pip
```

After upgrading pip, try installing LZGraphs again. If you still encounter issues, please raise an issue in this GitHub repository with a description of the problem and any error messages you received.

---


<!-- USAGE EXAMPLES -->
## Usage

The LZGraphs library is designed to be user-friendly and easy to use. You can get started with it in two main ways:

1. **Read the Documentation**: We have a comprehensive [documentation](https://MuteJester.github.io/LZGraphs/) that provides detailed information about the LZGraph model and its applications. The documentation is divided into several sections to help you understand and use the functions and data structures implemented in this library in the most effective and quick manner. It includes:

    - Installation instructions
    - Tutorials for quick plug-and-play usage
    - Descriptions of miscellaneous, visualization, utilities, and Node Edge Saturation functions
    - Detailed information about the LZGraph Base Class, NDPLZGraph Class, and AAPLZGraph Class

    We recommend starting with the [Tutorials](https://MuteJester.github.io/LZGraphs/tutorials) page for a hands-on introduction to the useful functionality provided by the LZGraph library.

2. **Interactive Jupyter Notebook Guides**: You can also download the `Examples` folder from this repository and follow an interactive Jupyter notebook guide. These guides provide step-by-step instructions on how to use the different models of this repo, making it easy for you to learn by doing.


<!-- ROADMAP -->
## Roadmap

See the [open issues](https://github.com/MuteJester/LZGraphs/issues) for a list of proposed features (and known issues).

<!-- CONTRIBUTING -->
## Contributing

Contributions are what make the open-source community such a powerful place to create new ideas, inspire, and make progress. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request


<!-- LICENSE -->
## License

Distributed under the MIT license. See `LICENSE` for more information.



<!-- CONTACT -->
## Contact

[Thomas Konstantinovsky]() - thomaskon90@gmail.com

Project Link: [https://github.com/MuteJester/LZGraphs](https://github.com/MuteJester/LZGraphs)





<!-- MARKDOWN LINKS & IMAGES -->
[stars-shield]: https://img.shields.io/github/stars/MuteJester/LZGraphs.svg?style=flat-square
[stars-url]: https://github.com/MuteJester/LZGraphs/stargazers
[issues-shield]: https://img.shields.io/github/issues/MuteJester/LZGraphs.svg?style=flat-square
[issues-url]: https://github.com/MuteJester/LZGraphs/issues
[license-shield]: https://img.shields.io/github/license/MuteJester/LZGraphs.svg?style=flat-square
[license-url]: https://github.com/MuteJester/LZGraphs/blob/master/LICENSE
[commits-shield]: https://img.shields.io/github/commit-activity/m/MuteJester/LZGraphs?style=flat-square
[commits-url]: https://github.com/MuteJester/LZGraphs
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://www.linkedin.com/in/thomas-konstantinovsky-56230117b/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MuteJester/LZGraphs",
    "name": "LZGraphs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": "Graph Theory, Immunology, Analytics, Biology, T-cell, Repertoire, CDR3",
    "author": "Thomas Konstantinovsky",
    "author_email": "thomaskon90@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/48/74/efd6fedcb89549e2953672f66088e6ca1cdcd1e681c572f8061072d26dae/LZGraphs-1.0.2.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\r\n\r\n[![Stargazers][stars-shield]][stars-url]\r\n[![Commits][commits-shield]][commits-url]\r\n[![Issues][issues-shield]][issues-url]\r\n[![MIT License][license-shield]][license-url]\r\n[![LinkedIn][linkedin-shield]][linkedin-url]\r\n\r\n</p>\r\n\r\n\r\n<!-- PROJECT LOGO -->\r\n<br />\r\n<p align=\"center\">\r\n  <a href=\"https://github.com/MuteJester/LZGraphs\">\r\n    <img src=\"https://github.com/MuteJester/LZGraphs/blob/master/misc/lzglogo2.png\" alt=\"Logo\" width=\"480\" height=\"330\">\r\n  </a>\r\n\r\n  <h2 align=\"center\">LZGraphs</h2>\r\n\r\n  <p align=\"center\">\r\n    LZ76 Graphs and Applications in Immunology\r\n    <br />\r\n    <a href=\"https://MuteJester.github.io/LZGraphs/\"><strong>Explore the docs \u00bb</strong></a>\r\n    <br />\r\n    <br />\r\n    <a href=\"https://github.com/MuteJester/LZGraphs/issues\">Report Bug</a>\r\n    \u00b7\r\n    <a href=\"https://github.com/MuteJester/LZGraphs/issues\">Request Feature</a>\r\n  </p>\r\n</p>\r\n\r\n\r\n\r\n<!-- TABLE OF CONTENTS -->\r\n## Table of Contents\r\n\r\n* [About the Project](#about-the-project)\r\n* [Usage](#usage)\r\n* [Roadmap](#roadmap)\r\n* [Contributing](#contributing)\r\n* [License](#license)\r\n* [Contact](#contact)\r\n\r\n\r\n\r\n<!-- ABOUT THE PROJECT -->\r\n## About The Project\r\n\r\nLZGraphs :dna: is a Python library that implements the methodology presented in the research paper \"A Novel Approach to T-Cell Receptor Beta Chain (TCRB) Repertoire Encoding Using Lossless String Compression\". \r\n\r\n### Background\r\n\r\nThe diversity of T-cells is crucial for producing effective receptors that can recognize the pathogens encountered throughout life. A stochastic biological process known as V(D)J recombination accounts for the high diversity of these receptors, making their analysis challenging.\r\n\r\n### The LZGraphs Approach\r\n\r\nLZGraphs presents a new approach to sequence encoding and analysis, based on the Lempel-Ziv 76 algorithm (LZ-76). By creating a graph-like model, LZGraphs identifies specific sequence features and produces a new encoding approach to an individual\u2019s repertoire. \r\n\r\nThis unique repertoire representation allows for various applications, such as:\r\n\r\n- Generation probability inference\r\n- Informative feature vector derivation\r\n- Sequence generation\r\n- A new measure for diversity estimation\r\n\r\nAll of these are obtained without relying on time costly and error-prone alignment steps. \r\n\r\n\r\n### Installation\r\n\r\n#### General Python Environment\r\n\r\nTo install LZGraphs in a general Python environment, you can use pip, which is a package manager for Python. Open your terminal and type the following command:\r\n\r\n```bash\r\npip install LZGraphs\r\n```\r\n\r\nIf you have both Python 2 and Python 3 installed on your machine, and you want to use Python 3, you should use pip3:\r\n\r\n```bash\r\npip3 install LZGraphs\r\n```\r\n\r\n#### Jupyter Notebook\r\n\r\nIf you're using a Jupyter notebook, you can install LZGraphs directly in a code cell. Just type and execute the following command in a new cell:\r\n\r\n```python\r\n!pip install LZGraphs\r\n```\r\n\r\nThe exclamation mark at the beginning is a special Jupyter command that allows you to run terminal commands from within a notebook.\r\n\r\n#### Troubleshooting\r\n\r\nIf you encounter any issues during the installation, make sure that your pip is up-to-date. You can upgrade pip using the following command:\r\n\r\n```bash\r\npip install --upgrade pip\r\n```\r\n\r\nOr, for Python 3:\r\n\r\n```bash\r\npip3 install --upgrade pip\r\n```\r\n\r\nAfter upgrading pip, try installing LZGraphs again. If you still encounter issues, please raise an issue in this GitHub repository with a description of the problem and any error messages you received.\r\n\r\n---\r\n\r\n\r\n<!-- USAGE EXAMPLES -->\r\n## Usage\r\n\r\nThe LZGraphs library is designed to be user-friendly and easy to use. You can get started with it in two main ways:\r\n\r\n1. **Read the Documentation**: We have a comprehensive [documentation](https://MuteJester.github.io/LZGraphs/) that provides detailed information about the LZGraph model and its applications. The documentation is divided into several sections to help you understand and use the functions and data structures implemented in this library in the most effective and quick manner. It includes:\r\n\r\n    - Installation instructions\r\n    - Tutorials for quick plug-and-play usage\r\n    - Descriptions of miscellaneous, visualization, utilities, and Node Edge Saturation functions\r\n    - Detailed information about the LZGraph Base Class, NDPLZGraph Class, and AAPLZGraph Class\r\n\r\n    We recommend starting with the [Tutorials](https://MuteJester.github.io/LZGraphs/tutorials) page for a hands-on introduction to the useful functionality provided by the LZGraph library.\r\n\r\n2. **Interactive Jupyter Notebook Guides**: You can also download the `Examples` folder from this repository and follow an interactive Jupyter notebook guide. These guides provide step-by-step instructions on how to use the different models of this repo, making it easy for you to learn by doing.\r\n\r\n\r\n<!-- ROADMAP -->\r\n## Roadmap\r\n\r\nSee the [open issues](https://github.com/MuteJester/LZGraphs/issues) for a list of proposed features (and known issues).\r\n\r\n<!-- CONTRIBUTING -->\r\n## Contributing\r\n\r\nContributions are what make the open-source community such a powerful place to create new ideas, inspire, and make progress. Any contributions you make are **greatly appreciated**.\r\n\r\n1. Fork the Project\r\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\r\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n5. Open a Pull Request\r\n\r\n\r\n<!-- LICENSE -->\r\n## License\r\n\r\nDistributed under the MIT license. See `LICENSE` for more information.\r\n\r\n\r\n\r\n<!-- CONTACT -->\r\n## Contact\r\n\r\n[Thomas Konstantinovsky]() - thomaskon90@gmail.com\r\n\r\nProject Link: [https://github.com/MuteJester/LZGraphs](https://github.com/MuteJester/LZGraphs)\r\n\r\n\r\n\r\n\r\n\r\n<!-- MARKDOWN LINKS & IMAGES -->\r\n[stars-shield]: https://img.shields.io/github/stars/MuteJester/LZGraphs.svg?style=flat-square\r\n[stars-url]: https://github.com/MuteJester/LZGraphs/stargazers\r\n[issues-shield]: https://img.shields.io/github/issues/MuteJester/LZGraphs.svg?style=flat-square\r\n[issues-url]: https://github.com/MuteJester/LZGraphs/issues\r\n[license-shield]: https://img.shields.io/github/license/MuteJester/LZGraphs.svg?style=flat-square\r\n[license-url]: https://github.com/MuteJester/LZGraphs/blob/master/LICENSE\r\n[commits-shield]: https://img.shields.io/github/commit-activity/m/MuteJester/LZGraphs?style=flat-square\r\n[commits-url]: https://github.com/MuteJester/LZGraphs\r\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555\r\n[linkedin-url]: https://www.linkedin.com/in/thomas-konstantinovsky-56230117b/\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An Implementation of LZ76 Based Graphs for Repertoire Representation and Analysis",
    "version": "1.0.2",
    "project_urls": {
        "Download": "https://github.com/MuteJester/LZGraphs/archive/refs/tags/Beta1.0.1.tar.gz",
        "Homepage": "https://github.com/MuteJester/LZGraphs"
    },
    "split_keywords": [
        "graph theory",
        " immunology",
        " analytics",
        " biology",
        " t-cell",
        " repertoire",
        " cdr3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4874efd6fedcb89549e2953672f66088e6ca1cdcd1e681c572f8061072d26dae",
                "md5": "b0528db7095c132930464bbff80cc1d9",
                "sha256": "f4c5ca576d90ca00b147883c8bc0dbf56127bb6752713eab3c6b2ad869c73551"
            },
            "downloads": -1,
            "filename": "LZGraphs-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b0528db7095c132930464bbff80cc1d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 39803,
            "upload_time": "2024-03-27T08:29:17",
            "upload_time_iso_8601": "2024-03-27T08:29:17.508093Z",
            "url": "https://files.pythonhosted.org/packages/48/74/efd6fedcb89549e2953672f66088e6ca1cdcd1e681c572f8061072d26dae/LZGraphs-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-27 08:29:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MuteJester",
    "github_project": "LZGraphs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "networkx",
            "specs": [
                [
                    "~=",
                    "3.1"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "~=",
                    "1.24.3"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "~=",
                    "1.5.3"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": [
                [
                    "~=",
                    "4.65.0"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    "~=",
                    "3.7.2"
                ]
            ]
        },
        {
            "name": "seaborn",
            "specs": [
                [
                    "~=",
                    "0.12.2"
                ]
            ]
        },
        {
            "name": "lzgraphs",
            "specs": [
                [
                    "~=",
                    "1.0"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "~=",
                    "68.0.0"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "lzgraphs"
}
        
Elapsed time: 0.41265s