geney 1.2.15__py2.py3-none-any.whl → 1.2.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/oncosplice.py
CHANGED
|
@@ -219,6 +219,7 @@ class Gene:
|
|
|
219
219
|
self.gene_end = 0
|
|
220
220
|
self.transcripts = {}
|
|
221
221
|
self.load_from_file(find_files_by_gene_name(gene_name, organism=organism))
|
|
222
|
+
# print(f"In Gene: {variation}")
|
|
222
223
|
self.variations = variation
|
|
223
224
|
self.primary_tid = None
|
|
224
225
|
self.organism = organism
|
|
@@ -271,7 +272,7 @@ class Gene:
|
|
|
271
272
|
|
|
272
273
|
if tid not in self.transcripts:
|
|
273
274
|
raise AttributeError(f"Transcript '{tid}' not found in gene '{self.gene_name}'.")
|
|
274
|
-
return Transcript(self.transcripts[tid], organism=self.organism)
|
|
275
|
+
return Transcript(self.transcripts[tid], organism=self.organism, variations=self.variations)
|
|
275
276
|
|
|
276
277
|
def run_transcripts(self, primary_transcript=False, protein_coding=False):
|
|
277
278
|
for tid, annotations in self.transcripts.items():
|
|
@@ -306,7 +307,7 @@ class Transcript:
|
|
|
306
307
|
self.cons_vector = ''
|
|
307
308
|
self.variations = None
|
|
308
309
|
self.organism = organism
|
|
309
|
-
print(f"Variations: {variations}")
|
|
310
|
+
# print(f"Variations: {variations}")
|
|
310
311
|
if variations:
|
|
311
312
|
self.variations = Variations(variations)
|
|
312
313
|
|
|
@@ -520,7 +521,7 @@ class Transcript:
|
|
|
520
521
|
seq, indices = self.pull_pre_mrna_pos()
|
|
521
522
|
if self.variations:
|
|
522
523
|
for mutation in self.variations.variants:
|
|
523
|
-
print(f"Implementing {mutation}")
|
|
524
|
+
# print(f"Implementing {mutation}")
|
|
524
525
|
seq, indices = generate_mut_variant(seq, indices, mut=mutation)
|
|
525
526
|
return seq, indices
|
|
526
527
|
|
|
@@ -793,7 +794,7 @@ def find_transcript_missplicing(mutations, ref_transcript, var_transcript, conte
|
|
|
793
794
|
start_pad, end_pad = max(0, context - (center_index - start_cutoff)), max(0, context - (end_cutoff - center_index))
|
|
794
795
|
mut_seq = 'N' * start_pad + mut_seq[start_cutoff:end_cutoff] + 'N' * end_pad
|
|
795
796
|
mut_indices = [-1] * start_pad + mut_indices[start_cutoff:end_cutoff] + [-1] * end_pad
|
|
796
|
-
print(f"Mut and Ref are equal: {mut_seq == ref_seq}")
|
|
797
|
+
# print(f"Mut and Ref are equal: {mut_seq == ref_seq}")
|
|
797
798
|
|
|
798
799
|
copy_mut_indices = mut_indices.copy()
|
|
799
800
|
|
|
@@ -1041,8 +1042,8 @@ class PredictSpliceAI:
|
|
|
1041
1042
|
# elif isinstance(gene_data, Transcript):
|
|
1042
1043
|
|
|
1043
1044
|
# self.missplicing = run_spliceai_transcript(self.modification, transcript_data=gene_data, sai_mrg_context=sai_mrg_context, min_coverage=min_coverage, sai_threshold=0.1)
|
|
1044
|
-
print("RUNNING")
|
|
1045
|
-
ref_transcript, var_transcript = Gene(mutation.mut_id.split(':')[0], organism='mm39').transcript(gene_data.transcript_id), Gene(mutation.mut_id.split(':')[0],
|
|
1045
|
+
# print(f"RUNNING: {mutation.mut_id}")
|
|
1046
|
+
ref_transcript, var_transcript = Gene(mutation.mut_id.split(':')[0], organism='mm39').transcript(gene_data.transcript_id), Gene(mutation.mut_id.split(':')[0], mutation.mut_id, organism='mm39').transcript(gene_data.transcript_id)
|
|
1046
1047
|
print(f"Second check : {ref_transcript.pre_mrna == var_transcript.pre_mrna}")
|
|
1047
1048
|
self.missplicing = find_transcript_missplicing(self.modification, ref_transcript, var_transcript, context=sai_mrg_context+min_coverage, threshold=threshold,
|
|
1048
1049
|
engine=engine)
|
|
@@ -9,7 +9,7 @@ geney/gtex.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
|
|
|
9
9
|
geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
|
|
10
10
|
geney/immune_utils.py,sha256=ZRni5ttrhpYBnmNr0d0ZatIbNPYs4nmQuoUO00SpsS4,5271
|
|
11
11
|
geney/netchop.py,sha256=AMiy9YsdTmX4B3k3Y5Yh7EmoGAojM1O3AzhPKOiB--g,3050
|
|
12
|
-
geney/oncosplice.py,sha256=
|
|
12
|
+
geney/oncosplice.py,sha256=Ram8jY69AxVspa13jN4eQD0iUX5dUuz9fXQzG3QoJl0,78052
|
|
13
13
|
geney/oncosplice_mouse.py,sha256=LYLOukI9qI1IBkyl1qVRFR5d1NAw7Orlj8Zth-4xCW8,12962
|
|
14
14
|
geney/oncosplice_pipeline.py,sha256=hpGqFHOdn8i8tvvs1-t3-G9Ko18zInwoDXBJbbrfbC4,68036
|
|
15
15
|
geney/performance_utils.py,sha256=FQt7rA4r-Wuq3kceCxsSuMfj3wU1tMG8QnbL59aBohs,4700
|
|
@@ -45,7 +45,7 @@ geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFW
|
|
|
45
45
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
46
46
|
geney/translation_termination/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
geney/translation_termination/tts_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
|
-
geney-1.2.
|
|
49
|
-
geney-1.2.
|
|
50
|
-
geney-1.2.
|
|
51
|
-
geney-1.2.
|
|
48
|
+
geney-1.2.17.dist-info/METADATA,sha256=-fToNRmK9zXLOqq-LRzgPHk8E0_d4ecgfukN35KHlso,1199
|
|
49
|
+
geney-1.2.17.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
|
|
50
|
+
geney-1.2.17.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
51
|
+
geney-1.2.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|