geney 1.3.72__py2.py3-none-any.whl → 1.3.74__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 +4 -1
- geney/splicing_utils.py +12 -1
- {geney-1.3.72.dist-info → geney-1.3.74.dist-info}/METADATA +1 -1
- {geney-1.3.72.dist-info → geney-1.3.74.dist-info}/RECORD +6 -6
- {geney-1.3.72.dist-info → geney-1.3.74.dist-info}/WHEEL +0 -0
- {geney-1.3.72.dist-info → geney-1.3.74.dist-info}/top_level.txt +0 -0
geney/oncosplice.py
CHANGED
|
@@ -306,7 +306,7 @@ def OncospliceAnnotator(reference_transcript, variant_transcript, mut, ref_attri
|
|
|
306
306
|
|
|
307
307
|
def oncosplice(mut_id, splicing_threshold=0.5, protein_coding=True, cons_required=False, primary_transcript=False,
|
|
308
308
|
window_length=13, organism='hg38', splicing_engine=None, splicing_db=None, verbose=False,
|
|
309
|
-
tis_engine=None, tis_db=None):
|
|
309
|
+
tis_engine=None, tis_db=None, target_transcripts=None):
|
|
310
310
|
|
|
311
311
|
gene = Gene.from_file(mut_id.split(':')[0], organism=organism)
|
|
312
312
|
reference_gene_proteins = {
|
|
@@ -319,6 +319,9 @@ def oncosplice(mut_id, splicing_threshold=0.5, protein_coding=True, cons_require
|
|
|
319
319
|
|
|
320
320
|
results = []
|
|
321
321
|
for reference_transcript in tqdm(gene, desc=f'Processing {mut_id}...'):
|
|
322
|
+
if target_transcripts is not None and reference_transcript.transcript_id not in target_transcripts:
|
|
323
|
+
continue
|
|
324
|
+
|
|
322
325
|
# if (cons_required and not reference_transcript.cons_available) or (
|
|
323
326
|
# protein_coding and not reference_transcript.transcript_biotype == 'protein_coding'):
|
|
324
327
|
if protein_coding and not reference_transcript.transcript_biotype == 'protein_coding':
|
geney/splicing_utils.py
CHANGED
|
@@ -223,6 +223,9 @@ def find_transcript_splicing(transcript, engine: str = 'spliceai') -> Tuple[Dict
|
|
|
223
223
|
|
|
224
224
|
def find_transcript_missplicing(mut_id, transcript=None, threshold=0.5, engine='spliceai', organism='hg38', db=None, force_recompute=False):
|
|
225
225
|
gene = Gene.from_file(mut_id.split(':')[0], organism=organism)
|
|
226
|
+
if transcript not in gene.transcripts:
|
|
227
|
+
return np.nan
|
|
228
|
+
|
|
226
229
|
reference_transcript = gene.transcript(transcript) if transcript is not None else gene.transcript()
|
|
227
230
|
|
|
228
231
|
if db is not None:
|
|
@@ -230,6 +233,9 @@ def find_transcript_missplicing(mut_id, transcript=None, threshold=0.5, engine='
|
|
|
230
233
|
if cached_data and not force_recompute:
|
|
231
234
|
return Missplicing(cached_data)
|
|
232
235
|
|
|
236
|
+
if reference_transcript is None:
|
|
237
|
+
return Missplicing({'missed_acceptors': {}, 'missed_donors': {}, 'discovered_acceptors': {}, 'discovered_donors': {}})
|
|
238
|
+
|
|
233
239
|
variant_transcript = reference_transcript.clone()
|
|
234
240
|
mutations = [MutSeqMat.from_mutid(m) for m in mut_id.split('|')]
|
|
235
241
|
mutations = [m for m in mutations if m in reference_transcript]
|
|
@@ -540,7 +546,12 @@ def process_pairwise_epistasis_explicit(mid, engine='spliceai'):
|
|
|
540
546
|
lower_pos, upper_pos = int(parts[2]), int(parts[6])
|
|
541
547
|
|
|
542
548
|
# Load gene and its transcript (as pre-mRNA)
|
|
543
|
-
g = Gene.from_file(parts[0]).transcript()
|
|
549
|
+
g = Gene.from_file(parts[0]).transcript()
|
|
550
|
+
|
|
551
|
+
if g is not None:
|
|
552
|
+
g.generate_pre_mrna()
|
|
553
|
+
else:
|
|
554
|
+
return pd.DataFrame()
|
|
544
555
|
|
|
545
556
|
# If gene is on the reverse strand, swap positions and set factor to -1.
|
|
546
557
|
if g.rev:
|
|
@@ -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=Y32tz6DdDVIGdrM4rl9RMC48il5k15VP_Wnmi2nXQ04,24948
|
|
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=tVY0T6F6l3fNoaktpn7Kq0oH5ZM0ThFYt9nPi_lfakw,3077
|
|
19
|
-
geney/splicing_utils.py,sha256=
|
|
19
|
+
geney/splicing_utils.py,sha256=wH_Cfd2Fm52qSbkxB8VmK-zMXfHkkEjVLzD-TN7qZVo,47544
|
|
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.74.dist-info/METADATA,sha256=Ay8aCZoysVN3uvYzGFHAWLM5N7evz_WxeR1t3oiM6D4,990
|
|
29
|
+
geney-1.3.74.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.74.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.74.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|