geney 1.3.60__py2.py3-none-any.whl → 1.3.61__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/SeqMats.py
CHANGED
|
@@ -358,6 +358,7 @@ class SeqMat:
|
|
|
358
358
|
return SeqMat(ref_seqmat)
|
|
359
359
|
|
|
360
360
|
def orf_seqmat(self, tis_index):
|
|
361
|
+
stop_index = None
|
|
361
362
|
if tis_index not in self.indices:
|
|
362
363
|
return SeqMat.from_seq({'seq': ''})
|
|
363
364
|
|
|
@@ -367,21 +368,17 @@ class SeqMat:
|
|
|
367
368
|
# temp = temp[:, temp[0, :] != 5]
|
|
368
369
|
# temp = SeqMat(temp) # .drop_indices()
|
|
369
370
|
# raw_seq = temp.seq # Extract the raw sequence
|
|
370
|
-
pattern = re.compile(r"
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
if
|
|
378
|
-
stop_index = match[0][-1] #.end()
|
|
379
|
-
else:
|
|
371
|
+
pattern = re.compile(r"TAA|TAG|TGA")
|
|
372
|
+
matches = pattern.finditer(raw_seq.seq) # Use finditer to get all matches
|
|
373
|
+
for m in matches:
|
|
374
|
+
if m.start() % 3 == 0:
|
|
375
|
+
stop_index = m.start()
|
|
376
|
+
break
|
|
377
|
+
|
|
378
|
+
if stop_index is None:
|
|
380
379
|
stop_index = len(raw_seq) - (len(raw_seq) % 3)
|
|
381
380
|
|
|
382
|
-
|
|
383
|
-
# assert (end_index+1) % 3 == 0, f"{end_index} is not a multiple of 3"
|
|
384
|
-
return SeqMat(raw_seq.seqmat[:, :end_index])
|
|
381
|
+
return SeqMat(raw_seq.seqmat[:, :stop_index])
|
|
385
382
|
|
|
386
383
|
def translate(self, tis_index):
|
|
387
384
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
geney/Fasta_segment.py,sha256=99HxNGNh_MfdVW6hhtlb1vOn7eSmT7oFoEfHDFMxG8w,11275
|
|
2
2
|
geney/Gene.py,sha256=nMWJjoQaiVFm2iRjoiq7ghZqnXtW0tJDcq2S0AyOIvY,6883
|
|
3
|
-
geney/SeqMats.py,sha256=
|
|
3
|
+
geney/SeqMats.py,sha256=ksS1JW3vDj-CRBpcy-K28UFZSfJaMuc-JNNM26T09us,19259
|
|
4
4
|
geney/Transcript.py,sha256=CpfxYkuCwFILozrtLuiWnlr1mRnMKn4o84HVJislgYs,14499
|
|
5
5
|
geney/__init__.py,sha256=eBdDl42N6UhcYeZDjOnv199Z88fI5_8Y6xW8447OKXM,755
|
|
6
6
|
geney/_mutation_utils.py,sha256=dHssUsnii_mf-wuRoMmF13UlD7k3ml_VwQMItTYnXpU,1132
|
|
@@ -25,7 +25,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
25
25
|
geney/translation_initiation/tis_utils.py,sha256=AF3siFjuQH-Rs44EV-80zHdbxRMvN4woLFSHroWIETc,4448
|
|
26
26
|
geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
|
|
27
27
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
28
|
-
geney-1.3.
|
|
29
|
-
geney-1.3.
|
|
30
|
-
geney-1.3.
|
|
31
|
-
geney-1.3.
|
|
28
|
+
geney-1.3.61.dist-info/METADATA,sha256=rlq6bBiPkvEkaJXDjwPijdHuGNVKSdkBXR5mgErxuws,990
|
|
29
|
+
geney-1.3.61.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.61.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.61.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|