methylink


Namemethylink JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/projectoriented/methylink
Summarymethylink is a tool to link methylation tags between SAM/BAM files.
upload_time2023-11-14 22:29:55
maintainer
docs_urlNone
authorMei Wu
requires_python>=3.9.13
licenseMIT
keywords methylation nanopore bioinformatics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# methylink
[![GitHub actions status](https://github.com/projectoriented/methylink/workflows/Tests/badge.svg?branch=main)](https://github.com/projectoriented/methylink/actions?query=branch%3Amain+workflow%3ATests)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/projectoriented/methylink/blob/main/LICENSE)

A command line tool to link methylated sites between two BAM/SAM files of the same origin.

## Installation
In a **clean** :sparkles: environment
```shell
pip install methylink
```

## Usage:
```shell 
Usage: methylink [OPTIONS] COMMAND [ARGS]...

  A command line tool to link methylated sites between two BAM files of the
  same origin.

Options:
  -h, --help                      Show this message and exit.
  --version                       Show the version and exit.
  --log_level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
                                  Set the level of log output.  [default:
                                  INFO]
  --threads INTEGER               Number of threads to use.  [default: 1]
  --tmp PATH                      Temp directory to use.
  --methyl_bams TEXT              Unmapped bam files with methylation tags.
                                  [required]
  --aln TEXT                      Aligned bam to map the meth tags to.
                                  [required]
  --sample TEXT                   Sample name.  [required]
  --output TEXT                   Output file.  [required]

```

## Quick start
```shell
methylink \
  --threads 2 \
  --aln tests/data/CHM1_aln_test-subsampled.bam \
  --sample CHM1 \
  --methyl_bams "$(echo tests/data/CHM1_methylated_test-{1,2,3,4,5}.bam)" \
  --output CHM1-linked.bam
```

## Development
I'm happy with any contributions to make this code better :muscle:. You should be able to go forth with the following:
```shell
git clone [this repo]
cd methylink
python -m venv vmeth
source vmeth/bin/activate

pip install --editable .
```

## What remains to do-
- [ ] add to bioconda
- [ ] expand on documentation
- [x] use signal library to catch for forced exit (eg. ctrl+c) to safely delete temp folders
- [x] write github actions to automate test + build + publish

## Test
```shell
pytest
```
If that's okay then you're good to go, :tada:!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/projectoriented/methylink",
    "name": "methylink",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9.13",
    "maintainer_email": "",
    "keywords": "methylation nanopore bioinformatics",
    "author": "Mei Wu",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/28/05/59959116d9a1f425e2c758a210114463192a8e240d6d21eb4922a2ea1035/methylink-0.5.0.tar.gz",
    "platform": null,
    "description": "\n# methylink\n[![GitHub actions status](https://github.com/projectoriented/methylink/workflows/Tests/badge.svg?branch=main)](https://github.com/projectoriented/methylink/actions?query=branch%3Amain+workflow%3ATests)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/projectoriented/methylink/blob/main/LICENSE)\n\nA command line tool to link methylated sites between two BAM/SAM files of the same origin.\n\n## Installation\nIn a **clean** :sparkles: environment\n```shell\npip install methylink\n```\n\n## Usage:\n```shell \nUsage: methylink [OPTIONS] COMMAND [ARGS]...\n\n  A command line tool to link methylated sites between two BAM files of the\n  same origin.\n\nOptions:\n  -h, --help                      Show this message and exit.\n  --version                       Show the version and exit.\n  --log_level [DEBUG|INFO|WARNING|ERROR|CRITICAL]\n                                  Set the level of log output.  [default:\n                                  INFO]\n  --threads INTEGER               Number of threads to use.  [default: 1]\n  --tmp PATH                      Temp directory to use.\n  --methyl_bams TEXT              Unmapped bam files with methylation tags.\n                                  [required]\n  --aln TEXT                      Aligned bam to map the meth tags to.\n                                  [required]\n  --sample TEXT                   Sample name.  [required]\n  --output TEXT                   Output file.  [required]\n\n```\n\n## Quick start\n```shell\nmethylink \\\n  --threads 2 \\\n  --aln tests/data/CHM1_aln_test-subsampled.bam \\\n  --sample CHM1 \\\n  --methyl_bams \"$(echo tests/data/CHM1_methylated_test-{1,2,3,4,5}.bam)\" \\\n  --output CHM1-linked.bam\n```\n\n## Development\nI'm happy with any contributions to make this code better :muscle:. You should be able to go forth with the following:\n```shell\ngit clone [this repo]\ncd methylink\npython -m venv vmeth\nsource vmeth/bin/activate\n\npip install --editable .\n```\n\n## What remains to do-\n- [ ] add to bioconda\n- [ ] expand on documentation\n- [x] use signal library to catch for forced exit (eg. ctrl+c) to safely delete temp folders\n- [x] write github actions to automate test + build + publish\n\n## Test\n```shell\npytest\n```\nIf that's okay then you're good to go, :tada:!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "methylink is a tool to link methylation tags between SAM/BAM files.",
    "version": "0.5.0",
    "project_urls": {
        "Homepage": "https://github.com/projectoriented/methylink"
    },
    "split_keywords": [
        "methylation",
        "nanopore",
        "bioinformatics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a3dd0fcf524c4d95258a729ae82ed29f68b2c863957f43d1958b6ed8bc8494f4",
                "md5": "0e141a3d0ced45510831232cf5f986b1",
                "sha256": "0a095ab2c65ca9b20d5852deefbc1e33bcdb600ed188479ce674361e01da90cd"
            },
            "downloads": -1,
            "filename": "methylink-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e141a3d0ced45510831232cf5f986b1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9.13",
            "size": 8260,
            "upload_time": "2023-11-14T22:29:54",
            "upload_time_iso_8601": "2023-11-14T22:29:54.267965Z",
            "url": "https://files.pythonhosted.org/packages/a3/dd/0fcf524c4d95258a729ae82ed29f68b2c863957f43d1958b6ed8bc8494f4/methylink-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "280559959116d9a1f425e2c758a210114463192a8e240d6d21eb4922a2ea1035",
                "md5": "63fc97c3ec0865e88b416d53f5691abd",
                "sha256": "affd31b368b81555f8f6e36a1ce19b1ad22e13bfa49af05cc5b93daed1781f8f"
            },
            "downloads": -1,
            "filename": "methylink-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "63fc97c3ec0865e88b416d53f5691abd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.13",
            "size": 8172,
            "upload_time": "2023-11-14T22:29:55",
            "upload_time_iso_8601": "2023-11-14T22:29:55.651483Z",
            "url": "https://files.pythonhosted.org/packages/28/05/59959116d9a1f425e2c758a210114463192a8e240d6d21eb4922a2ea1035/methylink-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-14 22:29:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "projectoriented",
    "github_project": "methylink",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "methylink"
}
        
Elapsed time: 0.20220s