loqusdb 2.7.23__py3-none-any.whl → 2.7.24__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.
loqusdb/__init__.py CHANGED
@@ -4,7 +4,7 @@ from pymongo import ASCENDING, IndexModel
4
4
 
5
5
  logger = logging.getLogger(__name__)
6
6
 
7
- __version__ = "2.7.23"
7
+ __version__ = "2.7.24"
8
8
 
9
9
  INDEXES = {
10
10
  "variant": [
@@ -1,14 +1,15 @@
1
- import pkg_resources
1
+ from importlib.resources import files, as_file
2
2
 
3
3
  from loqusdb.constants import GRCH37, GRCH38
4
4
 
5
5
  ###### Files ######
6
6
 
7
7
  # Background data
8
+ PATH_NAME = "loqusdb.resources"
8
9
 
9
- backround_svs = "resources/loqusdb.20181005.gz"
10
- maf_50_grch37 = "resources/maf_50_sites_GRCh37.vcf.gz"
11
- maf_50_grch38 = "resources/maf_50_sites_GRCh38.vcf.gz"
10
+ backround_svs = "loqusdb.20181005.gz"
11
+ maf_50_grch37 = "maf_50_sites_GRCh37.vcf.gz"
12
+ maf_50_grch38 = "maf_50_sites_GRCh38.vcf.gz"
12
13
 
13
14
  ### Profile SNPs for Grch37 and 38
14
15
 
@@ -16,9 +17,9 @@ maf_50_grch38 = "resources/maf_50_sites_GRCh38.vcf.gz"
16
17
 
17
18
  # Backround data path
18
19
 
19
- background_path = pkg_resources.resource_filename("loqusdb", backround_svs)
20
+ background_path = str(files(PATH_NAME).joinpath(backround_svs))
20
21
 
21
- maf_grch37_path = pkg_resources.resource_filename("loqusdb", maf_50_grch37)
22
- maf_grch38_path = pkg_resources.resource_filename("loqusdb", maf_50_grch38)
22
+ maf_grch37_path = str(files(PATH_NAME).joinpath(maf_50_grch37))
23
+ maf_grch38_path = str(files(PATH_NAME).joinpath(maf_50_grch38))
23
24
 
24
25
  MAF_PATH = {GRCH37: maf_grch37_path, GRCH38: maf_grch38_path}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: loqusdb
3
- Version: 2.7.23
3
+ Version: 2.7.24
4
4
  Summary: A simple observation count database
5
5
  License: MIT
6
6
  Author: Mans Magnuson
@@ -1,4 +1,4 @@
1
- loqusdb/__init__.py,sha256=5_jcHx-rbGbtY7B6g-H4Bc9tQwfl440729o0FTAB-RY,1415
1
+ loqusdb/__init__.py,sha256=oSur17JCpw95z9pEpqU6ZeXWd0tioifFuvDttch4dT0,1415
2
2
  loqusdb/__main__.py,sha256=8FGKySAGaWSzAYMj6HRsxeyiME3V01Idt7HrmN7pSYY,397
3
3
  loqusdb/build_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  loqusdb/build_models/case.py,sha256=AByutEYK2N3kS9JFvyZfPKNZdCpZHCSD0nNHAgaU1Cs,4127
@@ -35,7 +35,7 @@ loqusdb/plugins/mongo/case.py,sha256=zKnaaam8Ey1AEH-1GofXp6iNqgmSvWWxZZWsx7dAO0Y
35
35
  loqusdb/plugins/mongo/profile_variant.py,sha256=madOBa3HacIN_T1V8mp7NEC4QOpqQBqSY6pKTObkMLA,600
36
36
  loqusdb/plugins/mongo/structural_variant.py,sha256=7NjdRxRVzp4huTTEPI-buKoG7N5d_5LH11GHcncwboE,12955
37
37
  loqusdb/plugins/mongo/variant.py,sha256=NS3N8bhRap1b2ZSGjOw2LO6l7q_CzD00GZs499l38Tg,8715
38
- loqusdb/resources/__init__.py,sha256=JOx3Ppgtghx55cOJN0bfBonSXM5DM_v0OFdlT-Qybg4,639
38
+ loqusdb/resources/__init__.py,sha256=10OJHxvDLn_BI1T3iS_84HEjk4sbNNQJ7vGJ_kFD7CA,631
39
39
  loqusdb/resources/loqusdb.20181005.gz,sha256=DI8CLI7fPnIAjM25Avraz-C7KQkOKsfnhgZWguGat9Y,12172904
40
40
  loqusdb/resources/maf_50_sites_GRCh37.vcf.gz,sha256=BoD1_xZ-Rr8DTWCMNlQGh7gz1K8FA-j2nC4jKn_eB2A,5260
41
41
  loqusdb/resources/maf_50_sites_GRCh38.vcf.gz,sha256=6T4iyrIr6yx1HpgobzAsh305BO1JX0oGj48nFiYt2QM,9037
@@ -49,8 +49,8 @@ loqusdb/utils/profiling.py,sha256=uISq4xfRNPPedoYXS_D4dXphq8odDogfMBm_XfHBTpE,92
49
49
  loqusdb/utils/update.py,sha256=1edJG-u24FgOSxyXAQEiyTG4IyK-Uo3lSIl5qyzcXsI,4433
50
50
  loqusdb/utils/variant.py,sha256=U6nMZRUf5NDDQ74nG0HBCLMnFQVgFAT6eHll_F2uiwc,2087
51
51
  loqusdb/utils/vcf.py,sha256=og8JBYock31v_0CnsoRhuKIJCurLCIFW8PCCQIRWF-Q,5207
52
- loqusdb-2.7.23.dist-info/LICENSE,sha256=urpFcJXw3elN9kV2fFutc-lXegjuu2lqP_GSy8_CAbs,1054
53
- loqusdb-2.7.23.dist-info/METADATA,sha256=U8YWBzq8oZhcjQm_bZWd_6cjRKfYYG7pBHMxERbivAY,5506
54
- loqusdb-2.7.23.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
55
- loqusdb-2.7.23.dist-info/entry_points.txt,sha256=wFoWzEFjsSgXkj9FMQA8C9ihZoJ9R1XvbGuX9hEEI6E,52
56
- loqusdb-2.7.23.dist-info/RECORD,,
52
+ loqusdb-2.7.24.dist-info/LICENSE,sha256=urpFcJXw3elN9kV2fFutc-lXegjuu2lqP_GSy8_CAbs,1054
53
+ loqusdb-2.7.24.dist-info/METADATA,sha256=ROBXvrUpFg3cNDra9KAGu-50CXe4e2S-wGbWw8afy3Q,5506
54
+ loqusdb-2.7.24.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
55
+ loqusdb-2.7.24.dist-info/entry_points.txt,sha256=wFoWzEFjsSgXkj9FMQA8C9ihZoJ9R1XvbGuX9hEEI6E,52
56
+ loqusdb-2.7.24.dist-info/RECORD,,