geney 1.3.67__py2.py3-none-any.whl → 1.3.68__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/splicing_utils.py
CHANGED
|
@@ -602,7 +602,6 @@ def process_pairwise_epistasis_explicit(mid, engine='spliceai'):
|
|
|
602
602
|
|
|
603
603
|
# Further filter acceptors: keep only columns where the value in the second row is < 0.1.
|
|
604
604
|
# (Assumes that the second row (iloc[1]) represents a specific measure you wish to threshold.)
|
|
605
|
-
acceptors_df = acceptors_df.loc[:, acceptors_df.iloc[1] < 0.1]
|
|
606
605
|
|
|
607
606
|
# Helper function: add new features (residual and deviations) and filter based on residual.
|
|
608
607
|
def add_features_and_filter(df):
|
|
@@ -626,10 +625,16 @@ def process_pairwise_epistasis_explicit(mid, engine='spliceai'):
|
|
|
626
625
|
acceptors_df = add_features_and_filter(acceptors_df)
|
|
627
626
|
|
|
628
627
|
# Return the processed dataframes with the new features persisting.
|
|
629
|
-
donors_df.
|
|
630
|
-
|
|
628
|
+
if donors_df.shape[1] > 0:
|
|
629
|
+
donors_df.loc['site_type', :] = 0
|
|
630
|
+
if acceptors_df.shape[1] > 0:
|
|
631
|
+
acceptors_df.loc['site_type', :] = 1
|
|
632
|
+
|
|
631
633
|
df = pd.concat([acceptors_df, donors_df], axis=1)
|
|
632
634
|
|
|
635
|
+
if df.shape[1] == 0:
|
|
636
|
+
return df
|
|
637
|
+
|
|
633
638
|
mask = df.apply(
|
|
634
639
|
lambda col: (
|
|
635
640
|
(abs(col['residual']) > 0.1) and
|
|
@@ -637,6 +642,7 @@ def process_pairwise_epistasis_explicit(mid, engine='spliceai'):
|
|
|
637
642
|
),
|
|
638
643
|
axis=0
|
|
639
644
|
)
|
|
645
|
+
|
|
640
646
|
df.loc['synergistic'] = 0
|
|
641
647
|
df.loc['synergistic', mask] = 1
|
|
642
648
|
|
|
@@ -16,7 +16,7 @@ geney/pangolin_utils.py,sha256=9jdBXlOcRaUdfi-UpUxHA0AkTMZkUF-Lt7HVZ1nEm3s,2973
|
|
|
16
16
|
geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
|
|
17
17
|
geney/seqmat_utils.py,sha256=wzb3PX5it5bpIFQvcxyzlxfhoJTbHHbsjg0rzh05iVs,19753
|
|
18
18
|
geney/spliceai_utils.py,sha256=tVY0T6F6l3fNoaktpn7Kq0oH5ZM0ThFYt9nPi_lfakw,3077
|
|
19
|
-
geney/splicing_utils.py,sha256=
|
|
19
|
+
geney/splicing_utils.py,sha256=50Cmn12BEzvCQfDe-8u4lNVkqhNn2FXI_Q0Nw98MKBo,47699
|
|
20
20
|
geney/survival_utils.py,sha256=KnAzEviMuXh6SnVXId9PgsFLSbgkduTvYoIthxN7FPA,6886
|
|
21
21
|
geney/tcga_utils.py,sha256=D_BNHm-D_K408dlcJm3hzH2c6QNFjQsKvUcOPiQRk7g,17612
|
|
22
22
|
geney/tis_utils.py,sha256=la0CZroaKe5RgAyFd4Bf_DqQncklWgAY2823xVst98o,7813
|
|
@@ -25,7 +25,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
25
25
|
geney/translation_initiation/tis_utils.py,sha256=AF3siFjuQH-Rs44EV-80zHdbxRMvN4woLFSHroWIETc,4448
|
|
26
26
|
geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
|
|
27
27
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
28
|
-
geney-1.3.
|
|
29
|
-
geney-1.3.
|
|
30
|
-
geney-1.3.
|
|
31
|
-
geney-1.3.
|
|
28
|
+
geney-1.3.68.dist-info/METADATA,sha256=kREzXHGHU6MjvTQCSgq9o3csVnm28mktBzx8WeUYtX8,990
|
|
29
|
+
geney-1.3.68.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.68.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.68.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|