geney 1.2.66__py2.py3-none-any.whl → 1.2.68__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.
- geney/seqmat_utils.py +12 -1
- geney/splicing_utils.py +1 -1
- {geney-1.2.66.dist-info → geney-1.2.68.dist-info}/METADATA +1 -1
- {geney-1.2.66.dist-info → geney-1.2.68.dist-info}/RECORD +6 -6
- {geney-1.2.66.dist-info → geney-1.2.68.dist-info}/WHEEL +0 -0
- {geney-1.2.66.dist-info → geney-1.2.68.dist-info}/top_level.txt +0 -0
geney/seqmat_utils.py
CHANGED
|
@@ -279,7 +279,18 @@ class Gene:
|
|
|
279
279
|
@property
|
|
280
280
|
def primary_transcript(self):
|
|
281
281
|
if not hasattr(self, '_primary_transcript'):
|
|
282
|
-
|
|
282
|
+
primary_transcripts = [k for k, v in self.transcripts.items() if v.get('primary_transcript')]
|
|
283
|
+
if len(primary_transcripts) > 0:
|
|
284
|
+
self._primary_transcript = primary_transcripts[0]
|
|
285
|
+
return self._primary_transcript
|
|
286
|
+
|
|
287
|
+
primary_transcripts = [k for k, v in self.transcripts.items() if v.get('transcript_biotype') == 'protein_coding']
|
|
288
|
+
if len(primary_transcripts) > 0:
|
|
289
|
+
self._primary_transcript = primary_transcripts[0]
|
|
290
|
+
return self._primary_transcript
|
|
291
|
+
|
|
292
|
+
self._primar_transcript = None
|
|
293
|
+
|
|
283
294
|
return self._primary_transcript
|
|
284
295
|
|
|
285
296
|
|
geney/splicing_utils.py
CHANGED
|
@@ -175,7 +175,7 @@ def find_transcript_missplicing(transcript, mutations, context=5000, window=2500
|
|
|
175
175
|
length = var.seqmat.shape[-1]
|
|
176
176
|
center_index = var.rel_pos(center)
|
|
177
177
|
if center_index is None:
|
|
178
|
-
raise IndexError
|
|
178
|
+
raise IndexError("Center index must not be none... Issue with mutations... They must not be within the transcript.")
|
|
179
179
|
var_start_pad = max(0, total_context - center_index)
|
|
180
180
|
var_end_pad = max(0, total_context - (length - center_index))
|
|
181
181
|
|
|
@@ -9,9 +9,9 @@ geney/mutation_utils.py,sha256=C_kv2MB_L8LlhX3W2ooXjJ3uDoJ8zX1WeDtZKoBZJkI,1547
|
|
|
9
9
|
geney/oncosplice.py,sha256=eWgY2Lcj894UBFnIVhbxiVz5oqASHg-Ot1wFbjlJbI8,21857
|
|
10
10
|
geney/pangolin_utils.py,sha256=i5j5vEMCWOTIa1mRP2377BAhlUFZjHBzTQBips4lA_4,2934
|
|
11
11
|
geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
|
|
12
|
-
geney/seqmat_utils.py,sha256=
|
|
12
|
+
geney/seqmat_utils.py,sha256=wzb3PX5it5bpIFQvcxyzlxfhoJTbHHbsjg0rzh05iVs,19753
|
|
13
13
|
geney/spliceai_utils.py,sha256=PFIhTK8Ihrj-cv5tgRN0UFPYEmC4uxtqXSP9bBLnZRM,3077
|
|
14
|
-
geney/splicing_utils.py,sha256=
|
|
14
|
+
geney/splicing_utils.py,sha256=faXlBzxohKE02_Jlx6imIP1DKWhGrwQ6mrLldBlqkNU,19218
|
|
15
15
|
geney/survival_utils.py,sha256=KnAzEviMuXh6SnVXId9PgsFLSbgkduTvYoIthxN7FPA,6886
|
|
16
16
|
geney/tcga_utils.py,sha256=D_BNHm-D_K408dlcJm3hzH2c6QNFjQsKvUcOPiQRk7g,17612
|
|
17
17
|
geney/tis_utils.py,sha256=2makfGfVlDFVIbxzXE85AY9jmAjcNmxyIAxjvkRA5LY,7396
|
|
@@ -20,7 +20,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
20
20
|
geney/translation_initiation/tis_utils.py,sha256=AF3siFjuQH-Rs44EV-80zHdbxRMvN4woLFSHroWIETc,4448
|
|
21
21
|
geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
|
|
22
22
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
23
|
-
geney-1.2.
|
|
24
|
-
geney-1.2.
|
|
25
|
-
geney-1.2.
|
|
26
|
-
geney-1.2.
|
|
23
|
+
geney-1.2.68.dist-info/METADATA,sha256=Ircwpep9o4hX8T1-GhKK5WY2nw1rOkLPHJuHMLIPhTE,948
|
|
24
|
+
geney-1.2.68.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
25
|
+
geney-1.2.68.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
26
|
+
geney-1.2.68.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|