vectome


Namevectome JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryDeterministic vectorization of genomes.
upload_time2025-10-19 22:20:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords template
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🧬 vectome

![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/scbirlab/vectome/python-test.yml)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/vectome)
![PyPI](https://img.shields.io/pypi/v/vectome)

**vectome** is a python package for deterministic vectorization of genomes. 

- [Installation](#installation)
- [Command-line interface](#command-line-interface)
- [Issues, problems, suggestions](#issues-problems-suggestions)
- [Documentation](#documentation)

## Installation

### The easy way

You can install the precompiled version directly using `pip`.

```bash
$ pip install vectome
```

### From source

Clone the repository, then `cd` into it. Then run:

```bash
$ pip install -e .
```

## Command-line interface

**vectome** has a command-line interface. 

```bash
$ vectome --help
```

You can generate vector embeddings by species / strain name or taxon ID.

```bash
$ vectome embed <(printf "Mycobacterium tuberculosis\n83333\nEscherichia coli CFT073")
```

The resulting vectors are based on MinHash sketches from [sourmash](), then folded into a 4096-vector using
the CountSketch method. You can make a shorter vector using e.g. `-n 1024`.

You can also deterministically project into a dense vector.

```bash
$ vectome embed <(printf "Mycobacterium tuberculosis H37Rv") --projection 16
```

Change the seed with e.g. `--seed 0`.

If you need a more interpretable vector, you can generate one based on Jaccard distances to
landmark species.

```bash
$ vectome embed <(printf "Mycobacterium tuberculosis H37Rv") --method landmark
```

Several landmark groups are available. You can set the group with `--group 0`, and 
get information about each one with `vectome info`.

```bash
$ vectome info
vectome version 0.0.1:
        group-0: {'landmarks': 113, 'manifest file': '.../vectome/vectome/data/landmarks/group-0/manifest.json', 'built': True}
        group-1: {'landmarks': 4, 'manifest file': '.../vectome/vectome/data/landmarks/group-1/manifest.json', 'built': True}
        group-2: {'landmarks': 1, 'manifest file': '.../vectome/vectome/data/landmarks/group-2/manifest.json', 'built': False}
        meta: {'cache location': '.../vectome/vectome/data/landmarks', 'cache exists': True}
```

## Issues, problems, suggestions

Add to the [issue tracker](https://www.github.com/scbirlab/vectome/issues).

## Documentation

(To come at [ReadTheDocs](https://vectome.readthedocs.org).)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "vectome",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "template",
    "author": null,
    "author_email": "Eachan Johnson <eachan.johnson@crick.ac.uk>",
    "download_url": "https://files.pythonhosted.org/packages/15/7c/9140f3bfbec393414d0891ac33d750993c4b9459107610321792a8802a2a/vectome-0.0.3.tar.gz",
    "platform": null,
    "description": "# \ud83e\uddec vectome\n\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/scbirlab/vectome/python-test.yml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/vectome)\n![PyPI](https://img.shields.io/pypi/v/vectome)\n\n**vectome** is a python package for deterministic vectorization of genomes. \n\n- [Installation](#installation)\n- [Command-line interface](#command-line-interface)\n- [Issues, problems, suggestions](#issues-problems-suggestions)\n- [Documentation](#documentation)\n\n## Installation\n\n### The easy way\n\nYou can install the precompiled version directly using `pip`.\n\n```bash\n$ pip install vectome\n```\n\n### From source\n\nClone the repository, then `cd` into it. Then run:\n\n```bash\n$ pip install -e .\n```\n\n## Command-line interface\n\n**vectome** has a command-line interface. \n\n```bash\n$ vectome --help\n```\n\nYou can generate vector embeddings by species / strain name or taxon ID.\n\n```bash\n$ vectome embed <(printf \"Mycobacterium tuberculosis\\n83333\\nEscherichia coli CFT073\")\n```\n\nThe resulting vectors are based on MinHash sketches from [sourmash](), then folded into a 4096-vector using\nthe CountSketch method. You can make a shorter vector using e.g. `-n 1024`.\n\nYou can also deterministically project into a dense vector.\n\n```bash\n$ vectome embed <(printf \"Mycobacterium tuberculosis H37Rv\") --projection 16\n```\n\nChange the seed with e.g. `--seed 0`.\n\nIf you need a more interpretable vector, you can generate one based on Jaccard distances to\nlandmark species.\n\n```bash\n$ vectome embed <(printf \"Mycobacterium tuberculosis H37Rv\") --method landmark\n```\n\nSeveral landmark groups are available. You can set the group with `--group 0`, and \nget information about each one with `vectome info`.\n\n```bash\n$ vectome info\nvectome version 0.0.1:\n        group-0: {'landmarks': 113, 'manifest file': '.../vectome/vectome/data/landmarks/group-0/manifest.json', 'built': True}\n        group-1: {'landmarks': 4, 'manifest file': '.../vectome/vectome/data/landmarks/group-1/manifest.json', 'built': True}\n        group-2: {'landmarks': 1, 'manifest file': '.../vectome/vectome/data/landmarks/group-2/manifest.json', 'built': False}\n        meta: {'cache location': '.../vectome/vectome/data/landmarks', 'cache exists': True}\n```\n\n## Issues, problems, suggestions\n\nAdd to the [issue tracker](https://www.github.com/scbirlab/vectome/issues).\n\n## Documentation\n\n(To come at [ReadTheDocs](https://vectome.readthedocs.org).)\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) [year] [fullname]\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "Deterministic vectorization of genomes.",
    "version": "0.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/scbirlab/vectome/issues",
        "Homepage": "https://github.com/scbirlab/vectome"
    },
    "split_keywords": [
        "template"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ddb0badbac58a1410900eac9ecfe3f1a6c0ee3bf56abdec41130e9881858fcba",
                "md5": "28549f9c8e23b4bf638376eb0828f2c8",
                "sha256": "0b88d8fc5d64e089b5630cef4df441f09f60ae7d2c16b7fd300da963423b0a43"
            },
            "downloads": -1,
            "filename": "vectome-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "28549f9c8e23b4bf638376eb0828f2c8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 53369,
            "upload_time": "2025-10-19T22:20:12",
            "upload_time_iso_8601": "2025-10-19T22:20:12.639808Z",
            "url": "https://files.pythonhosted.org/packages/dd/b0/badbac58a1410900eac9ecfe3f1a6c0ee3bf56abdec41130e9881858fcba/vectome-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "157c9140f3bfbec393414d0891ac33d750993c4b9459107610321792a8802a2a",
                "md5": "8cbf919307f3c57aee319eff7875a512",
                "sha256": "1331d447bca969281e35cde2869580e6d15640cb654a776b2ccd84c34e9166a9"
            },
            "downloads": -1,
            "filename": "vectome-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8cbf919307f3c57aee319eff7875a512",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 53113,
            "upload_time": "2025-10-19T22:20:13",
            "upload_time_iso_8601": "2025-10-19T22:20:13.806121Z",
            "url": "https://files.pythonhosted.org/packages/15/7c/9140f3bfbec393414d0891ac33d750993c4b9459107610321792a8802a2a/vectome-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-19 22:20:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "scbirlab",
    "github_project": "vectome",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "vectome"
}
        
Elapsed time: 1.27028s