Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SENSE-PPI
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Konstantin Volzhenin
SENSE-PPI
Commits
ca28b017
Commit
ca28b017
authored
Aug 02, 2023
by
Konstantin Volzhenin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.2.1 changed name of the command "create_dataset". Mps block is put globally in __main__
parent
b73cbabe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
11 deletions
+6
-11
__main__.py
senseppi/__main__.py
+4
-1
__init__.py
senseppi/commands/__init__.py
+2
-2
create_dataset.py
senseppi/commands/create_dataset.py
+0
-0
predict.py
senseppi/commands/predict.py
+0
-2
predict_string.py
senseppi/commands/predict_string.py
+0
-2
test.py
senseppi/commands/test.py
+0
-2
train.py
senseppi/commands/train.py
+0
-2
No files found.
senseppi/__main__.py
View file @
ca28b017
...
...
@@ -3,6 +3,7 @@ import logging
import
torch
from
.commands
import
*
from
senseppi
import
__version__
from
senseppi.utils
import
block_mps
def
main
():
...
...
@@ -20,7 +21,7 @@ def main():
modules
=
{
'train'
:
train
,
'predict'
:
predict
,
'
string_dataset_create'
:
string_dataset_create
,
'
create_dataset'
:
create_dataset
,
'test'
:
test
,
'predict_string'
:
predict_string
}
...
...
@@ -36,6 +37,8 @@ def main():
if
params
.
device
==
'gpu'
:
torch
.
set_float32_matmul_precision
(
'high'
)
block_mps
(
params
)
logging
.
info
(
'Device used: {}'
.
format
(
params
.
device
))
params
.
func
(
params
)
...
...
senseppi/commands/__init__.py
View file @
ca28b017
__all__
=
[
'predict'
,
'train'
,
'string_dataset_create'
,
'test'
,
'predict_string'
]
\ No newline at end of file
__all__
=
[
'predict'
,
'train'
,
'create_dataset'
,
'test'
,
'predict_string'
]
\ No newline at end of file
senseppi/commands/
string_dataset_create
.py
→
senseppi/commands/
create_dataset
.py
View file @
ca28b017
File moved
senseppi/commands/predict.py
View file @
ca28b017
...
...
@@ -96,8 +96,6 @@ def main(params):
compute_embeddings
(
params
)
block_mps
(
params
)
logging
.
info
(
'Predicting...'
)
preds
=
predict
(
params
)
...
...
senseppi/commands/predict_string.py
View file @
ca28b017
...
...
@@ -31,8 +31,6 @@ def main(params):
params
.
fasta_file
=
fasta_file
compute_embeddings
(
params
)
block_mps
(
params
)
preds
=
predict
(
params
)
# open the actions tsv file as dataframe and add the last column with the predictions
...
...
senseppi/commands/test.py
View file @
ca28b017
...
...
@@ -71,8 +71,6 @@ def main(params):
compute_embeddings
(
params
)
block_mps
(
params
)
logging
.
info
(
'Evaluating...'
)
test_metrics
=
test
(
params
)[
0
]
...
...
senseppi/commands/train.py
View file @
ca28b017
...
...
@@ -14,8 +14,6 @@ def main(params):
compute_embeddings
(
params
)
block_mps
(
params
)
dataset
=
PairSequenceData
(
emb_dir
=
params
.
output_dir_esm
,
actions_file
=
params
.
pairs_file
,
max_len
=
params
.
max_len
,
labels
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment