crf-beam
Beam search for Bonito CRF models.
Usage
>>> import torch
>>> from crf_beam import beam_search
>>>
>>> T, C, S = 1000, 320, 64
>>> scores = torch.rand(T, C)
>>> back_guides = torch.rand(T + 1, S)
>>> post = torch.rand(T, S)
>>>
>>> sequence, qstring, moves = beam_search(scores, back_guides, post)
>>> sequence
'ACACTCGCAGCGCGATACGACTGATCGAGATATACTCAGTGTACACAGT...'
>>> qstring
'(&''(****95444"@732"55",--/5555"5"@@E"E4""","-#**...'
Developer Quickstart
Python
$ python3 -m venv venv3
$ source venv3/bin/activate
(venv3) $ pip install -r requirements.txt
(venv3) $ make build
(venv3) $ make test
WASM
$ make wasm
$ node tests/test.js
Metadata
Release files for crf-beam 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| crf_beam-0.1.9-cp311-cp311-manylinux2014_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ x86-64 | Details |
| crf_beam-0.1.9-cp310-cp310-manylinux2014_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.17+ x86-64 | Details |
| crf_beam-0.1.9-cp39-cp39-manylinux2014_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.17+ x86-64 | Details |
| crf_beam-0.1.9-cp38-cp38-manylinux2014_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.17+ x86-64 | Details |
Total release size: 11.6 MB
Release files / crf_beam-0.1.9-cp311-cp311-manylinux2014_x86_64.whl
| Download URL | crf_beam-0.1.9-cp311-cp311-manylinux2014_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
44fce62152b04099ec6b58d191d416b2cdce32f1207866b31cb6b4ce7b211e82
|
|
BLAKE2b-256 checksum How to use checksums |
0696726b99dc1ce2d529ecfca03e222c1c51b73050c706879a976434c6c98fe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Release files / crf_beam-0.1.9-cp310-cp310-manylinux2014_x86_64.whl
| Download URL | crf_beam-0.1.9-cp310-cp310-manylinux2014_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
99b1b093c86c6b1520604f5639d723c3adf1d2e5f519e3ceb882a58f9c7e34eb
|
|
BLAKE2b-256 checksum How to use checksums |
01e521ad7726697c64fa03d35d655b3ae34eb5955fd646894023febf59802897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Release files / crf_beam-0.1.9-cp39-cp39-manylinux2014_x86_64.whl
| Download URL | crf_beam-0.1.9-cp39-cp39-manylinux2014_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5505820db9687778d4d588b9ba4df851358b904f180170f11e3ecd157496aee5
|
|
BLAKE2b-256 checksum How to use checksums |
8e44382ab76e8c210065558a614586df07e5c4849fb5ba76c41bdea6d960a674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Release files / crf_beam-0.1.9-cp38-cp38-manylinux2014_x86_64.whl
| Download URL | crf_beam-0.1.9-cp38-cp38-manylinux2014_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
643f9bd52e7fd4329119818e455162beab3e9e5a4b5fa51d796924fb85063953
|
|
BLAKE2b-256 checksum How to use checksums |
79f399fc7deddf8e38f97a7468f7a6a977cc24be9a36aa100ca5b602b0e9ea1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|