geney 1.2.38__py2.py3-none-any.whl → 1.2.40__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/pangolin_utils.py +2 -4
- geney/splicing_utils.py +4 -4
- geney/tis_utils.py +1 -1
- {geney-1.2.38.dist-info → geney-1.2.40.dist-info}/METADATA +1 -1
- {geney-1.2.38.dist-info → geney-1.2.40.dist-info}/RECORD +8 -8
- {geney-1.2.38.dist-info → geney-1.2.40.dist-info}/WHEEL +0 -0
- {geney-1.2.38.dist-info → geney-1.2.40.dist-info}/top_level.txt +0 -0
geney/oncosplice.py
CHANGED
|
@@ -382,7 +382,7 @@ def oncosplice(mut_id, splicing_threshold=0.5, protein_coding=True, primary_tran
|
|
|
382
382
|
|
|
383
383
|
assert len(ref_protein) == len(cons_vector), f"Protein ({len(ref_protein)}) and conservation vector ({len(cons_vector)}) must be same length. {ref_protein}, \n>{cons_vector}\n>{transcript.cons_seq}"
|
|
384
384
|
|
|
385
|
-
missplicing = Missplicing(find_transcript_missplicing(transcript, mutations, engine=engine), threshold=splicing_threshold)
|
|
385
|
+
missplicing = Missplicing(find_transcript_missplicing(transcript, mutations, engine=engine, threshold=splicing_threshold), threshold=splicing_threshold)
|
|
386
386
|
for mutation in mutations:
|
|
387
387
|
transcript.pre_mrna += mutation
|
|
388
388
|
|
geney/pangolin_utils.py
CHANGED
|
@@ -49,6 +49,7 @@ def pang_one_hot_encode(seq):
|
|
|
49
49
|
def pangolin_predict_probs(true_seq, models):
|
|
50
50
|
# print(f"Running pangolin on: {true_seq}")
|
|
51
51
|
model_nums = [0, 2, 4, 6]
|
|
52
|
+
model_nums = [0, 1, 2, 3, 4, 5, 6]
|
|
52
53
|
INDEX_MAP = {0: 1, 1: 2, 2: 4, 3: 5, 4: 7, 5: 8, 6: 10, 7: 11}
|
|
53
54
|
|
|
54
55
|
# seq = 'N'*5000 + true_seq + 'N'*5000
|
|
@@ -73,10 +74,7 @@ def pangolin_predict_probs(true_seq, models):
|
|
|
73
74
|
|
|
74
75
|
scores.append(np.mean(score, axis=0))
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
splicing_pred = np.array(scores).mean(axis=0)
|
|
77
|
+
splicing_pred = np.array(scores).max(axis=0)
|
|
78
78
|
donor_probs = [splicing_pred[i] * donor_dinucleotide[i] for i in range(len(true_seq))]
|
|
79
79
|
acceptor_probs = [splicing_pred[i] * acceptor_dinucleotide[i] for i in range(len(true_seq))]
|
|
80
|
-
# print(acceptor_probs)
|
|
81
|
-
# return donor_probs[context:-context], acceptor_probs[context:-context]
|
|
82
80
|
return donor_probs, acceptor_probs
|
geney/splicing_utils.py
CHANGED
|
@@ -139,11 +139,11 @@ def find_ss_changes(ref_dct, mut_dct, known_splice_sites, threshold=0.5):
|
|
|
139
139
|
new_dict = {v: mut_dct.get(v, 0) - ref_dct.get(v, 0) for v in
|
|
140
140
|
list(set(list(ref_dct.keys()) + list(mut_dct.keys())))}
|
|
141
141
|
|
|
142
|
-
discovered_pos = {k: {'delta': round(float(v), 3), 'absolute': round(float(mut_dct[k]), 3)} for k, v in
|
|
143
|
-
new_dict.items() if v >= threshold and k not in known_splice_sites} # if (k not in known_splice_sites and v >= threshold) or (v > 0.45)}
|
|
142
|
+
discovered_pos = {k: {'delta': round(float(v), 3), 'absolute': round(float(mut_dct[k]), 3), 'reference': round(ref_dct[k], 3)} for k, v in
|
|
143
|
+
new_dict.items() if v >= threshold} # and k not in known_splice_sites} # if (k not in known_splice_sites and v >= threshold) or (v > 0.45)}
|
|
144
144
|
|
|
145
|
-
deleted_pos = {k: {'delta': round(float(v), 3), 'absolute': round(float(mut_dct.get(k, 0)), 3)} for k, v in
|
|
146
|
-
new_dict.items() if -v >= threshold and k in known_splice_sites} #if k in known_splice_sites and v <= -threshold}
|
|
145
|
+
deleted_pos = {k: {'delta': round(float(v), 3), 'absolute': round(float(mut_dct.get(k, 0)), 3), 'reference': round(ref_dct[k], 3)} for k, v in
|
|
146
|
+
new_dict.items() if -v >= threshold} # and k in known_splice_sites} #if k in known_splice_sites and v <= -threshold}
|
|
147
147
|
|
|
148
148
|
return discovered_pos, deleted_pos
|
|
149
149
|
|
geney/tis_utils.py
CHANGED
|
@@ -133,7 +133,7 @@ def build_titer_model(TITER_path=config['hg38']['titer_path']):
|
|
|
133
133
|
if os.path.exists(weights_path):
|
|
134
134
|
model_copy.load_weights(weights_path) # Load weights into the new model instance
|
|
135
135
|
models.append(model_copy)
|
|
136
|
-
print(f"Loaded model {i} with weights from {weights_path}")
|
|
136
|
+
# print(f"Loaded model {i} with weights from {weights_path}")
|
|
137
137
|
else:
|
|
138
138
|
print(f"Warning: Weights file {weights_path} not found")
|
|
139
139
|
|
|
@@ -6,21 +6,21 @@ geney/graphic_utils.py,sha256=tjm6IDQ1BdfSeuPYzjlqAUHFQoDYH9jXTzJjKFS4Hh4,11078
|
|
|
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=
|
|
10
|
-
geney/pangolin_utils.py,sha256=
|
|
9
|
+
geney/oncosplice.py,sha256=J_nFs_xBSJtgMqeHv628QodRL0B2d-Zi1Ke7Pk7S4R4,22595
|
|
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
|
-
geney/splicing_utils.py,sha256=
|
|
14
|
+
geney/splicing_utils.py,sha256=lGBNknnAdKhcJ3MqPQ5c9oz_NKcL2lcFAr78StjKa6o,16151
|
|
15
15
|
geney/survival_utils.py,sha256=2CAkC2LsspicHIdrqsiPnjgvpr5KHDUfLFFqnRbPJqs,5762
|
|
16
16
|
geney/tcga_utils.py,sha256=vXSMf1OxoF_AdE_rMguy_BoYaart_E1t4FFMx2DS1Ak,15585
|
|
17
|
-
geney/tis_utils.py,sha256=
|
|
17
|
+
geney/tis_utils.py,sha256=vA2ci4gNfwwQZlCjPpO5ehvL2NRVeM7lHI_VyfT-_10,8049
|
|
18
18
|
geney/utils.py,sha256=EsKvBM-Nz2a3_4ZAhF4Dxd4PwT7_6YYKpxEN4LLgg10,2174
|
|
19
19
|
geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
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.40.dist-info/METADATA,sha256=ja7ULYnyNPbYYj-wloXQzHDH86TL2mg4LfgEmZaMcbE,948
|
|
24
|
+
geney-1.2.40.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
25
|
+
geney-1.2.40.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
26
|
+
geney-1.2.40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|