geney 1.3.78__py2.py3-none-any.whl → 1.3.79__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/Transcript.py +1 -1
- geney/spliceai_utils.py +17 -17
- {geney-1.3.78.dist-info → geney-1.3.79.dist-info}/METADATA +1 -1
- {geney-1.3.78.dist-info → geney-1.3.79.dist-info}/RECORD +6 -6
- {geney-1.3.78.dist-info → geney-1.3.79.dist-info}/WHEEL +0 -0
- {geney-1.3.78.dist-info → geney-1.3.79.dist-info}/top_level.txt +0 -0
geney/Transcript.py
CHANGED
|
@@ -367,7 +367,7 @@ class Transcript:
|
|
|
367
367
|
Transcript or (protein: str, cons_vector: np.ndarray): The Transcript object if inplace=True, else the protein and cons_vector.
|
|
368
368
|
"""
|
|
369
369
|
if not self.protein_coding:
|
|
370
|
-
print("No protein can be generated without TIS/TTS.")
|
|
370
|
+
# print("No protein can be generated without TIS/TTS.")
|
|
371
371
|
return self if inplace else ("", np.array([]))
|
|
372
372
|
|
|
373
373
|
# Translate the ORF to protein
|
geney/spliceai_utils.py
CHANGED
|
@@ -6,10 +6,10 @@ import tensorflow as tf
|
|
|
6
6
|
import sys
|
|
7
7
|
|
|
8
8
|
# Check if GPU is available
|
|
9
|
-
if tf.config.list_physical_devices('GPU'):
|
|
10
|
-
|
|
11
|
-
else:
|
|
12
|
-
|
|
9
|
+
# if tf.config.list_physical_devices('GPU'):
|
|
10
|
+
# print("Running on GPU.")
|
|
11
|
+
# else:
|
|
12
|
+
# print("Running on CPU.")
|
|
13
13
|
|
|
14
14
|
# tf.config.threading.set_intra_op_parallelism_threads(1)
|
|
15
15
|
# tf.config.threading.set_inter_op_parallelism_threads(1)
|
|
@@ -18,21 +18,21 @@ else:
|
|
|
18
18
|
model_filenames = [f"models/spliceai{i}.h5" for i in range(1, 6)]
|
|
19
19
|
|
|
20
20
|
# Load each model using the package resources.
|
|
21
|
-
sai_models = [load_model(resources.files("spliceai").joinpath(filename))
|
|
22
|
-
|
|
21
|
+
# sai_models = [load_model(resources.files("spliceai").joinpath(filename))
|
|
22
|
+
# for filename in model_filenames]
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
if sys.platform == 'darwin':
|
|
25
|
+
sai_paths = ('models/spliceai{}.h5'.format(x) for x in range(1, 6))
|
|
26
|
+
# sai_models = [load_model(resource_filename('spliceai', x)) for x in sai_paths]
|
|
27
|
+
sai_models = [load_model(resources.files('spliceai').joinpath(f)) for f in sai_paths]
|
|
28
|
+
else:
|
|
29
|
+
sai_paths = ['/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai1.h5',
|
|
30
|
+
'/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai2.h5',
|
|
31
|
+
'/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai3.h5',
|
|
32
|
+
'/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai4.h5',
|
|
33
|
+
'/tamir2/nicolaslynn/home/miniconda3/lib/python3.10/site-packages/spliceai/models/spliceai5.h5']
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
sai_models = [load_model(f) for f in sai_paths]
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def one_hot_encode(seq):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
geney/Fasta_segment.py,sha256=99HxNGNh_MfdVW6hhtlb1vOn7eSmT7oFoEfHDFMxG8w,11275
|
|
2
2
|
geney/Gene.py,sha256=2eznhavDoO4rktisy3U0uz480OsktppEwH5pxC2qoog,7083
|
|
3
3
|
geney/SeqMats.py,sha256=9-eJnfU2w3LGc0XvVvFEO_QrBneTkC6xkZKDfTcEw5o,19282
|
|
4
|
-
geney/Transcript.py,sha256=
|
|
4
|
+
geney/Transcript.py,sha256=xI611PUr311cVgvzhXFoK8nXlFRnaZ8qbdGabTUY9hE,14501
|
|
5
5
|
geney/__init__.py,sha256=eBdDl42N6UhcYeZDjOnv199Z88fI5_8Y6xW8447OKXM,755
|
|
6
6
|
geney/_mutation_utils.py,sha256=dHssUsnii_mf-wuRoMmF13UlD7k3ml_VwQMItTYnXpU,1132
|
|
7
7
|
geney/allele_linkage.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -15,7 +15,7 @@ geney/oncosplice.py,sha256=7KpuvIMLEZ4VGPIOw-UUwiPGfQgeFVrapqNt6jLreRA,32308
|
|
|
15
15
|
geney/pangolin_utils.py,sha256=9jdBXlOcRaUdfi-UpUxHA0AkTMZkUF-Lt7HVZ1nEm3s,2973
|
|
16
16
|
geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
|
|
17
17
|
geney/seqmat_utils.py,sha256=wzb3PX5it5bpIFQvcxyzlxfhoJTbHHbsjg0rzh05iVs,19753
|
|
18
|
-
geney/spliceai_utils.py,sha256=
|
|
18
|
+
geney/spliceai_utils.py,sha256=nyBnLdYs1rB-duA9lfJYM9Q2xNlvZA3I_sCJ1z5WjFw,3294
|
|
19
19
|
geney/splicing_utils.py,sha256=UkG2YphjLNUYsv3o3RGUTW1ScHbEMOLL2M_7WbgDVME,47466
|
|
20
20
|
geney/survival_utils.py,sha256=KnAzEviMuXh6SnVXId9PgsFLSbgkduTvYoIthxN7FPA,6886
|
|
21
21
|
geney/tcga_utils.py,sha256=uJhVnTbTysj0XrEw_YeDKRSLexsqgBLYQdhl7_hnr64,17611
|
|
@@ -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.79.dist-info/METADATA,sha256=4vRmkHDHpg91Ci8mbzJHfrvx0xxpeXs_jL7YBXYhDjU,990
|
|
29
|
+
geney-1.3.79.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.79.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.79.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|