Calculate consensus sequences
Project description
accord-rs
The accord-rs library calculates a consensus sequence from reads that where aligned against a reference sequence.
To bring something into accord (/əˈkɔrd/) is to make it agree or correspond. In German "Akkordarbeit" (piecework) is used to imply that something is done fast.
BEWARE:
This library is in the early alpha stage, and its API may be subject to change without notice.
Python
Accord provides bindings for consensus calculation from Python code.
Install with pip install accord-rs, and then use like so:
from accord import Calculator
from accord.data import AlnQualityReqs
# settings for consensus calculation
reqs = AlnQualityReqs(
min_mapq=10, # minimum mapping quality
mandatory_flags=0, # required SAM flags, see: https://broadinstitute.github.io/picard/explain-flags.html
prohibited_flags=1540, # no unmapped, failing quality or optical duplicate reads
indel_cutoff=0.1, # only indels contained in at least 10 % of reads covering that position are considered
save_ends=0, # this has no function yet - only relevant when using PCR fragments
min_observations=50, # base coverage needs to be at least 50
)
# generate the consensus and alignment statistics
calc = Calculator(reqs)
consensus = calc.calculate("/path/to/reference.fasta", "/path/to/aln.bam")
# print the consensus as a FASTA record
print(consensus.consensus_seq.to_fasta())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file accord_rs-0.0.12.tar.gz.
File metadata
- Download URL: accord_rs-0.0.12.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3739a8adc6cbdfc5e6fe82cd19ba74614348c76eccd45a75bd2d943c66a794be
|
|
| MD5 |
ff66f008677930197ce4300b383461f1
|
|
| BLAKE2b-256 |
b12c8ede1053596c547607bace6317fea38cf5b71c8a4d7a9c82cabd01fed9f8
|
File details
Details for the file accord_rs-0.0.12-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: PyPy, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8603182950c95d10260e12c86d0e6132c6c6467242a4674be881655b6a2161aa
|
|
| MD5 |
ec61af0e2d0ffe3305a3bab17d451d07
|
|
| BLAKE2b-256 |
d23c5a3f5ba86519e431d043b99a2ef3a7dc4d81d8eabbdbebd9c56b720b8103
|
File details
Details for the file accord_rs-0.0.12-cp314-cp314-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp314-cp314-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.14, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9bcda895865ad36bc751e18a57959a6f87b7f0b507a0b260da3d94e812bb8d9
|
|
| MD5 |
82b5cf48e3ac12c4f104526712329849
|
|
| BLAKE2b-256 |
6b908a64f57f8aa5d15f1fb09a13142186f679a361c3350d3cce349a01671a30
|
File details
Details for the file accord_rs-0.0.12-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.14, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af9938d90d897bb5bf6cb34c062d9b3679686ff8d20d32a5b3d10c244b81b189
|
|
| MD5 |
92f993f5049dc4f1489b067e68cbf49a
|
|
| BLAKE2b-256 |
99bdf3bc5184e848df14954195f86b29df8c4b8254148ae35b57125a42e8fd62
|
File details
Details for the file accord_rs-0.0.12-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21a1e3706953560bb528aebb274abced6bd58daa48bbae4939f5f04d83d6d45b
|
|
| MD5 |
d95b6cdff6644646c1ccfd51d5610e86
|
|
| BLAKE2b-256 |
be4c283c808ce3f6c61b793dc075c2d77ff0200fb3ba7d5bf8b1ed0171d2159e
|
File details
Details for the file accord_rs-0.0.12-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48e82ce84f0bad3879a5ce70b60b76de1c5c252eb981f2986bf70b0213f72261
|
|
| MD5 |
e593b805e9718c330ab5a6df87500a41
|
|
| BLAKE2b-256 |
6ae3528f5d53853322adb1d520e4c864231b8b42fadf6e88420d153781c74fac
|
File details
Details for the file accord_rs-0.0.12-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1232a9fee52080891bf850f0ed0ddd1b76e2c03663d2ba38c1193f4e7f7baa3
|
|
| MD5 |
f1cd88f2cdf7cec6fac6a40a708ed062
|
|
| BLAKE2b-256 |
b1f8f0719ca0d472ad56012773b6a48b39740529e56f2a8e9a9dbfa044edc955
|
File details
Details for the file accord_rs-0.0.12-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a375230704e9245ae707327c1bc653557f0dbe5412949c0cb07cd351ff135a76
|
|
| MD5 |
1b2090d323668b245c15797ee0339c79
|
|
| BLAKE2b-256 |
c610d466ec00dd57eb6e711274430b1f6de404e6c5273b2e883e37f083154ec3
|
File details
Details for the file accord_rs-0.0.12-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
016a89d968ea2a2bbbb9cc411c879cbc0fc75cef5a45ca037772037f6ba7b866
|
|
| MD5 |
a592f240c0a07888e6fad9b57c910e2b
|
|
| BLAKE2b-256 |
7011a5501b8380c9759dfc93434a0d742c7b8310a15e387b8630bf68d3456132
|
File details
Details for the file accord_rs-0.0.12-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.11, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd3beede5892ef277164ebda84a243cea681abff0cdb88ba04f8803f325c1061
|
|
| MD5 |
27f8cfaeb303f3f74e8aead720602ce4
|
|
| BLAKE2b-256 |
960125e59f1d751a0d2fe32ecb362b22edf782a0a3907e32bdb816232e8e2a36
|
File details
Details for the file accord_rs-0.0.12-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5562a565db8fd8a6ed77cd218e297e6ebf1be1de5dc492fea3fda7ba32d6378
|
|
| MD5 |
02e8fc9c0a3bb78d8e0358f6fd56d674
|
|
| BLAKE2b-256 |
757fd72ea6f493663d54fb41e225b44c561045a34297e01a2e3e63a973281d64
|
File details
Details for the file accord_rs-0.0.12-cp39-cp39-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c06fe6192f393c89b20e65cc62b3bf280808e548abd70bfb6349d122750645d
|
|
| MD5 |
7de218e2f0fcb9c6602363d897daaf16
|
|
| BLAKE2b-256 |
0c6be6cf4b491fef155befe6254d73b0f2b429238cc6b3fb301d28b5b50679c1
|
File details
Details for the file accord_rs-0.0.12-cp38-cp38-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: accord_rs-0.0.12-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101f71f64c58ee786f83a3d558cd218a3a59e42f03a6281c613386d4f752932e
|
|
| MD5 |
43a59fec2514a286a1a30da7b8e34720
|
|
| BLAKE2b-256 |
4c70bf744146d34ef6259275e744345ebaf241da73b0b3c4a408e705aa1ac2bf
|