crisprprimer 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.
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ .venv/
6
+ dist/
7
+ build/
8
+ *.egg-info/
9
+ .coverage
10
+ htmlcov/
11
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Xiangchao Gan and Ziya Tang
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.
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.5
2
+ Name: crisprprimer
3
+ Version: 0.1.0
4
+ Summary: Deterministic CRISPR primer and guide design for plant genomes
5
+ Project-URL: Homepage, https://github.com/tcztzy/crisprprimer
6
+ Project-URL: Repository, https://github.com/tcztzy/crisprprimer
7
+ Project-URL: Issues, https://github.com/tcztzy/crisprprimer/issues
8
+ Author-email: Xiangchao Gan <gan@njau.edu.cn>, Ziya Tang <tang@stu.njau.edu.cn>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: bioinformatics,crispr,genome,primer,rice
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: biopython>=1.88
22
+ Requires-Dist: fsspec>=2026.9.0
23
+ Requires-Dist: lxml>=5.4.0
24
+ Requires-Dist: pandas>=3.0.6
25
+ Requires-Dist: pyarrow>=26.0.0
26
+ Requires-Dist: pydantic>=2.13.5
27
+ Requires-Dist: typer>=0.27.2
28
+ Description-Content-Type: text/markdown
29
+
30
+ # crisprprimer
31
+
32
+ Deterministic CRISPR primer and guide design for plant genomes, extracted from
33
+ the former GEEPilot/BioV distribution into a standalone Python package.
34
+
35
+ This package owns its scientific code, bundled score tables and restriction
36
+ enzymes. It does not require BioV at runtime.
37
+
38
+ ## Install
39
+
40
+ ```sh
41
+ uv tool install crisprprimer
42
+ # or
43
+ pip install crisprprimer
44
+ ```
45
+
46
+ The default design workflow invokes native `blat` from `PATH` (or the executable
47
+ named by `CRISPRPRIMER_BLAT`). BLAT is not bundled. For the rice AsCas12a workflow,
48
+ set `CRISPRPRIMER_RICE_EXACT=1` to use exact spacer matching instead. SpCas9
49
+ continues to use BLAT.
50
+
51
+ AsCas12a requires `processing="pre"`; `processing="post"` is reserved for paired
52
+ SpCas9 designs. The Python API does not exempt other members of the target gene
53
+ family by default; pass `exempt_gene_families=True` only to retain the previous
54
+ behavior.
55
+
56
+ ## CLI
57
+
58
+ ```sh
59
+ crisprprimer output/ -r Chr1:1..10000 --system SpCas9
60
+ crisprprimer output/ -r LOC_Os01g01010 --system AsCas12a
61
+ ```
62
+
63
+ `-r` accepts a genomic region (`chr:start..end`, 1-based inclusive) or a locus
64
+ identifier. `--system` selects `SpCas9` or `AsCas12a`.
65
+
66
+ The legacy Docker report bridge remains available:
67
+
68
+ ```sh
69
+ crisprprimer-docker --help
70
+ ```
71
+
72
+ ## Python
73
+
74
+ ```python
75
+ from crisprprimer.nuclease import SpCas9
76
+ from crisprprimer.score import cfd_score
77
+
78
+ matches = SpCas9.find_spacers_on("ACGT" * 5 + "AGG")
79
+ score = cfd_score("A" * 20, "A" * 20, "GG")
80
+ ```
81
+
82
+ `crisprprimer.nuclease`, `crisprprimer.score` and
83
+ `crisprprimer.id_converter` expose the deterministic library interfaces. The
84
+ workflow writes ordinary files under the requested output directory; no external
85
+ database or BioV installation is required.
86
+
87
+ ## Scope and scientific limits
88
+
89
+ - This is a software distribution, not a new biological validation of the
90
+ original scoring models, guide-efficiency assumptions or restriction enzymes.
91
+ - CFD, pair scores and distance/length heuristics are the bundled deterministic
92
+ formulas; they are not measured editing efficiencies.
93
+ - BLAT is a heuristic search. A missing reported hit does not prove absence of an
94
+ off-target site.
95
+ - The workflow is intended for the supported plant genomes and identifier
96
+ systems; unsupported identifiers fail explicitly.
97
+ - No automatic remote execution or file transfer is performed.
98
+
99
+ ## Development
100
+
101
+ ```sh
102
+ uv sync
103
+ uv run pytest
104
+ uv run pre-commit run --all-files
105
+ uv build
106
+ ```
107
+
108
+ ## License and provenance
109
+
110
+ MIT. The implementation and bundled score tables were originally distributed by
111
+ GEEPilot/BioV; authors and provenance are retained in the source headers and
112
+ package metadata.
@@ -0,0 +1,83 @@
1
+ # crisprprimer
2
+
3
+ Deterministic CRISPR primer and guide design for plant genomes, extracted from
4
+ the former GEEPilot/BioV distribution into a standalone Python package.
5
+
6
+ This package owns its scientific code, bundled score tables and restriction
7
+ enzymes. It does not require BioV at runtime.
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ uv tool install crisprprimer
13
+ # or
14
+ pip install crisprprimer
15
+ ```
16
+
17
+ The default design workflow invokes native `blat` from `PATH` (or the executable
18
+ named by `CRISPRPRIMER_BLAT`). BLAT is not bundled. For the rice AsCas12a workflow,
19
+ set `CRISPRPRIMER_RICE_EXACT=1` to use exact spacer matching instead. SpCas9
20
+ continues to use BLAT.
21
+
22
+ AsCas12a requires `processing="pre"`; `processing="post"` is reserved for paired
23
+ SpCas9 designs. The Python API does not exempt other members of the target gene
24
+ family by default; pass `exempt_gene_families=True` only to retain the previous
25
+ behavior.
26
+
27
+ ## CLI
28
+
29
+ ```sh
30
+ crisprprimer output/ -r Chr1:1..10000 --system SpCas9
31
+ crisprprimer output/ -r LOC_Os01g01010 --system AsCas12a
32
+ ```
33
+
34
+ `-r` accepts a genomic region (`chr:start..end`, 1-based inclusive) or a locus
35
+ identifier. `--system` selects `SpCas9` or `AsCas12a`.
36
+
37
+ The legacy Docker report bridge remains available:
38
+
39
+ ```sh
40
+ crisprprimer-docker --help
41
+ ```
42
+
43
+ ## Python
44
+
45
+ ```python
46
+ from crisprprimer.nuclease import SpCas9
47
+ from crisprprimer.score import cfd_score
48
+
49
+ matches = SpCas9.find_spacers_on("ACGT" * 5 + "AGG")
50
+ score = cfd_score("A" * 20, "A" * 20, "GG")
51
+ ```
52
+
53
+ `crisprprimer.nuclease`, `crisprprimer.score` and
54
+ `crisprprimer.id_converter` expose the deterministic library interfaces. The
55
+ workflow writes ordinary files under the requested output directory; no external
56
+ database or BioV installation is required.
57
+
58
+ ## Scope and scientific limits
59
+
60
+ - This is a software distribution, not a new biological validation of the
61
+ original scoring models, guide-efficiency assumptions or restriction enzymes.
62
+ - CFD, pair scores and distance/length heuristics are the bundled deterministic
63
+ formulas; they are not measured editing efficiencies.
64
+ - BLAT is a heuristic search. A missing reported hit does not prove absence of an
65
+ off-target site.
66
+ - The workflow is intended for the supported plant genomes and identifier
67
+ systems; unsupported identifiers fail explicitly.
68
+ - No automatic remote execution or file transfer is performed.
69
+
70
+ ## Development
71
+
72
+ ```sh
73
+ uv sync
74
+ uv run pytest
75
+ uv run pre-commit run --all-files
76
+ uv build
77
+ ```
78
+
79
+ ## License and provenance
80
+
81
+ MIT. The implementation and bundled score tables were originally distributed by
82
+ GEEPilot/BioV; authors and provenance are retained in the source headers and
83
+ package metadata.
@@ -0,0 +1,76 @@
1
+ [project]
2
+ name = "crisprprimer"
3
+ version = "0.1.0"
4
+ description = "Deterministic CRISPR primer and guide design for plant genomes"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [
9
+ { name = "Xiangchao Gan", email = "gan@njau.edu.cn" },
10
+ { name = "Ziya Tang", email = "tang@stu.njau.edu.cn" },
11
+ ]
12
+ requires-python = ">=3.12"
13
+ keywords = ["crispr", "bioinformatics", "primer", "genome", "rice"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Science/Research",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.12",
20
+ "Programming Language :: Python :: 3.13",
21
+ "Programming Language :: Python :: 3.14",
22
+ "Topic :: Scientific/Engineering :: Bio-Informatics",
23
+ ]
24
+ dependencies = [
25
+ "biopython>=1.88",
26
+ "fsspec>=2026.9.0",
27
+ "lxml>=5.4.0",
28
+ "pandas>=3.0.6",
29
+ "pyarrow>=26.0.0",
30
+ "pydantic>=2.13.5",
31
+ "typer>=0.27.2",
32
+ ]
33
+
34
+ [project.scripts]
35
+ crisprprimer = "crisprprimer.__main__:run"
36
+ crisprprimer-docker = "crisprprimer.docker:main"
37
+
38
+ [project.urls]
39
+ Homepage = "https://github.com/tcztzy/crisprprimer"
40
+ Repository = "https://github.com/tcztzy/crisprprimer"
41
+ Issues = "https://github.com/tcztzy/crisprprimer/issues"
42
+
43
+ [dependency-groups]
44
+ dev = [
45
+ "pre-commit>=4.3.0",
46
+ "pytest>=9.1.1",
47
+ "ruff>=0.16.5",
48
+ ]
49
+
50
+ [build-system]
51
+ requires = ["hatchling>=1.27"]
52
+ build-backend = "hatchling.build"
53
+
54
+ [tool.hatch.build.targets.wheel]
55
+ packages = ["src/crisprprimer"]
56
+
57
+ [tool.hatch.build.targets.sdist]
58
+ include = ["src/crisprprimer", "tests", "README.md", "LICENSE", "pyproject.toml"]
59
+
60
+ [tool.pytest.ini_options]
61
+ testpaths = ["tests"]
62
+ addopts = "-q"
63
+
64
+ [tool.ruff]
65
+ target-version = "py312"
66
+ line-length = 100
67
+
68
+ [tool.ruff.lint]
69
+ select = ["E", "F", "I", "UP", "B", "S", "D", "SIM", "RUF"]
70
+ ignore = ["D203", "D213", "D413"]
71
+
72
+ [tool.ruff.lint.per-file-ignores]
73
+ "src/crisprprimer/__init__.py" = ["E501"]
74
+ "src/crisprprimer/__main__.py" = ["E501"]
75
+ "src/crisprprimer/_gff.py" = ["E501"]
76
+ "tests/**" = ["S101", "S404", "S603", "D103"]