geney 1.3.52__py2.py3-none-any.whl → 1.3.54__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
@@ -363,15 +363,16 @@ class SeqMat:
363
363
  raw_seq = temp.seq # Extract the raw sequence
364
364
  pattern = re.compile(r"(?:[NACGT]{3})*?(TAA|TAG|TGA)")
365
365
  # match = pattern.match(raw_seq)
366
- match = [(m.group(), m.start()) for m in re.finditer(r"(?:[NACGT]{3})*?(TAA|TAG|TGA)", raw_seq) if
367
- (m.start() + 1) % 3 == 0]
366
+ match = [(m.group(), m.start()+1) for m in re.finditer(r"(?:[NACGT]{3})*?(TAA|TAG|TGA)", raw_seq) if
367
+ (m.start()+1) % 3 == 0]
368
368
 
369
369
  if len(match) > 0:
370
370
  stop_index = match[0][-1] #.end()
371
371
  else:
372
- stop_index = len(raw_seq)
372
+ stop_index = len(raw_seq) - (len(raw_seq) % 3)
373
+
373
374
  end_index = stop_index
374
- assert (end_index+1) % 3 == 0, f"{end_index} is not a multiple of 3"
375
+ # assert (end_index+1) % 3 == 0, f"{end_index} is not a multiple of 3"
375
376
  return SeqMat(temp.seqmat[:, :end_index])
376
377
 
377
378
  def translate(self, tis_index):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.3.52
3
+ Version: 1.3.54
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -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=HlEPRlTLk2shbwbjWusU4ub_Cgh6cniJFmFalKyTqzw,19214
3
+ geney/SeqMats.py,sha256=AKR1EhyDhOaEhavrkXSrVjYsohB6Qvsq11Udy7SGwvs,19238
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.52.dist-info/METADATA,sha256=KArY3gKa1ctil7iHE0DCHK0F5gtuWOUfWOAcM3WwU5U,990
29
- geney-1.3.52.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
30
- geney-1.3.52.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
31
- geney-1.3.52.dist-info/RECORD,,
28
+ geney-1.3.54.dist-info/METADATA,sha256=LsSWWFwaNOC6ZybBz-WtvRe52StF82EzNHe3zjYg63Q,990
29
+ geney-1.3.54.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
30
+ geney-1.3.54.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
31
+ geney-1.3.54.dist-info/RECORD,,
File without changes