geney 1.3.68__py2.py3-none-any.whl → 1.3.69__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/Gene.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import copy
2
+ import random
2
3
  from typing import Any, Dict, List, Tuple, Optional, Iterator, Union, TYPE_CHECKING
3
4
  from collections import Counter
4
5
  from . import unload_pickle, config
@@ -143,7 +144,8 @@ class Gene:
143
144
  tid = self.primary_transcript
144
145
 
145
146
  if tid is None:
146
- return Transcript()
147
+ tid = random.choice(list(self.transcripts.keys()))
148
+ return None #Transcript()
147
149
 
148
150
  if tid not in self.transcripts:
149
151
  raise AttributeError(f"Transcript '{tid}' not found in gene '{self.gene_name}'.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.3.68
3
+ Version: 1.3.69
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,5 +1,5 @@
1
1
  geney/Fasta_segment.py,sha256=99HxNGNh_MfdVW6hhtlb1vOn7eSmT7oFoEfHDFMxG8w,11275
2
- geney/Gene.py,sha256=nMWJjoQaiVFm2iRjoiq7ghZqnXtW0tJDcq2S0AyOIvY,6883
2
+ geney/Gene.py,sha256=oAdwuguD1qWMTrS158ApW4s3MRcb1ZJlinzVeCZcYwE,6966
3
3
  geney/SeqMats.py,sha256=9-eJnfU2w3LGc0XvVvFEO_QrBneTkC6xkZKDfTcEw5o,19282
4
4
  geney/Transcript.py,sha256=CpfxYkuCwFILozrtLuiWnlr1mRnMKn4o84HVJislgYs,14499
5
5
  geney/__init__.py,sha256=eBdDl42N6UhcYeZDjOnv199Z88fI5_8Y6xW8447OKXM,755
@@ -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.68.dist-info/METADATA,sha256=kREzXHGHU6MjvTQCSgq9o3csVnm28mktBzx8WeUYtX8,990
29
- geney-1.3.68.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
30
- geney-1.3.68.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
31
- geney-1.3.68.dist-info/RECORD,,
28
+ geney-1.3.69.dist-info/METADATA,sha256=TP1TKZ9MHD4j7Lwm7yDe7YpRcrKh3blSiBvmrmpxTmo,990
29
+ geney-1.3.69.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
30
+ geney-1.3.69.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
31
+ geney-1.3.69.dist-info/RECORD,,
File without changes