geney 1.2.23__py2.py3-none-any.whl → 1.2.24__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/pangolin_utils.py CHANGED
@@ -12,6 +12,9 @@ device = torch.device('cpu')
12
12
  if sys.platform == 'darwin':
13
13
  device = torch.device("mps") if torch.backends.mps.is_available() else torch.device("cpu")
14
14
 
15
+ if sys.platform == 'linux':
16
+ device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
17
+
15
18
 
16
19
  for i in pang_model_nums:
17
20
  for j in range(1, 6):
@@ -57,8 +60,8 @@ def pangolin_predict_probs(true_seq, models):
57
60
  seq = pang_one_hot_encode(seq).T
58
61
  seq = torch.from_numpy(np.expand_dims(seq, axis=0)).float()
59
62
 
60
- if torch.cuda.is_available():
61
- seq = seq.to(torch.device("cuda"))
63
+ # if torch.cuda.is_available():
64
+ seq = seq.to(torch.device("cuda"))
62
65
 
63
66
  scores = []
64
67
  for j, model_num in enumerate(model_nums):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.2.23
3
+ Version: 1.2.24
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -23,13 +23,10 @@ Requires-Dist: spliceai
23
23
  Requires-Dist: biopython==1.81
24
24
  Requires-Dist: gtfparse==1.3.0
25
25
  Requires-Dist: sh==2.0.6
26
- Requires-Dist: termplotlib==0.3.9
27
26
  Requires-Dist: torch
28
27
  Requires-Dist: lifelines
29
28
  Requires-Dist: notebook
30
29
  Requires-Dist: matplotlib
31
- Requires-Dist: dask[complete]
32
- Requires-Dist: dask-jobqueue
33
30
  Requires-Dist: gffutils
34
31
  Requires-Dist: pyfastx
35
32
 
@@ -7,7 +7,7 @@ geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
7
7
  geney/immune_utils.py,sha256=ZRni5ttrhpYBnmNr0d0ZatIbNPYs4nmQuoUO00SpsS4,5271
8
8
  geney/mutation_utils.py,sha256=C-K8F8wyN5joI3ZuP-d7IMYTI43YPDXUc3IgAJ07o8Q,1546
9
9
  geney/oncosplice.py,sha256=3jJc1-CWubH2ElHEjyQtsr9JYVmfPQEpq7EX-IfY-t8,20806
10
- geney/pangolin_utils.py,sha256=Se4lahRI2bvPwf8pHsSiAZZHfx9Re7PERFtx7uNTqSw,2824
10
+ geney/pangolin_utils.py,sha256=S2uMjQnnxqWSnfuMaEjo-wq52DVKFiXt__L5VPdtzyU,2939
11
11
  geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
12
12
  geney/seqmat_utils.py,sha256=4MiN6rGeQMfWK6bXOHGddxBffx8v4sT1THkZe-AceXE,15611
13
13
  geney/spliceai_utils.py,sha256=BiTRIfrovX9qo9xup6bFWp0qkvmW9NVPY98Zw8-OaL0,1891
@@ -19,7 +19,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
19
19
  geney/translation_initiation/tis_utils.py,sha256=iXrWVijyPe-f8I9rEVGdxNnXBrOGPoKFjmvaOEnQYNE,4446
20
20
  geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
21
21
  geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
22
- geney-1.2.23.dist-info/METADATA,sha256=dEEB92zqGKpInPwVwtG-ybADWYfyaTUi0xCZxsogzf4,1041
23
- geney-1.2.23.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
24
- geney-1.2.23.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
25
- geney-1.2.23.dist-info/RECORD,,
22
+ geney-1.2.24.dist-info/METADATA,sha256=sJGrKawFcaFyF1QwLOHn7dNYeznt5f2fKL7NDZvqqq8,948
23
+ geney-1.2.24.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
24
+ geney-1.2.24.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
25
+ geney-1.2.24.dist-info/RECORD,,
File without changes