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
Metadata
Release files for sam-alignment-reconstructor 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sam-alignment-reconstructor-0.0.5.tar.gz | 14.3 kB | Without provenance | Details for sam-alignment-reconstructor-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl |
Total release size: 20.8 kB
Release files / sam-alignment-reconstructor-0.0.5.tar.gz
| Download URL | sam-alignment-reconstructor-0.0.5.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c52f7bc44ae134dbafe374d495365e8c8d15e2c985d1f87c06baed927a3fff1
|
|
BLAKE2b-256 checksum How to use checksums |
0ba92623ec0cf1e4651d97c9e97af2a83c622b82dafe2bc2a84be0f021a25812
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl
| Download URL | sam_alignment_reconstructor-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0c7b98dbc9ca8cd44aaf56dbde62010835032c11ea74f2c7a0599b8d57052308
|
|
BLAKE2b-256 checksum How to use checksums |
27c386ec7d3efe529f85189c09a4c9b416e715ea7a62af4e424894aa2aa48656
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sam-alignment-reconstructor 0.0.5
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.