cool-seq-tool 0.15.0__py3-none-any.whl → 0.15.1__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.
- cool_seq_tool/mappers/liftover.py +8 -7
- cool_seq_tool/resources/status.py +2 -2
- {cool_seq_tool-0.15.0.dist-info → cool_seq_tool-0.15.1.dist-info}/METADATA +2 -2
- {cool_seq_tool-0.15.0.dist-info → cool_seq_tool-0.15.1.dist-info}/RECORD +7 -7
- {cool_seq_tool-0.15.0.dist-info → cool_seq_tool-0.15.1.dist-info}/WHEEL +0 -0
- {cool_seq_tool-0.15.0.dist-info → cool_seq_tool-0.15.1.dist-info}/licenses/LICENSE +0 -0
- {cool_seq_tool-0.15.0.dist-info → cool_seq_tool-0.15.1.dist-info}/top_level.txt +0 -0
|
@@ -6,7 +6,8 @@ Currently only supports GRCh37 <-> GRCh38
|
|
|
6
6
|
import logging
|
|
7
7
|
from os import environ
|
|
8
8
|
|
|
9
|
-
from agct import
|
|
9
|
+
from agct import Assembly as AgctAssembly
|
|
10
|
+
from agct import Converter
|
|
10
11
|
|
|
11
12
|
from cool_seq_tool.schemas import Assembly
|
|
12
13
|
from cool_seq_tool.utils import process_chromosome_input
|
|
@@ -43,13 +44,13 @@ class LiftOver:
|
|
|
43
44
|
"""
|
|
44
45
|
self.from_37_to_38 = Converter(
|
|
45
46
|
chainfile=chain_file_37_to_38 or LIFTOVER_CHAIN_37_TO_38,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
from_assembly=AgctAssembly.HG19,
|
|
48
|
+
to_assembly=AgctAssembly.HG38,
|
|
48
49
|
)
|
|
49
50
|
self.from_38_to_37 = Converter(
|
|
50
51
|
chainfile=chain_file_38_to_37 or LIFTOVER_CHAIN_38_TO_37,
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
from_assembly=AgctAssembly.HG38,
|
|
53
|
+
to_assembly=AgctAssembly.HG19,
|
|
53
54
|
)
|
|
54
55
|
|
|
55
56
|
def get_liftover(
|
|
@@ -77,9 +78,9 @@ class LiftOver:
|
|
|
77
78
|
"""
|
|
78
79
|
chromosome = process_chromosome_input(chromosome, "LiftOver.get_liftover()")
|
|
79
80
|
if liftover_to_assembly == Assembly.GRCH38:
|
|
80
|
-
liftover = self.from_37_to_38.convert_coordinate(chromosome, pos)
|
|
81
|
+
liftover = self.from_37_to_38.convert_coordinate(chromosome, pos, pos)
|
|
81
82
|
elif liftover_to_assembly == Assembly.GRCH37:
|
|
82
|
-
liftover = self.from_38_to_37.convert_coordinate(chromosome, pos)
|
|
83
|
+
liftover = self.from_38_to_37.convert_coordinate(chromosome, pos, pos)
|
|
83
84
|
else:
|
|
84
85
|
_logger.warning("%s assembly not supported", liftover_to_assembly)
|
|
85
86
|
liftover = None
|
|
@@ -114,9 +114,9 @@ async def check_status(
|
|
|
114
114
|
chain_file_38_to_37=chain_file_38_to_37,
|
|
115
115
|
)
|
|
116
116
|
except (FileNotFoundError, ChainfileError):
|
|
117
|
-
_logger.exception("agct converter setup failed")
|
|
117
|
+
_logger.exception("`agct` converter setup failed")
|
|
118
118
|
except Exception as e:
|
|
119
|
-
_logger.critical("Encountered unexpected error setting up agct
|
|
119
|
+
_logger.critical("Encountered unexpected error setting up `agct`: %s", e)
|
|
120
120
|
else:
|
|
121
121
|
status["liftover"] = True
|
|
122
122
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cool_seq_tool
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.1
|
|
4
4
|
Summary: Common Operation on Lots of Sequences Tool
|
|
5
5
|
Author: Kori Kuzma, James Stevenson, Katie Stahl, Alex Wagner
|
|
6
6
|
License: MIT License
|
|
@@ -46,7 +46,7 @@ Description-Content-Type: text/markdown
|
|
|
46
46
|
License-File: LICENSE
|
|
47
47
|
Requires-Dist: asyncpg
|
|
48
48
|
Requires-Dist: boto3
|
|
49
|
-
Requires-Dist: agct>=0.
|
|
49
|
+
Requires-Dist: agct>=0.2.0rc1
|
|
50
50
|
Requires-Dist: polars~=1.0
|
|
51
51
|
Requires-Dist: biocommons.seqrepo
|
|
52
52
|
Requires-Dist: pydantic<3.0,>=2.0
|
|
@@ -8,18 +8,18 @@ cool_seq_tool/mappers/__init__.py,sha256=tavpwkNogg_nF1J_kb6Q9jk7ezqdRz063v7BMZ4
|
|
|
8
8
|
cool_seq_tool/mappers/alignment.py,sha256=kWgYssM8YL-Z13H9GdpL77P7simNcbxltAs9YDXHE54,9640
|
|
9
9
|
cool_seq_tool/mappers/exon_genomic_coords.py,sha256=I59vvswLbXk1fOWLNyNd8NTVT39f5yxTCv20utlTCpo,47361
|
|
10
10
|
cool_seq_tool/mappers/feature_overlap.py,sha256=X5UFClaH6ixRsO2fDLxqjywp-Z0bvNx4uzgBICy394U,9758
|
|
11
|
-
cool_seq_tool/mappers/liftover.py,sha256=
|
|
11
|
+
cool_seq_tool/mappers/liftover.py,sha256=vQ2BcSE43ZbY4eCJJqDL6dPPE0UclK7f7NoP2WtEHuA,3459
|
|
12
12
|
cool_seq_tool/mappers/mane_transcript.py,sha256=IluiLBxPQoY-CxkpqpjEBcMlHvrNLa34wdKdQxtKgDY,54613
|
|
13
13
|
cool_seq_tool/resources/__init__.py,sha256=VwUC8YaucTS6SmRirToulZTF6CuvuLQRSxFfSfAovCc,77
|
|
14
14
|
cool_seq_tool/resources/data_files.py,sha256=6d1M5WjeFHdTQpzxqjQ78auQRZvIBVqH8QNCrmRRDXw,4205
|
|
15
|
-
cool_seq_tool/resources/status.py,sha256=
|
|
15
|
+
cool_seq_tool/resources/status.py,sha256=W1iINKqHi_YWSbJi1c-vUIVCAnQCzNgO8A34bQcRmz0,6245
|
|
16
16
|
cool_seq_tool/resources/transcript_mapping.tsv,sha256=AO3luYQAbFiCoRgiiPXotakb5pAwx1jDCeXpvGdIuac,24138769
|
|
17
17
|
cool_seq_tool/sources/__init__.py,sha256=51QiymeptF7AeVGgV-tW_9f4pIUr0xtYbyzpvHOCneM,304
|
|
18
18
|
cool_seq_tool/sources/mane_transcript_mappings.py,sha256=PLJymduwvG1pt9mravE58BfJsGXdAYXcZYZdHPy12z0,7211
|
|
19
19
|
cool_seq_tool/sources/transcript_mappings.py,sha256=903RKTMBO2rbKh6iTQ1BEWnY4C7saBFMPw2_4ATuudg,10054
|
|
20
20
|
cool_seq_tool/sources/uta_database.py,sha256=38CQ0QHHh0kA87tdgsJHJiHdJHQc06ylBYfemGFUlZc,36759
|
|
21
|
-
cool_seq_tool-0.15.
|
|
22
|
-
cool_seq_tool-0.15.
|
|
23
|
-
cool_seq_tool-0.15.
|
|
24
|
-
cool_seq_tool-0.15.
|
|
25
|
-
cool_seq_tool-0.15.
|
|
21
|
+
cool_seq_tool-0.15.1.dist-info/licenses/LICENSE,sha256=IpqC9A-tZW7XXXvCS8c4AVINqkmpxiVA-34Qe3CZSjo,1072
|
|
22
|
+
cool_seq_tool-0.15.1.dist-info/METADATA,sha256=QEHrmJL33DUq1R71GYN5mbBPOdMsCfJImYlvG3TC4U8,6533
|
|
23
|
+
cool_seq_tool-0.15.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
cool_seq_tool-0.15.1.dist-info/top_level.txt,sha256=cGuxdN6p3y16jQf6hCwWhE4OptwUeZPm_PNJlPb3b0k,14
|
|
25
|
+
cool_seq_tool-0.15.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|