geney 1.4.1__py2.py3-none-any.whl → 1.4.3__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,11 +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 = {}
118
+ all_diffs = []
119
+
119
120
  for site_type in ['donors', 'acceptors']:
120
121
  df = self.full_df[site_type]
121
- max_missplicing[site_type] = max(abs(df[event] - df['ref_prob']))
122
- 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
123
128
 
124
129
  def set_donor_nodes(self) -> None:
125
130
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.4.1
3
+ Version: 1.4.3
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=eVXEpczq3fqQpfmgn-xCnJdCiNYG9TwW3LkSPdyeFpI,18376
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
@@ -45,7 +45,7 @@ geney/utils/pangolin_utils.py,sha256=EUadXPxY7QUnsQrlyO7K5cg9mi5ssZjSDvNa_SzoBQg
45
45
  geney/utils/spliceai_utils.py,sha256=oRrGJqjWirzYmiBmUR9hGr4B7V_7Y1uMyRTmbFKc_t0,4539
46
46
  geney/utils/splicing_utils.py,sha256=_Df3SakZrDjs2yKLG05TtfwuoXDLLrZWc9Y8i79rFDM,20633
47
47
  geney/utils/utils.py,sha256=m51Vd0cEbrcIHo6_8BAuI9YSPcKRs22e5LfVd2Qj6Is,2181
48
- geney-1.4.1.dist-info/METADATA,sha256=HyC14VKqeu1HExC-vasEc4yhH73fN1hI_L5fAE1UXgo,989
49
- geney-1.4.1.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
50
- geney-1.4.1.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
- geney-1.4.1.dist-info/RECORD,,
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,,
File without changes