geney 1.3.29__py2.py3-none-any.whl → 1.3.30__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/Gene.py CHANGED
@@ -138,6 +138,9 @@ class Gene:
138
138
  if tid is None:
139
139
  tid = self.primary_transcript
140
140
 
141
+ if tid is None:
142
+ return Transcript()
143
+
141
144
  if tid not in self.transcripts:
142
145
  raise AttributeError(f"Transcript '{tid}' not found in gene '{self.gene_name}'.")
143
146
 
@@ -170,6 +173,12 @@ class Gene:
170
173
  self._primary_transcript = protein_coding[0]
171
174
  return self._primary_transcript
172
175
 
176
+ # # Fallback 2: find a proitein coding transcript that is not fully defined
177
+ # protein_coding = [k for k, v in self.transcripts.items() if v.get('transcript_biotype') == 'protein_coding_CDS_not_defined']
178
+ # if protein_coding:
179
+ # self._primary_transcript = protein_coding[0]
180
+ # return self._primary_transcript
181
+
173
182
  # No primary or protein-coding transcript found
174
183
  self._primary_transcript = None
175
184
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.3.29
3
+ Version: 1.3.30
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=JGWtfA6-d1W3I9YRASwaF8vaZ6CCuY0KEawQNdloIqY,6259
2
+ geney/Gene.py,sha256=1pqKI3hGZndi7VY4j66ObhJjnz8YiNtBLGJTIHWVujA,6670
3
3
  geney/SeqMats.py,sha256=aLpqd7RJSEU07jdPXpbtZPeb2D9BxrZuW6BTkcXpNE4,18819
4
4
  geney/Transcript.py,sha256=eRZXVVxDVBbv0l385bnAOBFRBSzBwppXcbBq8KXkwlo,14443
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.29.dist-info/METADATA,sha256=Chxu6iycgZPwhUI1X7-VrCdFoZC3TQqF3MMnX6SS9Ps,990
29
- geney-1.3.29.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
30
- geney-1.3.29.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
31
- geney-1.3.29.dist-info/RECORD,,
28
+ geney-1.3.30.dist-info/METADATA,sha256=ZS6Ft5TJYV5WFTOM47ny7m7eSA76C2EmCEMD2yuBhcQ,990
29
+ geney-1.3.30.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
30
+ geney-1.3.30.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
31
+ geney-1.3.30.dist-info/RECORD,,
File without changes