geney 1.2.25__py2.py3-none-any.whl → 1.2.27__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/seqmat_utils.py
CHANGED
|
@@ -145,8 +145,8 @@ class SeqMat:
|
|
|
145
145
|
return self.seqmat[:, start_pos:]
|
|
146
146
|
|
|
147
147
|
def subseq_prefix(self, end):
|
|
148
|
-
|
|
149
|
-
return self.seqmat[:, :
|
|
148
|
+
end_pos = np.where(self.seqmat[self.ROW_INDS] == end)[0][0]
|
|
149
|
+
return self.seqmat[:, :end_pos]
|
|
150
150
|
|
|
151
151
|
def inspect(self, pos, context=500):
|
|
152
152
|
condition = np.where(self.seqmat[1, :] == pos)[0][0]
|
|
@@ -161,16 +161,17 @@ class SeqMat:
|
|
|
161
161
|
|
|
162
162
|
temp = SeqMat().set_seqmat(self.subseq_suffix(tis_index))
|
|
163
163
|
# Ensure the sequence length is divisible by 3
|
|
164
|
-
seq_length = len(temp.seq)
|
|
164
|
+
# seq_length = len(temp.seq)
|
|
165
165
|
|
|
166
|
-
if seq_length % 3 != 0:
|
|
167
|
-
|
|
166
|
+
# if seq_length % 3 != 0:
|
|
167
|
+
# temp.seqmat = temp.seqmat[:, :-(seq_length % 3)] # Trim the extra nucleotides
|
|
168
168
|
|
|
169
169
|
if temp.seq[:3] == 'ATG':
|
|
170
170
|
for i in range(3, len(temp.seq), 3):
|
|
171
171
|
codon = temp.seq[i:i + 3]
|
|
172
172
|
if codon in ['TAA', 'TAG', 'TGA']:
|
|
173
173
|
index = temp.seqmat[1, i-3]
|
|
174
|
+
print(index / 3, codon)
|
|
174
175
|
return SeqMat().set_seqmat(temp.subseq_prefix(index)) # Not include the stop codon
|
|
175
176
|
|
|
176
177
|
# If no stop codon is found, return the full sequence
|
|
@@ -9,7 +9,7 @@ geney/mutation_utils.py,sha256=C-K8F8wyN5joI3ZuP-d7IMYTI43YPDXUc3IgAJ07o8Q,1546
|
|
|
9
9
|
geney/oncosplice.py,sha256=3jJc1-CWubH2ElHEjyQtsr9JYVmfPQEpq7EX-IfY-t8,20806
|
|
10
10
|
geney/pangolin_utils.py,sha256=S2uMjQnnxqWSnfuMaEjo-wq52DVKFiXt__L5VPdtzyU,2939
|
|
11
11
|
geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
|
|
12
|
-
geney/seqmat_utils.py,sha256=
|
|
12
|
+
geney/seqmat_utils.py,sha256=nqz5Ovj3IIb16YMrwqYd9EIWzLUA2qpGTkycZYVIqdY,16848
|
|
13
13
|
geney/spliceai_utils.py,sha256=gIGPC8u3J15A7EQrk2Elho5PbF9MmUUNopGGH-eEV8s,1873
|
|
14
14
|
geney/splicing_utils.py,sha256=pS3jZEpmnDkbT1jjaJh-O6I--Xm22e5dj-GQu7IAZSQ,15943
|
|
15
15
|
geney/survival_utils.py,sha256=2CAkC2LsspicHIdrqsiPnjgvpr5KHDUfLFFqnRbPJqs,5762
|
|
@@ -19,7 +19,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
19
19
|
geney/translation_initiation/tis_utils.py,sha256=iXrWVijyPe-f8I9rEVGdxNnXBrOGPoKFjmvaOEnQYNE,4446
|
|
20
20
|
geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
|
|
21
21
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
22
|
-
geney-1.2.
|
|
23
|
-
geney-1.2.
|
|
24
|
-
geney-1.2.
|
|
25
|
-
geney-1.2.
|
|
22
|
+
geney-1.2.27.dist-info/METADATA,sha256=9xI__6EWbE9WIxf0V_JCYGGqC5dPgujwQ6cLUMrmHrU,948
|
|
23
|
+
geney-1.2.27.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
24
|
+
geney-1.2.27.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
25
|
+
geney-1.2.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|