geney 1.4.2__py2.py3-none-any.whl → 1.4.4__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.
geney/SpliceSimulator.py CHANGED
@@ -115,21 +115,16 @@ class SpliceSimulator:
115
115
 
116
116
  pd.Series: A series with keys 'donor' and 'acceptor' containing the maximum differences.
117
117
  """
118
- # max_missplicing = {}
119
- # for site_type in ['donors', 'acceptors']:
120
- # df = self.full_df[site_type]
121
- # max_missplicing[site_type] = max(abs(df[event] - df['ref_prob']))
122
- # return pd.Series(max_missplicing)
123
- max_missplicing = {}
118
+ all_diffs = []
119
+
124
120
  for site_type in ['donors', 'acceptors']:
125
121
  df = self.full_df[site_type]
126
- # compute the signed difference
127
- diff = df[event] - df['ref_prob']
128
- # find the index of the max abs value
129
- idx = diff.abs().idxmax()
130
- # store the signed value at that index
131
- max_missplicing[site_type] = diff.loc[idx]
132
- return pd.Series(max_missplicing)
122
+ diffs = (df[event] - df['ref_prob']).tolist()
123
+ all_diffs.extend(diffs)
124
+
125
+ # max(..., key=abs) picks the element whose absolute value is largest
126
+ max_diff = max(all_diffs, key=abs)
127
+ return max_diff
133
128
 
134
129
  def set_donor_nodes(self) -> None:
135
130
  """
@@ -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
@@ -40,7 +40,7 @@
40
40
  #
41
41
  # sai_models = [load_model(f) for f in sai_paths]
42
42
 
43
- __all__ = ['sai_predict_probs']
43
+ # __all__ = ['sai_predict_probs']
44
44
  import os
45
45
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
46
46
 
@@ -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.2
3
+ Version: 1.4.4
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -2,7 +2,7 @@ geney/Fasta_segment.py,sha256=99HxNGNh_MfdVW6hhtlb1vOn7eSmT7oFoEfHDFMxG8w,11275
2
2
  geney/Gene.py,sha256=G-5ROebtvbVazzPlsBJ1r2DEduCwsIA5S8_TmBuoyjw,7030
3
3
  geney/Oncosplice.py,sha256=ETAvMl_Oq6mEJQHPNwdDO5csX6Ahuped_om10KifCyM,17739
4
4
  geney/SeqMats.py,sha256=9-eJnfU2w3LGc0XvVvFEO_QrBneTkC6xkZKDfTcEw5o,19282
5
- geney/SpliceSimulator.py,sha256=oOLfApT5lFGsGDT-yY2aLPFOuwxYHmLJgq3opCulsn8,18832
5
+ geney/SpliceSimulator.py,sha256=iF6feVeSnsKFmn3WV60CgWLI0_rSLgpq5fVFL1IOv_4,18491
6
6
  geney/Transcript.py,sha256=Wu0UiubFOdasfPCpe9uGfhPDG4MNks5LzUqGzo85ong,14458
7
7
  geney/__init__.py,sha256=YLWXJS53yeryp6nVhCgFg3_Du9Guj9y3iSrdfx61q5Y,3017
8
8
  geney/_config_setup.py,sha256=nblcGU3HIt8YjdrAoGfbEVKRxwJKv0PikJ5-7AL6axQ,723
@@ -41,11 +41,11 @@ geney/utils/SeqMats.py,sha256=vjU0lTkB0s0RoLjNXLqt0kJQDni-it09-iAOv5QAYFs,17686
41
41
  geney/utils/TranscriptLibrary.py,sha256=ma_ZVPgglxXDDneEvdqxxeqxG8eSFL-zgLUXyC6BqY8,2070
42
42
  geney/utils/__init__.py,sha256=jCoB0doidTbCFT34Yx8gQROcZOsw4LnqhgkwRgGQWt0,693
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=xju1ObxQiQ_uoca-LxS0LpeIrqPez8-r9JNnwwoxZpk,4541
46
+ geney/utils/splicing_utils.py,sha256=vPCGnCPR1ooEZEHR79yFHLmRQXEJHXEQjjxpBR-YWOs,20635
47
47
  geney/utils/utils.py,sha256=m51Vd0cEbrcIHo6_8BAuI9YSPcKRs22e5LfVd2Qj6Is,2181
48
- geney-1.4.2.dist-info/METADATA,sha256=BJlGqmWdiofdGSCLKU7Cpz0nRaqukqLZsEZKc70yk7k,989
49
- geney-1.4.2.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
50
- geney-1.4.2.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
- geney-1.4.2.dist-info/RECORD,,
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,,
@@ -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