geney 1.4.41__py3-none-any.whl → 1.4.42__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/__init__.py CHANGED
@@ -15,6 +15,7 @@ from .pipelines import (
15
15
  max_splicing_delta,
16
16
  oncosplice_pipeline_single_transcript, # backwards compat
17
17
  )
18
+ # from .samples import *
18
19
 
19
20
  __all__ = [
20
21
  "Mutation",
@@ -35,4 +36,5 @@ __all__ = [
35
36
 
36
37
 
37
38
  mut_id = 'KRAS:12:25227343:G:T'
38
- epistasis_id = 'KRAS:12:25227343:G:T|KRAS:12:25227344:A:T'
39
+ epistasis_id = 'KRAS:12:25227343:G:T|KRAS:12:25227344:A:T'
40
+
geney/oncosplice.py CHANGED
@@ -388,9 +388,10 @@ class Oncosplice:
388
388
  analysis_dict = {
389
389
  'reference_protein': self.reference_protein,
390
390
  'variant_protein': self.variant_protein,
391
+ 'aligned_reference_protein': self.alignment.seqA,
392
+ 'aligned_variant_protein': self.alignment.seqB,
391
393
  'reference_length': len(self.reference_protein),
392
394
  'variant_length': len(self.variant_protein),
393
- # 'alignment_length': len(self.alignment.seqA),
394
395
  'oncosplice_score': self.score,
395
396
  'percentile': self.percentile,
396
397
  'number_of_deletions': len(self.deletions),
geney/pipelines.py CHANGED
@@ -34,6 +34,10 @@ def oncosplice_pipeline(
34
34
  .generate_protein()
35
35
  )
36
36
 
37
+ # Truncate protein at first stop codon
38
+ if '*' in reference_transcript.protein:
39
+ reference_transcript.protein = reference_transcript.protein[:reference_transcript.protein.index('*') + 1]
40
+
37
41
  tl = TranscriptLibrary(reference_transcript, m)
38
42
  central_pos = m.central_position
39
43
 
@@ -71,6 +75,7 @@ def oncosplice_pipeline(
71
75
  pd.Series({
72
76
  "reference_mrna": reference_transcript.mature_mrna.seq,
73
77
  "variant_mrna": variant_transcript.mature_mrna.seq,
78
+ "conservation_vector": onco.conservation_vector,
74
79
  }),
75
80
  onco.get_analysis_series(),
76
81
  ])
@@ -123,6 +128,10 @@ def max_splicing_delta(
123
128
  .generate_protein()
124
129
  )
125
130
 
131
+ # Truncate protein at first stop codon
132
+ if '*' in reference_transcript.protein:
133
+ reference_transcript.protein = reference_transcript.protein[:reference_transcript.protein.index('*') + 1]
134
+
126
135
  tl = TranscriptLibrary(reference_transcript, m)
127
136
  splicing_results = tl.predict_splicing(
128
137
  m.central_position, engine=splicing_engine, inplace=True
geney/splice_graph.py CHANGED
@@ -422,6 +422,10 @@ class SpliceSimulator:
422
422
  t.path_hash = _short_hash(tuple(donors + acceptors))
423
423
  t.generate_mature_mrna().generate_protein()
424
424
 
425
+ # Truncate protein at first stop codon
426
+ if '*' in t.protein:
427
+ t.protein = t.protein[:t.protein.index('*') + 1]
428
+
425
429
  # Filter out implausible IR paths (where cryptic sites compensate)
426
430
  if self._is_implausible_ir_path(t):
427
431
  continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geney
3
- Version: 1.4.41
3
+ Version: 1.4.42
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -0,0 +1,11 @@
1
+ geney/__init__.py,sha256=AIKhk1FPsnObK-GrBXU1T780KX0i1K-q34r4zh3ojok,993
2
+ geney/engines.py,sha256=9_oNsoluJsjdLC3cyWttjHF3cuQoy65FWgS4r7ehzek,14296
3
+ geney/oncosplice.py,sha256=rEVNhHugtzOvwicdjzRqbcyWG-KM0JIgvQa9Mpo23p4,18076
4
+ geney/pipelines.py,sha256=ply3zS5zgA-4I-vCRF0_bJmZ4CtIrzSSpUQOsh3AZmo,4469
5
+ geney/splice_graph.py,sha256=BnJDSOq3mePC0I0cFyfXyUyePANwhrk3LlBPoV1vzSs,24081
6
+ geney/transcripts.py,sha256=BBgyeqF4jeIiHaD_bXxgOTXz19kdUgjcPVo4ClpcSUg,2594
7
+ geney/variants.py,sha256=vjbiBH-duZ4TJZyXwXbQ_VmJxCFafjeDwLNTZg3ubSc,11832
8
+ geney-1.4.42.dist-info/METADATA,sha256=ZTuy2ydDiv2Pndu1R1TADe_3kA1FN7xbI51NdiZmQgs,972
9
+ geney-1.4.42.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
10
+ geney-1.4.42.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
11
+ geney-1.4.42.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- geney/__init__.py,sha256=nkhniqCNWJzrb7xHgTDFEXSvRVdggb9ZCJ7ih7HEYq8,966
2
- geney/engines.py,sha256=9_oNsoluJsjdLC3cyWttjHF3cuQoy65FWgS4r7ehzek,14296
3
- geney/oncosplice.py,sha256=eGQQl9ftmoFENMYBWoJtenKWmzyxR9N1of5cZst_bHQ,18014
4
- geney/pipelines.py,sha256=gsy-gmHIi260SC5MKQ9IBSE0wko8Tvd7IC3wj083mPQ,3996
5
- geney/splice_graph.py,sha256=PANtLUAQiz578NZwxVlTSgboetnToHnQSkYpT0zbi_w,23931
6
- geney/transcripts.py,sha256=BBgyeqF4jeIiHaD_bXxgOTXz19kdUgjcPVo4ClpcSUg,2594
7
- geney/variants.py,sha256=vjbiBH-duZ4TJZyXwXbQ_VmJxCFafjeDwLNTZg3ubSc,11832
8
- geney-1.4.41.dist-info/METADATA,sha256=zuzWKIEeHSaFr08eRUjq3ZSiloOepcCD_QRG5ifS8j0,972
9
- geney-1.4.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- geney-1.4.41.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
11
- geney-1.4.41.dist-info/RECORD,,