opencloning 0.4.7__py3-none-any.whl → 0.5__py3-none-any.whl
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.
- opencloning/app_settings.py +7 -0
- opencloning/batch_cloning/pombe/__init__.py +2 -2
- opencloning/batch_cloning/pombe/pombe_clone.py +31 -112
- opencloning/batch_cloning/pombe/pombe_summary.py +20 -8
- opencloning/batch_cloning/ziqiang_et_al2024/__init__.py +8 -8
- opencloning/batch_cloning/ziqiang_et_al2024/ziqiang_et_al2024.json +2 -9
- opencloning/bug_fixing/backend_v0_3.py +13 -5
- opencloning/catalogs/__init__.py +36 -0
- opencloning/catalogs/igem2024.yaml +2172 -0
- opencloning/catalogs/openDNA_collections.yaml +1161 -0
- opencloning/catalogs/readme.txt +1 -0
- opencloning/catalogs/seva.tsv +231 -0
- opencloning/catalogs/snapgene.yaml +2837 -0
- opencloning/dna_functions.py +155 -158
- opencloning/dna_utils.py +45 -62
- opencloning/ebic/primer_design.py +24 -14
- opencloning/endpoints/annotation.py +9 -13
- opencloning/endpoints/assembly.py +157 -378
- opencloning/endpoints/endpoint_utils.py +52 -0
- opencloning/endpoints/external_import.py +169 -124
- opencloning/endpoints/no_assembly.py +23 -39
- opencloning/endpoints/no_input.py +32 -47
- opencloning/endpoints/other.py +1 -1
- opencloning/endpoints/primer_design.py +23 -17
- opencloning/http_client.py +2 -2
- opencloning/ncbi_requests.py +113 -47
- opencloning/primer3_functions.py +3 -3
- opencloning/primer_design.py +1 -1
- opencloning/pydantic_models.py +10 -510
- opencloning/request_examples.py +10 -22
- opencloning/temp_functions.py +50 -0
- {opencloning-0.4.7.dist-info → opencloning-0.5.dist-info}/METADATA +18 -8
- opencloning-0.5.dist-info/RECORD +51 -0
- {opencloning-0.4.7.dist-info → opencloning-0.5.dist-info}/WHEEL +1 -1
- opencloning/cre_lox.py +0 -116
- opencloning/gateway.py +0 -154
- opencloning-0.4.7.dist-info/RECORD +0 -45
- {opencloning-0.4.7.dist-info → opencloning-0.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
from fastapi import Query
|
|
1
|
+
from fastapi import Query
|
|
2
2
|
from pydantic import create_model
|
|
3
|
-
from urllib.error import HTTPError
|
|
4
3
|
|
|
5
4
|
from ..get_router import get_router
|
|
6
|
-
from
|
|
5
|
+
from opencloning_linkml.datamodel import TextFileSequence, AnnotationSource
|
|
7
6
|
from ..dna_functions import (
|
|
8
7
|
read_dsrecord_from_json,
|
|
9
8
|
annotate_with_plannotate as _annotate_with_plannotate,
|
|
10
9
|
format_sequence_genbank,
|
|
11
10
|
)
|
|
12
|
-
from
|
|
11
|
+
from pydna.gateway import find_gateway_sites
|
|
13
12
|
from ..app_settings import settings
|
|
14
13
|
|
|
15
14
|
router = get_router()
|
|
@@ -46,15 +45,12 @@ if settings.PLANNOTATE_URL is not None:
|
|
|
46
45
|
):
|
|
47
46
|
input_seqr = read_dsrecord_from_json(sequence)
|
|
48
47
|
# Make a request submitting sequence as a file:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
)
|
|
56
|
-
except HTTPError as e:
|
|
57
|
-
raise HTTPException(e.code, e.msg) from e
|
|
48
|
+
seqr, annotations, version = await _annotate_with_plannotate(
|
|
49
|
+
sequence.file_content,
|
|
50
|
+
f'{sequence.id}.gb',
|
|
51
|
+
settings.PLANNOTATE_URL + 'annotate',
|
|
52
|
+
settings.PLANNOTATE_TIMEOUT,
|
|
53
|
+
)
|
|
58
54
|
|
|
59
55
|
source.annotation_report = annotations
|
|
60
56
|
source.annotation_tool = 'plannotate'
|