geney 1.3.62__py2.py3-none-any.whl → 1.3.64__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/oncosplice.py +3 -2
- geney/splicing_utils.py +15 -9
- {geney-1.3.62.dist-info → geney-1.3.64.dist-info}/METADATA +1 -1
- {geney-1.3.62.dist-info → geney-1.3.64.dist-info}/RECORD +6 -6
- {geney-1.3.62.dist-info → geney-1.3.64.dist-info}/WHEEL +0 -0
- {geney-1.3.62.dist-info → geney-1.3.64.dist-info}/top_level.txt +0 -0
geney/oncosplice.py
CHANGED
|
@@ -368,9 +368,10 @@ def oncosplice(mut_id, splicing_threshold=0.5, protein_coding=True, cons_require
|
|
|
368
368
|
if no_splicing_record and splicing_db is not None:
|
|
369
369
|
splicing_db.store_mutation_data(engine=splicing_engine, mut_id=mut_id, gene=gene.gene_name, transcript_id=reference_transcript.transcript_id, data=missplicing.missplicing)
|
|
370
370
|
|
|
371
|
-
alternative_splicing_paths = develop_aberrant_splicing(reference_transcript, missplicing
|
|
372
|
-
print("iterating through new boundaries...")
|
|
371
|
+
alternative_splicing_paths = develop_aberrant_splicing(reference_transcript, missplicing) #.missplicing)
|
|
373
372
|
for i, new_boundaries in enumerate(alternative_splicing_paths):
|
|
373
|
+
print("iterating through new boundaries...")
|
|
374
|
+
|
|
374
375
|
mutated_transcript.acceptors = new_boundaries['acceptors']
|
|
375
376
|
mutated_transcript.donors = new_boundaries['donors']
|
|
376
377
|
mutated_transcript.generate_mature_mrna().generate_protein()
|
geney/splicing_utils.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import numpy as np
|
|
2
2
|
import pandas as pd
|
|
3
|
+
from tensorflow.python.framework.test_ops import none_eager_fallback
|
|
4
|
+
|
|
3
5
|
from .Gene import Gene
|
|
4
6
|
from .SeqMats import MutSeqMat
|
|
5
7
|
from collections import defaultdict
|
|
@@ -119,15 +121,19 @@ def prepare_splice_sites(acceptors, donors, aberrant_splicing):
|
|
|
119
121
|
|
|
120
122
|
|
|
121
123
|
def develop_aberrant_splicing(transcript, aberrant_splicing):
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
if not aberrant_splicing:
|
|
125
|
+
yield {'acceptors': transcript.acceptors, 'donors': transcript.donors, 'path_weight': 1}
|
|
126
|
+
|
|
127
|
+
else:
|
|
128
|
+
all_acceptors, all_donors = prepare_splice_sites(transcript.acceptors, transcript.donors, aberrant_splicing.missplicing)
|
|
129
|
+
adj_list = generate_adjacency_list(all_acceptors, all_donors, transcript_start=transcript.transcript_start,
|
|
130
|
+
transcript_end=transcript.transcript_end, rev=transcript.rev,
|
|
131
|
+
max_distance=100000)
|
|
132
|
+
end_node = (transcript.transcript_end, 'transcript_end')
|
|
133
|
+
start_node = (transcript.transcript_start, 'transcript_start')
|
|
134
|
+
for path, prob in find_all_paths(adj_list, start_node, end_node):
|
|
135
|
+
yield {'acceptors': [p[0] for p in path if p[1] == 'acceptor'],
|
|
136
|
+
'donors': [p[0] for p in path if p[1] == 'donor'], 'path_weight': prob}
|
|
131
137
|
|
|
132
138
|
|
|
133
139
|
|
|
@@ -11,12 +11,12 @@ geney/graphic_utils.py,sha256=oMsBpB9YeEn96gGpKh4MmtagJffWZbk-xPrIwHvkFhA,11016
|
|
|
11
11
|
geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
|
|
12
12
|
geney/immune_utils.py,sha256=ZRni5ttrhpYBnmNr0d0ZatIbNPYs4nmQuoUO00SpsS4,5271
|
|
13
13
|
geney/mutation_utils.py,sha256=C_kv2MB_L8LlhX3W2ooXjJ3uDoJ8zX1WeDtZKoBZJkI,1547
|
|
14
|
-
geney/oncosplice.py,sha256=
|
|
14
|
+
geney/oncosplice.py,sha256=YZvAnbe8gj9fPvs2DldeQpqhhe_QR9xBLe_0tcm9tdg,24793
|
|
15
15
|
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=PFIhTK8Ihrj-cv5tgRN0UFPYEmC4uxtqXSP9bBLnZRM,3077
|
|
19
|
-
geney/splicing_utils.py,sha256=
|
|
19
|
+
geney/splicing_utils.py,sha256=cVLXArVWJIxGaaWttm_dxJQbo6OBBkry4OFozaw-M2U,38768
|
|
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.64.dist-info/METADATA,sha256=UBUHpebp0LZs-uSCEwFF0snqM-FoUX8mC2-1HaBx3cY,990
|
|
29
|
+
geney-1.3.64.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.64.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.64.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|