dna-parser 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dna_parser-0.1.0/.github/workflows/CI.yml +54 -0
- dna_parser-0.1.0/.github/workflows/release.yml +67 -0
- dna_parser-0.1.0/.gitignore +72 -0
- dna_parser-0.1.0/Cargo.lock +450 -0
- dna_parser-0.1.0/Cargo.toml +16 -0
- dna_parser-0.1.0/LICENSE +21 -0
- dna_parser-0.1.0/PKG-INFO +155 -0
- dna_parser-0.1.0/README.md +143 -0
- dna_parser-0.1.0/pyproject.toml +18 -0
- dna_parser-0.1.0/python/dna_parser/__init__.py +6 -0
- dna_parser-0.1.0/python/dna_parser/call_functions.py +17 -0
- dna_parser-0.1.0/run-maturin-action.sh +16 -0
- dna_parser-0.1.0/src/fasta_files.rs +106 -0
- dna_parser-0.1.0/src/kmers.rs +30 -0
- dna_parser-0.1.0/src/lib.rs +49 -0
- dna_parser-0.1.0/src/onehot.rs +292 -0
- dna_parser-0.1.0/src/ordinal.rs +289 -0
- dna_parser-0.1.0/src/random_sequence.rs +135 -0
- dna_parser-0.1.0/src/tfidf.rs +103 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
linux:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: PyO3/maturin-action@v1
|
|
16
|
+
with:
|
|
17
|
+
manylinux: auto
|
|
18
|
+
command: build
|
|
19
|
+
args: --release --sdist -o dist --find-interpreter
|
|
20
|
+
- name: Upload wheels
|
|
21
|
+
uses: actions/upload-artifact@v3
|
|
22
|
+
with:
|
|
23
|
+
name: wheels
|
|
24
|
+
path: dist
|
|
25
|
+
|
|
26
|
+
windows:
|
|
27
|
+
runs-on: windows-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v3
|
|
30
|
+
- uses: PyO3/maturin-action@v1
|
|
31
|
+
with:
|
|
32
|
+
command: build
|
|
33
|
+
args: --release -o dist --find-interpreter
|
|
34
|
+
- name: Upload wheels
|
|
35
|
+
uses: actions/upload-artifact@v3
|
|
36
|
+
with:
|
|
37
|
+
name: wheels
|
|
38
|
+
path: dist
|
|
39
|
+
|
|
40
|
+
macos:
|
|
41
|
+
runs-on: macos-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v3
|
|
44
|
+
- uses: PyO3/maturin-action@v1
|
|
45
|
+
with:
|
|
46
|
+
command: build
|
|
47
|
+
args: --release -o dist --universal2 --find-interpreter
|
|
48
|
+
- name: Upload wheels
|
|
49
|
+
uses: actions/upload-artifact@v3
|
|
50
|
+
with:
|
|
51
|
+
name: wheels
|
|
52
|
+
path: dist
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
linux:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: PyO3/maturin-action@v1
|
|
16
|
+
with:
|
|
17
|
+
manylinux: auto
|
|
18
|
+
command: build
|
|
19
|
+
args: --release --sdist -o dist --find-interpreter
|
|
20
|
+
- name: Upload wheels
|
|
21
|
+
uses: actions/upload-artifact@v3
|
|
22
|
+
with:
|
|
23
|
+
name: wheels
|
|
24
|
+
path: dist
|
|
25
|
+
|
|
26
|
+
windows:
|
|
27
|
+
runs-on: windows-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v3
|
|
30
|
+
- uses: PyO3/maturin-action@v1
|
|
31
|
+
with:
|
|
32
|
+
command: build
|
|
33
|
+
args: --release -o dist --find-interpreter
|
|
34
|
+
- name: Upload wheels
|
|
35
|
+
uses: actions/upload-artifact@v3
|
|
36
|
+
with:
|
|
37
|
+
name: wheels
|
|
38
|
+
path: dist
|
|
39
|
+
|
|
40
|
+
macos:
|
|
41
|
+
runs-on: macos-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v3
|
|
44
|
+
- uses: PyO3/maturin-action@v1
|
|
45
|
+
with:
|
|
46
|
+
command: build
|
|
47
|
+
args: --release -o dist --universal2 --find-interpreter
|
|
48
|
+
- name: Upload wheels
|
|
49
|
+
uses: actions/upload-artifact@v3
|
|
50
|
+
with:
|
|
51
|
+
name: wheels
|
|
52
|
+
path: dist
|
|
53
|
+
|
|
54
|
+
release:
|
|
55
|
+
name: Release
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
needs: [ macos, windows, linux ]
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/download-artifact@v3
|
|
60
|
+
with:
|
|
61
|
+
name: wheels
|
|
62
|
+
path: dist
|
|
63
|
+
- name: Publish distribution 📦 to PyPI
|
|
64
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
65
|
+
with:
|
|
66
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
67
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/target
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
.venv/
|
|
14
|
+
env/
|
|
15
|
+
bin/
|
|
16
|
+
build/
|
|
17
|
+
develop-eggs/
|
|
18
|
+
dist/
|
|
19
|
+
eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
include/
|
|
26
|
+
man/
|
|
27
|
+
venv/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
|
|
32
|
+
# Installer logs
|
|
33
|
+
pip-log.txt
|
|
34
|
+
pip-delete-this-directory.txt
|
|
35
|
+
pip-selfcheck.json
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.coverage
|
|
41
|
+
.cache
|
|
42
|
+
nosetests.xml
|
|
43
|
+
coverage.xml
|
|
44
|
+
|
|
45
|
+
# Translations
|
|
46
|
+
*.mo
|
|
47
|
+
|
|
48
|
+
# Mr Developer
|
|
49
|
+
.mr.developer.cfg
|
|
50
|
+
.project
|
|
51
|
+
.pydevproject
|
|
52
|
+
|
|
53
|
+
# Rope
|
|
54
|
+
.ropeproject
|
|
55
|
+
|
|
56
|
+
# Django stuff:
|
|
57
|
+
*.log
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
.DS_Store
|
|
61
|
+
|
|
62
|
+
# Sphinx documentation
|
|
63
|
+
docs/_build/
|
|
64
|
+
|
|
65
|
+
# PyCharm
|
|
66
|
+
.idea/
|
|
67
|
+
|
|
68
|
+
# VSCode
|
|
69
|
+
.vscode/
|
|
70
|
+
|
|
71
|
+
# Pyenv
|
|
72
|
+
.python-version
|
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.1.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "1.3.2"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "cfg-if"
|
|
19
|
+
version = "1.0.0"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "dna_parser"
|
|
25
|
+
version = "0.1.0"
|
|
26
|
+
dependencies = [
|
|
27
|
+
"itertools",
|
|
28
|
+
"num_cpus",
|
|
29
|
+
"numpy",
|
|
30
|
+
"pyo3",
|
|
31
|
+
"rand",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[[package]]
|
|
35
|
+
name = "either"
|
|
36
|
+
version = "1.8.1"
|
|
37
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
38
|
+
checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
|
|
39
|
+
|
|
40
|
+
[[package]]
|
|
41
|
+
name = "getrandom"
|
|
42
|
+
version = "0.2.8"
|
|
43
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
+
checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
|
|
45
|
+
dependencies = [
|
|
46
|
+
"cfg-if",
|
|
47
|
+
"libc",
|
|
48
|
+
"wasi",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "hermit-abi"
|
|
53
|
+
version = "0.2.6"
|
|
54
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
55
|
+
checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7"
|
|
56
|
+
dependencies = [
|
|
57
|
+
"libc",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "indoc"
|
|
62
|
+
version = "1.0.9"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "itertools"
|
|
68
|
+
version = "0.10.5"
|
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
70
|
+
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
|
|
71
|
+
dependencies = [
|
|
72
|
+
"either",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "libc"
|
|
77
|
+
version = "0.2.139"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
|
|
80
|
+
|
|
81
|
+
[[package]]
|
|
82
|
+
name = "lock_api"
|
|
83
|
+
version = "0.4.9"
|
|
84
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
85
|
+
checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
|
|
86
|
+
dependencies = [
|
|
87
|
+
"autocfg",
|
|
88
|
+
"scopeguard",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[[package]]
|
|
92
|
+
name = "matrixmultiply"
|
|
93
|
+
version = "0.3.2"
|
|
94
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
95
|
+
checksum = "add85d4dd35074e6fedc608f8c8f513a3548619a9024b751949ef0e8e45a4d84"
|
|
96
|
+
dependencies = [
|
|
97
|
+
"rawpointer",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "memoffset"
|
|
102
|
+
version = "0.8.0"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"autocfg",
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "ndarray"
|
|
111
|
+
version = "0.15.6"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32"
|
|
114
|
+
dependencies = [
|
|
115
|
+
"matrixmultiply",
|
|
116
|
+
"num-complex",
|
|
117
|
+
"num-integer",
|
|
118
|
+
"num-traits",
|
|
119
|
+
"rawpointer",
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "num-complex"
|
|
124
|
+
version = "0.4.3"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"num-traits",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "num-integer"
|
|
133
|
+
version = "0.1.45"
|
|
134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
|
+
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
|
136
|
+
dependencies = [
|
|
137
|
+
"autocfg",
|
|
138
|
+
"num-traits",
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
[[package]]
|
|
142
|
+
name = "num-traits"
|
|
143
|
+
version = "0.2.15"
|
|
144
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
145
|
+
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
|
146
|
+
dependencies = [
|
|
147
|
+
"autocfg",
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "num_cpus"
|
|
152
|
+
version = "1.15.0"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"hermit-abi",
|
|
157
|
+
"libc",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "numpy"
|
|
162
|
+
version = "0.18.0"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "96b0fee4571867d318651c24f4a570c3f18408cf95f16ccb576b3ce85496a46e"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"libc",
|
|
167
|
+
"ndarray",
|
|
168
|
+
"num-complex",
|
|
169
|
+
"num-integer",
|
|
170
|
+
"num-traits",
|
|
171
|
+
"pyo3",
|
|
172
|
+
"rustc-hash",
|
|
173
|
+
]
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "once_cell"
|
|
177
|
+
version = "1.17.1"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3"
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "parking_lot"
|
|
183
|
+
version = "0.12.1"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
|
186
|
+
dependencies = [
|
|
187
|
+
"lock_api",
|
|
188
|
+
"parking_lot_core",
|
|
189
|
+
]
|
|
190
|
+
|
|
191
|
+
[[package]]
|
|
192
|
+
name = "parking_lot_core"
|
|
193
|
+
version = "0.9.7"
|
|
194
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
195
|
+
checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521"
|
|
196
|
+
dependencies = [
|
|
197
|
+
"cfg-if",
|
|
198
|
+
"libc",
|
|
199
|
+
"redox_syscall",
|
|
200
|
+
"smallvec",
|
|
201
|
+
"windows-sys",
|
|
202
|
+
]
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "ppv-lite86"
|
|
206
|
+
version = "0.2.17"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "proc-macro2"
|
|
212
|
+
version = "1.0.51"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"unicode-ident",
|
|
217
|
+
]
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "pyo3"
|
|
221
|
+
version = "0.18.2"
|
|
222
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "cfb848f80438f926a9ebddf0a539ed6065434fd7aae03a89312a9821f81b8501"
|
|
224
|
+
dependencies = [
|
|
225
|
+
"cfg-if",
|
|
226
|
+
"indoc",
|
|
227
|
+
"libc",
|
|
228
|
+
"memoffset",
|
|
229
|
+
"parking_lot",
|
|
230
|
+
"pyo3-build-config",
|
|
231
|
+
"pyo3-ffi",
|
|
232
|
+
"pyo3-macros",
|
|
233
|
+
"unindent",
|
|
234
|
+
]
|
|
235
|
+
|
|
236
|
+
[[package]]
|
|
237
|
+
name = "pyo3-build-config"
|
|
238
|
+
version = "0.18.2"
|
|
239
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
240
|
+
checksum = "98a42e7f42e917ce6664c832d5eee481ad514c98250c49e0b03b20593e2c7ed0"
|
|
241
|
+
dependencies = [
|
|
242
|
+
"once_cell",
|
|
243
|
+
"target-lexicon",
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
[[package]]
|
|
247
|
+
name = "pyo3-ffi"
|
|
248
|
+
version = "0.18.2"
|
|
249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
250
|
+
checksum = "a0707f0ab26826fe4ccd59b69106e9df5e12d097457c7b8f9c0fd1d2743eec4d"
|
|
251
|
+
dependencies = [
|
|
252
|
+
"libc",
|
|
253
|
+
"pyo3-build-config",
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
[[package]]
|
|
257
|
+
name = "pyo3-macros"
|
|
258
|
+
version = "0.18.2"
|
|
259
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
260
|
+
checksum = "978d18e61465ecd389e1f235ff5a467146dc4e3c3968b90d274fe73a5dd4a438"
|
|
261
|
+
dependencies = [
|
|
262
|
+
"proc-macro2",
|
|
263
|
+
"pyo3-macros-backend",
|
|
264
|
+
"quote",
|
|
265
|
+
"syn",
|
|
266
|
+
]
|
|
267
|
+
|
|
268
|
+
[[package]]
|
|
269
|
+
name = "pyo3-macros-backend"
|
|
270
|
+
version = "0.18.2"
|
|
271
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
272
|
+
checksum = "8e0e1128f85ce3fca66e435e08aa2089a2689c1c48ce97803e13f63124058462"
|
|
273
|
+
dependencies = [
|
|
274
|
+
"proc-macro2",
|
|
275
|
+
"quote",
|
|
276
|
+
"syn",
|
|
277
|
+
]
|
|
278
|
+
|
|
279
|
+
[[package]]
|
|
280
|
+
name = "quote"
|
|
281
|
+
version = "1.0.23"
|
|
282
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
283
|
+
checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b"
|
|
284
|
+
dependencies = [
|
|
285
|
+
"proc-macro2",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "rand"
|
|
290
|
+
version = "0.8.5"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
|
293
|
+
dependencies = [
|
|
294
|
+
"libc",
|
|
295
|
+
"rand_chacha",
|
|
296
|
+
"rand_core",
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
[[package]]
|
|
300
|
+
name = "rand_chacha"
|
|
301
|
+
version = "0.3.1"
|
|
302
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
303
|
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
|
304
|
+
dependencies = [
|
|
305
|
+
"ppv-lite86",
|
|
306
|
+
"rand_core",
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "rand_core"
|
|
311
|
+
version = "0.6.4"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
314
|
+
dependencies = [
|
|
315
|
+
"getrandom",
|
|
316
|
+
]
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "rawpointer"
|
|
320
|
+
version = "0.2.1"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
323
|
+
|
|
324
|
+
[[package]]
|
|
325
|
+
name = "redox_syscall"
|
|
326
|
+
version = "0.2.16"
|
|
327
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
328
|
+
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
|
|
329
|
+
dependencies = [
|
|
330
|
+
"bitflags",
|
|
331
|
+
]
|
|
332
|
+
|
|
333
|
+
[[package]]
|
|
334
|
+
name = "rustc-hash"
|
|
335
|
+
version = "1.1.0"
|
|
336
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
337
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
338
|
+
|
|
339
|
+
[[package]]
|
|
340
|
+
name = "scopeguard"
|
|
341
|
+
version = "1.1.0"
|
|
342
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
+
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
|
344
|
+
|
|
345
|
+
[[package]]
|
|
346
|
+
name = "smallvec"
|
|
347
|
+
version = "1.10.0"
|
|
348
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
+
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
|
|
350
|
+
|
|
351
|
+
[[package]]
|
|
352
|
+
name = "syn"
|
|
353
|
+
version = "1.0.107"
|
|
354
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
355
|
+
checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5"
|
|
356
|
+
dependencies = [
|
|
357
|
+
"proc-macro2",
|
|
358
|
+
"quote",
|
|
359
|
+
"unicode-ident",
|
|
360
|
+
]
|
|
361
|
+
|
|
362
|
+
[[package]]
|
|
363
|
+
name = "target-lexicon"
|
|
364
|
+
version = "0.12.6"
|
|
365
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
366
|
+
checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5"
|
|
367
|
+
|
|
368
|
+
[[package]]
|
|
369
|
+
name = "unicode-ident"
|
|
370
|
+
version = "1.0.6"
|
|
371
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
+
checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc"
|
|
373
|
+
|
|
374
|
+
[[package]]
|
|
375
|
+
name = "unindent"
|
|
376
|
+
version = "0.1.11"
|
|
377
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
378
|
+
checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c"
|
|
379
|
+
|
|
380
|
+
[[package]]
|
|
381
|
+
name = "wasi"
|
|
382
|
+
version = "0.11.0+wasi-snapshot-preview1"
|
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
|
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
385
|
+
|
|
386
|
+
[[package]]
|
|
387
|
+
name = "windows-sys"
|
|
388
|
+
version = "0.45.0"
|
|
389
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
|
+
checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
|
|
391
|
+
dependencies = [
|
|
392
|
+
"windows-targets",
|
|
393
|
+
]
|
|
394
|
+
|
|
395
|
+
[[package]]
|
|
396
|
+
name = "windows-targets"
|
|
397
|
+
version = "0.42.1"
|
|
398
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
399
|
+
checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7"
|
|
400
|
+
dependencies = [
|
|
401
|
+
"windows_aarch64_gnullvm",
|
|
402
|
+
"windows_aarch64_msvc",
|
|
403
|
+
"windows_i686_gnu",
|
|
404
|
+
"windows_i686_msvc",
|
|
405
|
+
"windows_x86_64_gnu",
|
|
406
|
+
"windows_x86_64_gnullvm",
|
|
407
|
+
"windows_x86_64_msvc",
|
|
408
|
+
]
|
|
409
|
+
|
|
410
|
+
[[package]]
|
|
411
|
+
name = "windows_aarch64_gnullvm"
|
|
412
|
+
version = "0.42.1"
|
|
413
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
414
|
+
checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608"
|
|
415
|
+
|
|
416
|
+
[[package]]
|
|
417
|
+
name = "windows_aarch64_msvc"
|
|
418
|
+
version = "0.42.1"
|
|
419
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
420
|
+
checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7"
|
|
421
|
+
|
|
422
|
+
[[package]]
|
|
423
|
+
name = "windows_i686_gnu"
|
|
424
|
+
version = "0.42.1"
|
|
425
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
426
|
+
checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640"
|
|
427
|
+
|
|
428
|
+
[[package]]
|
|
429
|
+
name = "windows_i686_msvc"
|
|
430
|
+
version = "0.42.1"
|
|
431
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
432
|
+
checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605"
|
|
433
|
+
|
|
434
|
+
[[package]]
|
|
435
|
+
name = "windows_x86_64_gnu"
|
|
436
|
+
version = "0.42.1"
|
|
437
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
438
|
+
checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45"
|
|
439
|
+
|
|
440
|
+
[[package]]
|
|
441
|
+
name = "windows_x86_64_gnullvm"
|
|
442
|
+
version = "0.42.1"
|
|
443
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
444
|
+
checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463"
|
|
445
|
+
|
|
446
|
+
[[package]]
|
|
447
|
+
name = "windows_x86_64_msvc"
|
|
448
|
+
version = "0.42.1"
|
|
449
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
450
|
+
checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "dna_parser"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
|
|
6
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
7
|
+
[lib]
|
|
8
|
+
name = "dna_parser"
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
pyo3 = { version = "0.18.2", features = ["extension-module"] }
|
|
13
|
+
rand= "0.8.5"
|
|
14
|
+
itertools = "0.10.2"
|
|
15
|
+
numpy= "0.18"
|
|
16
|
+
num_cpus = "1.15.0"
|
dna_parser-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Mvila035
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|