Skip to main content

SAM Alignment Reconstructor

Project description

https://travis-ci.com/Ensembl/sam-alignment-reconstructor.svg?branch=master https://codecov.io/gh/Ensembl/sam-alignment-reconstructor/branch/master/graph/badge.svg Documentation Status

Overview

This package is design to reconstruct pairwise alignments from SAM files using the CIGAR string and MD:Z tag

It can be used as a standalone command line tool, or as a library when given the three elements above.

Usage

To install the package, enable the virtual environment where it’s going to be used and run

$ pip install sam-alignment-reconstructor
$ cat file.sam | sam-alignment-reconstructor

MS2007487-600V3:1:2109:08999:01136
TTCGAAATCTCACGCTCTTTACTGAAGACCCAGATAGAGCTTATCCTAAT
|||||||||||||||||||||||||||||||||:||||||||||||||||
TTCGAAATCTCACGCTCTTTACTGAAGACCCAGNTAGAGCTTATCCTAAT

CAGGATACTGTGTGGGAGAGGTTCGAGCAGGTATTTTTAGTGGCCTATG-
|||||||||||||||||:||:|||||||||||||||||||||:||||||
CAGGATACTGTGTGGGANAGNTTCGAGCAGGTATTTTTAGTGNCCTATGC

----GGTTGGTCACTTATGCCCCTGTCTTTAAAGACTACCTCTATGAAGG
    :::|||||||||||||||||||||||||||||||||||||||||||
CCCACTATGGTCACTTATGCCCCTGTCTTTAAAGACTACCTCTATGAAGG

TCTCCGACAGTTTTATGAGGACAACATCATGTATGTGGAGATCAGAGCAC
|||||||||||||||||||||||||||||:|||||||||:||||||||||
TCTCCGACAGTTTTATGAGGACAACATCACGTATGTGGAAATCAGAGCAC

Developing

To prepare the environment for developing the library, create a virtual environment, go to project root and then run:

$ pip install -e .[dev]

Testing

The recommended way is to test using detox. This allows for testing in all the supported python versions using virtual environments effortlessly. To use, install it, then run in the project root:

$ pip install detox
$ detox

Alternatively, testing can be done in the same environment as the dev one by installing it’s dependencies, then running pytest:

$ pip install -e .[test]
$ python -m pytest -s

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sam-alignment-reconstructor-0.0.5.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sam-alignment-reconstructor-0.0.5.tar.gz.

File metadata

File hashes

Hashes for sam-alignment-reconstructor-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5c52f7bc44ae134dbafe374d495365e8c8d15e2c985d1f87c06baed927a3fff1
MD5 f9f2284afe4068868f8b45fe908afbeb
BLAKE2b-256 0ba92623ec0cf1e4651d97c9e97af2a83c622b82dafe2bc2a84be0f021a25812

See more details on using hashes here.

File details

Details for the file sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c7b98dbc9ca8cd44aaf56dbde62010835032c11ea74f2c7a0599b8d57052308
MD5 0960efc4bc864c6e27e9d7c44d2feda6
BLAKE2b-256 27c386ec7d3efe529f85189c09a4c9b416e715ea7a62af4e424894aa2aa48656

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page