geney 1.4.3__py2.py3-none-any.whl → 1.4.5__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/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,6 +1,6 @@
1
1
  # Load models
2
2
  #
3
- __all__ = ['pangolin_predict_probs']
3
+ # __all__ = ['pangolin_predict_probs']
4
4
  # Load models
5
5
  import torch
6
6
  from pkg_resources import resource_filename
@@ -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,4 +1,4 @@
1
- __all__ = ['run_splicing_engine', 'adjoin_splicing_outcomes', 'process_epistasis']
1
+ # __all__ = ['run_splicing_engine', 'adjoin_splicing_outcomes', 'process_epistasis']
2
2
 
3
3
  import pandas as pd
4
4
  from typing import List, Tuple
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.4.3
3
+ Version: 1.4.5
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -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
- geney/utils/pangolin_utils.py,sha256=EUadXPxY7QUnsQrlyO7K5cg9mi5ssZjSDvNa_SzoBQg,6160
45
- geney/utils/spliceai_utils.py,sha256=oRrGJqjWirzYmiBmUR9hGr4B7V_7Y1uMyRTmbFKc_t0,4539
46
- geney/utils/splicing_utils.py,sha256=_Df3SakZrDjs2yKLG05TtfwuoXDLLrZWc9Y8i79rFDM,20633
44
+ geney/utils/pangolin_utils.py,sha256=JQSPbWxdzqGFYfWQktkfLMaMSGR28eGQhNzO7MLMe5M,6162
45
+ geney/utils/spliceai_utils.py,sha256=VtrIbjyQxk_3lw86eWjftRYyal9OzxArJ0GV5u_ymTg,2721
46
+ geney/utils/splicing_utils.py,sha256=vPCGnCPR1ooEZEHR79yFHLmRQXEJHXEQjjxpBR-YWOs,20635
47
47
  geney/utils/utils.py,sha256=m51Vd0cEbrcIHo6_8BAuI9YSPcKRs22e5LfVd2Qj6Is,2181
48
- geney-1.4.3.dist-info/METADATA,sha256=WpaFdfKLlvrd0MF0P7HP67IGU8x3i-6dXOvn_4aEUC0,989
49
- geney-1.4.3.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
50
- geney-1.4.3.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
- geney-1.4.3.dist-info/RECORD,,
48
+ geney-1.4.5.dist-info/METADATA,sha256=qspcDrWSo89XRAmwemNtKQSVECp_Lfmu0PfB1mzU9cA,989
49
+ geney-1.4.5.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
50
+ geney-1.4.5.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
+ geney-1.4.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any