geney 1.4.4__py2.py3-none-any.whl → 1.4.6__py2.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.

Potentially problematic release.


This version of geney might be problematic. Click here for more details.

geney/Gene.py CHANGED
@@ -3,7 +3,7 @@ import copy
3
3
  from . import config
4
4
  from typing import Any, Dict, List, Tuple, Optional, Iterator, Union, TYPE_CHECKING
5
5
  from collections import Counter
6
- from .utils import unload_pickle
6
+ from .utils.utils import unload_pickle
7
7
  from .Transcript import Transcript
8
8
 
9
9
  class Gene:
geney/utils/__init__.py CHANGED
@@ -7,14 +7,14 @@ __all__ = [] # This will collect all the names you want to expose
7
7
  # Find all utility modules in this directory
8
8
  _package_dir = pathlib.Path(__file__).parent
9
9
 
10
- for file in os.listdir(_package_dir):
11
- if file.endswith(".py") and file != "__init__.py":
12
- module_name = file[:-3] # strip '.py'
13
- module_path = f"{__name__}.{module_name}"
14
- module = importlib.import_module(module_path)
15
-
16
- # If the module defines __all__, expose those names at utils level
17
- if hasattr(module, "__all__"):
18
- for name in module.__all__:
19
- globals()[name] = getattr(module, name)
20
- __all__.append(name)
10
+ # for file in os.listdir(_package_dir):
11
+ # if file.endswith(".py") and file != "__init__.py":
12
+ # module_name = file[:-3] # strip '.py'
13
+ # module_path = f"{__name__}.{module_name}"
14
+ # module = importlib.import_module(module_path)
15
+ #
16
+ # # If the module defines __all__, expose those names at utils level
17
+ # if hasattr(module, "__all__"):
18
+ # for name in module.__all__:
19
+ # globals()[name] = getattr(module, name)
20
+ # __all__.append(name)
@@ -1,46 +1,4 @@
1
- # __all__ = ['sai_predict_probs']
2
- #
3
- # #### SpliceAI Modules
4
- #
5
- # from keras.models import load_model
6
- # from importlib import resources
7
- # import numpy as np
8
- # import tensorflow as tf
9
- # import sys
10
- # import absl.logging
11
- # absl.logging.set_verbosity(absl.logging.ERROR)
12
- #
13
- #
14
- # # Check if GPU is available
15
- # # if tf.config.list_physical_devices('GPU'):
16
- # # print("Running on GPU.")
17
- # # else:
18
- # # print("Running on CPU.")
19
- #
20
- # # tf.config.threading.set_intra_op_parallelism_threads(1)
21
- # # tf.config.threading.set_inter_op_parallelism_threads(1)
22
- #
23
- # # List the model filenames relative to the spliceai package.
24
- # model_filenames = [f"models/spliceai{i}.h5" for i in range(1, 6)]
25
- #
26
- # # Load each model using the package resources.
27
- # # sai_models = [load_model(resources.files("spliceai").joinpath(filename))
28
- # # for filename in model_filenames]
29
- #
30
- # if sys.platform == 'darwin':
31
- # sai_paths = ('models/spliceai{}.h5'.format(x) for x in range(1, 6))
32
- # # sai_models = [load_model(resource_filename('spliceai', x)) for x in sai_paths]
33
- # sai_models = [load_model(resources.files('spliceai').joinpath(f)) for f in sai_paths]
34
- # else:
35
- # sai_paths = ['/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai1.h5',
36
- # '/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai2.h5',
37
- # '/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai3.h5',
38
- # '/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai4.h5',
39
- # '/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai5.h5']
40
- #
41
- # sai_models = [load_model(f) for f in sai_paths]
42
-
43
- # __all__ = ['sai_predict_probs']
1
+
44
2
  import os
45
3
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
46
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.4.4
3
+ Version: 1.4.6
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -1,5 +1,5 @@
1
1
  geney/Fasta_segment.py,sha256=99HxNGNh_MfdVW6hhtlb1vOn7eSmT7oFoEfHDFMxG8w,11275
2
- geney/Gene.py,sha256=G-5ROebtvbVazzPlsBJ1r2DEduCwsIA5S8_TmBuoyjw,7030
2
+ geney/Gene.py,sha256=6x1sEZV50Il4oydegW6iHIF12EZTGexniG3YUD-3DfM,7036
3
3
  geney/Oncosplice.py,sha256=ETAvMl_Oq6mEJQHPNwdDO5csX6Ahuped_om10KifCyM,17739
4
4
  geney/SeqMats.py,sha256=9-eJnfU2w3LGc0XvVvFEO_QrBneTkC6xkZKDfTcEw5o,19282
5
5
  geney/SpliceSimulator.py,sha256=iF6feVeSnsKFmn3WV60CgWLI0_rSLgpq5fVFL1IOv_4,18491
@@ -39,13 +39,13 @@ geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUD
39
39
  geney/utils/Fasta_segment.py,sha256=weB5NJ65P0XiyAJCiCHx4T9sHC1pWLpuQeOy0B85gyg,11364
40
40
  geney/utils/SeqMats.py,sha256=vjU0lTkB0s0RoLjNXLqt0kJQDni-it09-iAOv5QAYFs,17686
41
41
  geney/utils/TranscriptLibrary.py,sha256=ma_ZVPgglxXDDneEvdqxxeqxG8eSFL-zgLUXyC6BqY8,2070
42
- geney/utils/__init__.py,sha256=jCoB0doidTbCFT34Yx8gQROcZOsw4LnqhgkwRgGQWt0,693
42
+ geney/utils/__init__.py,sha256=-nJ-DMx1JzP-ZCe_QuQCeM0ZYIT_16jxoXDhUaO_4Oc,714
43
43
  geney/utils/mutation_utils.py,sha256=r-pHr56gEa5kh_DPX8MjFY3ZfYaOtyo4CUfJ5ZHlXPw,3243
44
44
  geney/utils/pangolin_utils.py,sha256=JQSPbWxdzqGFYfWQktkfLMaMSGR28eGQhNzO7MLMe5M,6162
45
- geney/utils/spliceai_utils.py,sha256=xju1ObxQiQ_uoca-LxS0LpeIrqPez8-r9JNnwwoxZpk,4541
45
+ geney/utils/spliceai_utils.py,sha256=VtrIbjyQxk_3lw86eWjftRYyal9OzxArJ0GV5u_ymTg,2721
46
46
  geney/utils/splicing_utils.py,sha256=vPCGnCPR1ooEZEHR79yFHLmRQXEJHXEQjjxpBR-YWOs,20635
47
47
  geney/utils/utils.py,sha256=m51Vd0cEbrcIHo6_8BAuI9YSPcKRs22e5LfVd2Qj6Is,2181
48
- geney-1.4.4.dist-info/METADATA,sha256=jWA_O5yFvCaCLnzqq2hDYjpxMXGAwkA9PWhfMHaxzF0,989
49
- geney-1.4.4.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
50
- geney-1.4.4.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
- geney-1.4.4.dist-info/RECORD,,
48
+ geney-1.4.6.dist-info/METADATA,sha256=6l8_LlR20Qo1KIhiBTve1A1kWax1IYHfYCyqv1dsMUk,989
49
+ geney-1.4.6.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
50
+ geney-1.4.6.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
+ geney-1.4.6.dist-info/RECORD,,
File without changes