Skip to main content

methylink

GitHub actions status License: MIT

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

Installation

In a clean ✨ environment

pip install methylink

NOTE: This does not work on windows. Separately, C libraries like zlib may be a dependency if you do not already have htslib installed- peep here: https://pysam.readthedocs.io/en/latest/installation.html#requirements. If a faster solution is desired and docker is installed, please build the image to circumvent local dependencies. Thanks!

Usage:

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. This will be a prefix for the output; e.g. CHM1-linked.bam [required]
  --output TEXT                   Output file.  [required]

Quick start

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 💪. You should be able to go forth with the following:

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
  • use signal library to catch for forced exit (eg. ctrl+c) to safely delete temp folders
  • write github actions to automate test + build + publish

Test

pytest

If that's okay then you're good to go, 🎉!

Metadata

Release files for methylink 0.6.0

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

Source distribution (sdist)

Source distribution for methylink 0.6.0
File Size Uploaded Provenance Actions
methylink-0.6.0.tar.gz 8.6 kB Without provenance Details for methylink-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.1 kB

Security for methylink 0.6.0

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