geney 1.3.15__py2.py3-none-any.whl → 1.3.17__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
|
@@ -230,7 +230,7 @@ def find_transcript_missplicing(mut_id, transcript=None, threshold=0.5, engine='
|
|
|
230
230
|
for mutation in mutations:
|
|
231
231
|
variant_transcript.mutate(mutation, inplace=True)
|
|
232
232
|
|
|
233
|
-
missplicing = find_transcript_missplicing_seqs(reference_transcript.pre_mrna.get_context(center, 7500), variant_transcript.pre_mrna.get_context(center, 7500), reference_transcript.donors, reference_transcript.acceptors, threshold=threshold, engine=engine)
|
|
233
|
+
missplicing = find_transcript_missplicing_seqs(reference_transcript.pre_mrna.get_context(center, 7500, padding='N'), variant_transcript.pre_mrna.get_context(center, 7500, padding='N'), reference_transcript.donors, reference_transcript.acceptors, threshold=threshold, engine=engine)
|
|
234
234
|
|
|
235
235
|
if db is not None:
|
|
236
236
|
db.store_mutation_data(engine, gene.gene_name, mut_id, reference_transcript.transcript_id, missplicing.missplicing)
|
|
@@ -368,7 +368,7 @@ def find_transcript_missplicing_seqs(ref_seq, var_seq, donors, acceptors, thresh
|
|
|
368
368
|
return Missplicing(temp, threshold=threshold)
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
def process_pairwise_epistasis(mids, engine='pangolin', fprint=False):
|
|
371
|
+
def process_pairwise_epistasis(mids, engine='pangolin', fprint=False, db=None):
|
|
372
372
|
results = []
|
|
373
373
|
for mid in mids:
|
|
374
374
|
m1, m2 = mid.split('|')
|
|
@@ -376,9 +376,9 @@ def process_pairwise_epistasis(mids, engine='pangolin', fprint=False):
|
|
|
376
376
|
# missplicing2 = find_transcript_missplicing(m2, threshold=0.25, engine=engine)
|
|
377
377
|
# missplicing_both = find_transcript_missplicing(mid, threshold=0.25, engine=engine)
|
|
378
378
|
|
|
379
|
-
missplicing1 = Missplicing(
|
|
380
|
-
missplicing2 = Missplicing(
|
|
381
|
-
missplicing_both = Missplicing(
|
|
379
|
+
missplicing1 = Missplicing(find_transcript_missplicing(m1, engine=engine, db=db), threshold=0.25)
|
|
380
|
+
missplicing2 = Missplicing(find_transcript_missplicing(m2, engine=engine, db=db), threshold=0.25)
|
|
381
|
+
missplicing_both = Missplicing(find_transcript_missplicing(mid, engine=engine, db=db), threshold=0.25)
|
|
382
382
|
|
|
383
383
|
if fprint:
|
|
384
384
|
print(missplicing1)
|
|
@@ -444,9 +444,9 @@ def process_pairwise_epistasis(mids, engine='pangolin', fprint=False):
|
|
|
444
444
|
|
|
445
445
|
vals = cummulative_deltas + corrective_deltas
|
|
446
446
|
flag['max_delta'] = max(vals, key=abs) if vals else 0
|
|
447
|
-
flag['ms1'] =
|
|
448
|
-
flag['ms2'] =
|
|
449
|
-
flag['msb'] =
|
|
447
|
+
flag['ms1'] = missplicing1.max_delta
|
|
448
|
+
flag['ms2'] = missplicing2.max_delta
|
|
449
|
+
flag['msb'] = missplicing_both.max_delta
|
|
450
450
|
flag['increased_canonical_splicing'] = increased_canonical_splicing
|
|
451
451
|
|
|
452
452
|
result_df = pd.Series(flag).to_frame().T
|
|
@@ -16,7 +16,7 @@ geney/pangolin_utils.py,sha256=i5j5vEMCWOTIa1mRP2377BAhlUFZjHBzTQBips4lA_4,2934
|
|
|
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=T1aNSRwhyJdYU4_FrkHnUEqtXSs8NuvTqjpGMAGIgCk,35847
|
|
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=2makfGfVlDFVIbxzXE85AY9jmAjcNmxyIAxjvkRA5LY,7396
|
|
@@ -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.17.dist-info/METADATA,sha256=djgaQGPdsWph1mXqld_kAD5O6awvDoMFSHxqIm0rXiM,971
|
|
29
|
+
geney-1.3.17.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.17.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|