geney 1.4.0__py2.py3-none-any.whl → 1.4.2__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/SpliceSimulator.py
CHANGED
|
@@ -101,7 +101,7 @@ class SpliceSimulator:
|
|
|
101
101
|
self.donor_df.discovered_delta.abs() > 0.2)].reset_index().to_json()
|
|
102
102
|
metadata['acceptor_events'] = self.acceptor_df[(self.acceptor_df.deleted_delta.abs() > 0.2) | (
|
|
103
103
|
self.acceptor_df.discovered_delta.abs() > 0.2)].reset_index().to_json()
|
|
104
|
-
metadata['missplicing'] = self.max_splicing_delta()
|
|
104
|
+
metadata['missplicing'] = self.max_splicing_delta('event_prob')
|
|
105
105
|
return metadata
|
|
106
106
|
|
|
107
107
|
def max_splicing_delta(self, event) -> pd.Series:
|
|
@@ -115,10 +115,20 @@ 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)
|
|
118
123
|
max_missplicing = {}
|
|
119
124
|
for site_type in ['donors', 'acceptors']:
|
|
120
125
|
df = self.full_df[site_type]
|
|
121
|
-
|
|
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]
|
|
122
132
|
return pd.Series(max_missplicing)
|
|
123
133
|
|
|
124
134
|
def set_donor_nodes(self) -> None:
|
|
@@ -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=
|
|
5
|
+
geney/SpliceSimulator.py,sha256=oOLfApT5lFGsGDT-yY2aLPFOuwxYHmLJgq3opCulsn8,18832
|
|
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.
|
|
49
|
-
geney-1.4.
|
|
50
|
-
geney-1.4.
|
|
51
|
-
geney-1.4.
|
|
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,,
|
|
File without changes
|
|
File without changes
|