geney 1.2.45__py2.py3-none-any.whl → 1.2.46__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/oncosplice.py +1 -1
- geney/survival_utils.py +14 -6
- {geney-1.2.45.dist-info → geney-1.2.46.dist-info}/METADATA +1 -1
- {geney-1.2.45.dist-info → geney-1.2.46.dist-info}/RECORD +6 -6
- {geney-1.2.45.dist-info → geney-1.2.46.dist-info}/WHEEL +0 -0
- {geney-1.2.45.dist-info → geney-1.2.46.dist-info}/top_level.txt +0 -0
geney/oncosplice.py
CHANGED
|
@@ -402,7 +402,7 @@ def oncosplice(mut_id, splicing_threshold=0.5, protein_coding=True, primary_tran
|
|
|
402
402
|
sorted(cons_vector).index(next(x for x in sorted(cons_vector) if x >= affected_cons_scores)) / len(
|
|
403
403
|
cons_vector))
|
|
404
404
|
|
|
405
|
-
report =
|
|
405
|
+
report = OncospliceAnnotator(reference_transcript, transcript, mutation)
|
|
406
406
|
report['mut_id'] = mut_id
|
|
407
407
|
report['oncosplice_score'] = affected_cons_scores
|
|
408
408
|
report['percentile'] = percentile
|
geney/survival_utils.py
CHANGED
|
@@ -88,21 +88,29 @@ class SurvivalAnalysis:
|
|
|
88
88
|
auc_vals.append(auc)
|
|
89
89
|
if plot:
|
|
90
90
|
if count == 0:
|
|
91
|
-
ax = kmf.plot_survival_function()
|
|
91
|
+
ax = kmf.plot_survival_function(ci_show=True, color="#2430e0", lw=2)
|
|
92
92
|
else:
|
|
93
|
-
kmf.plot_survival_function(ax=ax)
|
|
93
|
+
kmf.plot_survival_function(ax=ax, ci_show=True, color="#e60215", lw=2)
|
|
94
94
|
count += 1
|
|
95
|
+
|
|
95
96
|
p_value = self.log_rank(df[df[feature] == 1], df[df[feature] == 0])
|
|
96
97
|
|
|
97
98
|
if plot:
|
|
98
|
-
ax.text(0.5, 0.85,
|
|
99
|
+
ax.text(0.5, 0.85, rf'$Survival p{{v}}$: {p_value:.4f}', transform=ax.transAxes, fontsize=9,
|
|
99
100
|
horizontalalignment='center')
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
# Grid and spines
|
|
102
|
+
ax.grid(True, which="major", linestyle="--", linewidth=0.5, color="grey", alpha=0.7)
|
|
103
|
+
ax.spines['top'].set_visible(False)
|
|
104
|
+
ax.spines['right'].set_visible(False)
|
|
105
|
+
ax.tick_params(axis="both", which="major", labelsize=12)
|
|
106
|
+
ax.legend(fontsize=12, frameon=False, loc='upper right')
|
|
107
|
+
plt.xlabel('Time (years)')
|
|
102
108
|
plt.ylabel('Survival Probability')
|
|
103
109
|
if time_cap:
|
|
104
110
|
plt.xlim([0, cap_time])
|
|
105
|
-
plt.
|
|
111
|
+
plt.tight_layout()
|
|
112
|
+
|
|
113
|
+
# plt.show()
|
|
106
114
|
|
|
107
115
|
results['p_value'] = p_value
|
|
108
116
|
results['auc_target'] = auc_vals[-1]
|
|
@@ -6,13 +6,13 @@ geney/graphic_utils.py,sha256=oMsBpB9YeEn96gGpKh4MmtagJffWZbk-xPrIwHvkFhA,11016
|
|
|
6
6
|
geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
|
|
7
7
|
geney/immune_utils.py,sha256=ZRni5ttrhpYBnmNr0d0ZatIbNPYs4nmQuoUO00SpsS4,5271
|
|
8
8
|
geney/mutation_utils.py,sha256=C_kv2MB_L8LlhX3W2ooXjJ3uDoJ8zX1WeDtZKoBZJkI,1547
|
|
9
|
-
geney/oncosplice.py,sha256=
|
|
9
|
+
geney/oncosplice.py,sha256=nP8SEXvaZbU-K_pzIOKJ6BNAl3QJgidRiptm7xBzACM,23440
|
|
10
10
|
geney/pangolin_utils.py,sha256=lLmnjJdJjqwWS85-1jlPLIjD2z14sWjzU87hS-8xxpQ,2873
|
|
11
11
|
geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
|
|
12
12
|
geney/seqmat_utils.py,sha256=YV5DFLbfjXLIswPGvqK1-eEfwn9TUby0b2kewdGAKws,18372
|
|
13
13
|
geney/spliceai_utils.py,sha256=gIGPC8u3J15A7EQrk2Elho5PbF9MmUUNopGGH-eEV8s,1873
|
|
14
14
|
geney/splicing_utils.py,sha256=lGBNknnAdKhcJ3MqPQ5c9oz_NKcL2lcFAr78StjKa6o,16151
|
|
15
|
-
geney/survival_utils.py,sha256=
|
|
15
|
+
geney/survival_utils.py,sha256=usBLTwGnFzYOcl70p3lwM4SEfy1KG-UVyx-dDmXTQWY,6196
|
|
16
16
|
geney/tcga_utils.py,sha256=D_BNHm-D_K408dlcJm3hzH2c6QNFjQsKvUcOPiQRk7g,17612
|
|
17
17
|
geney/tis_utils.py,sha256=vA2ci4gNfwwQZlCjPpO5ehvL2NRVeM7lHI_VyfT-_10,8049
|
|
18
18
|
geney/utils.py,sha256=EsKvBM-Nz2a3_4ZAhF4Dxd4PwT7_6YYKpxEN4LLgg10,2174
|
|
@@ -20,7 +20,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
20
20
|
geney/translation_initiation/tis_utils.py,sha256=AF3siFjuQH-Rs44EV-80zHdbxRMvN4woLFSHroWIETc,4448
|
|
21
21
|
geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
|
|
22
22
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
23
|
-
geney-1.2.
|
|
24
|
-
geney-1.2.
|
|
25
|
-
geney-1.2.
|
|
26
|
-
geney-1.2.
|
|
23
|
+
geney-1.2.46.dist-info/METADATA,sha256=-MelhppfvYVO4W_1hwKuToXWF-SEubjyQLuGJ_DuxeQ,948
|
|
24
|
+
geney-1.2.46.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
25
|
+
geney-1.2.46.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
26
|
+
geney-1.2.46.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|