geney 1.3.76__py2.py3-none-any.whl → 1.3.78__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
CHANGED
|
@@ -284,16 +284,21 @@ def summarize_missplicing_event(pes, pir, es, ne, ir):
|
|
|
284
284
|
return '-'
|
|
285
285
|
|
|
286
286
|
def missense_effect(r, v):
|
|
287
|
+
nt_changes, aa_changes = '', ''
|
|
287
288
|
if len(r.protein) != len(v.protein) or len(r.orf) != len(v.orf):
|
|
288
289
|
return '', ''
|
|
289
290
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
if r.protein != v.protein:
|
|
292
|
+
for i, (x, y) in enumerate(zip(r.protein, v.protein)):
|
|
293
|
+
if x != y:
|
|
294
|
+
aa_changes += f'{x}{i}{y},'
|
|
295
|
+
|
|
296
|
+
if r.orf.seq != v.orf.seq:
|
|
297
|
+
for i in range(len(r.protein)):
|
|
293
298
|
p = i*3
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return
|
|
299
|
+
if r.orf.seq[p:p+3] != v.orf.seq[p:p+3]:
|
|
300
|
+
nt_changes += f'{r.orf.seq[p:p+3]}{p}{v.orf.seq[p:p+3]},'
|
|
301
|
+
return aa_changes, nt_changes
|
|
297
302
|
|
|
298
303
|
# Annotating
|
|
299
304
|
def OncospliceAnnotator(reference_transcript, variant_transcript, mut, ref_attributes=[], var_attributes=[]):
|
|
@@ -436,8 +441,8 @@ def oncosplice(mut_id, splicing_threshold=0.5, protein_coding=True, primary_tran
|
|
|
436
441
|
return pd.DataFrame(results)[
|
|
437
442
|
['mut_id', 'transcript_id', 'isoform_id', 'primary_transcript', 'missplicing', 'full_missplicing',
|
|
438
443
|
'exon_changes', 'splicing_codes', 'affected_exon', 'affected_intron', 'mutation_distance_from_5',
|
|
439
|
-
'mutation_distance_from_3', 'missense_effect', 'codon_change', '
|
|
440
|
-
'isoform_prevalence', 'reference_protein', 'variant_protein', 'splicing_engine']]
|
|
444
|
+
'mutation_distance_from_3', 'missense_effect', 'codon_change', 'missense_position', 'reference_resemblance',
|
|
445
|
+
'oncosplice_score', 'percentile', 'isoform_prevalence', 'reference_protein', 'variant_protein', 'splicing_engine']]
|
|
441
446
|
|
|
442
447
|
|
|
443
448
|
def process_splicing_path(new_boundaries, reference_transcript, mutated_transcript,
|
|
@@ -11,7 +11,7 @@ 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=7KpuvIMLEZ4VGPIOw-UUwiPGfQgeFVrapqNt6jLreRA,32308
|
|
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
|
|
@@ -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.78.dist-info/METADATA,sha256=0OGHLbmr98kR8Q8FNmmnbjVBIv9a-TObHTMUDnG_2EM,990
|
|
29
|
+
geney-1.3.78.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.78.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.78.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|