geney 1.2.63__py2.py3-none-any.whl → 1.2.65__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
CHANGED
|
@@ -78,7 +78,15 @@ class SeqMat:
|
|
|
78
78
|
# :].max() >= mut_seqmat[
|
|
79
79
|
# self.ROW_INDS,
|
|
80
80
|
# :].max(), 'Mutation outside sequence'
|
|
81
|
-
assert np.all(np.isin(mut_seqmat[1, :], ref_seqmat[1, :])), "Mutation not in sequence"
|
|
81
|
+
# assert np.all(np.isin(mut_seqmat[1, :], ref_seqmat[1, :])), "Mutation not in sequence"
|
|
82
|
+
if not np.all(np.isin(mut_seqmat[1, :], ref_seqmat[1, :])):
|
|
83
|
+
if return_seqmat:
|
|
84
|
+
return ref_seqmat
|
|
85
|
+
|
|
86
|
+
return ''.join(self.vectorized_map_v2c(ref_seqmat[self.ROW_SEQ, :])), ref_seqmat[self.ROW_INDS,
|
|
87
|
+
:], ref_seqmat[
|
|
88
|
+
self.ROW_SUPERINDS,
|
|
89
|
+
:]
|
|
82
90
|
|
|
83
91
|
if np.any(mut_seqmat[self.ROW_SUPERINDS, :] > 0):
|
|
84
92
|
insertions = np.where(mut_seqmat[self.ROW_SUPERINDS, :] > 0)[0][0]
|
|
@@ -175,7 +183,10 @@ class SeqMat:
|
|
|
175
183
|
return SeqMat().set_seqmat(self.seqmat[:, max(0, condition - context):min(self.seqmat.shape[-1], condition + context + 1)])
|
|
176
184
|
|
|
177
185
|
def rel_pos(self, pos):
|
|
178
|
-
|
|
186
|
+
if pos in self.indices:
|
|
187
|
+
return np.where(self.seqmat[1, :] == pos)[0][0]
|
|
188
|
+
else:
|
|
189
|
+
return None
|
|
179
190
|
|
|
180
191
|
def orf_seqmat(self, tis_index):
|
|
181
192
|
if tis_index not in self.seqmat[1, :]:
|
|
@@ -9,7 +9,7 @@ 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=prWq3d3rPiyA_evQpY3FP5I-NQFuf7py7Ene8fNZ5DA,19271
|
|
13
13
|
geney/spliceai_utils.py,sha256=PFIhTK8Ihrj-cv5tgRN0UFPYEmC4uxtqXSP9bBLnZRM,3077
|
|
14
14
|
geney/splicing_utils.py,sha256=nYfdM-ppHS1kUrwzDcS6VHxpHGv3vVl4p7f_JWKZTL8,18831
|
|
15
15
|
geney/survival_utils.py,sha256=KnAzEviMuXh6SnVXId9PgsFLSbgkduTvYoIthxN7FPA,6886
|
|
@@ -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.65.dist-info/METADATA,sha256=hoHzB0bxM3dkqxFgl0xaTZCBphhIBu33bN6D-lgQHrw,948
|
|
24
|
+
geney-1.2.65.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
25
|
+
geney-1.2.65.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
26
|
+
geney-1.2.65.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|