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
c46a1436
Commit
c46a1436
authored
Sep 12, 2023
by
Konstantin Volzhenin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.5.1 model bug fix
parent
aa239099
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
5 deletions
+5
-5
__init__.py
senseppi/__init__.py
+1
-1
predict.py
senseppi/commands/predict.py
+1
-1
predict_string.py
senseppi/commands/predict_string.py
+1
-1
test.py
senseppi/commands/test.py
+1
-1
senseppi.ckpt
senseppi/default_model/senseppi.ckpt
+0
-0
setup.py
setup.py
+1
-1
No files found.
senseppi/__init__.py
View file @
c46a1436
__version__
=
"0.5.
0
"
__version__
=
"0.5.
1
"
__author__
=
"Konstantin Volzhenin"
from
.
import
model
,
commands
,
esm2_model
,
dataset
,
utils
,
network_utils
...
...
senseppi/commands/predict.py
View file @
c46a1436
...
...
@@ -68,7 +68,7 @@ def add_args(parser):
parser
.
_action_groups
[
0
]
.
add_argument
(
"fasta_file"
,
type
=
pathlib
.
Path
,
help
=
"FASTA file on which to extract the ESM2 representations and then test."
,
)
predict_args
.
add_argument
(
"--model_path"
,
type
=
str
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"senseppi.ckpt"
),
predict_args
.
add_argument
(
"--model_path"
,
type
=
str
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"
default_model"
,
"
senseppi.ckpt"
),
help
=
"A path to .ckpt file that contains weights to a pretrained model. If "
"None, the senseppi trained version is used."
)
predict_args
.
add_argument
(
"--pairs_file"
,
type
=
str
,
default
=
None
,
...
...
senseppi/commands/predict_string.py
View file @
c46a1436
...
...
@@ -187,7 +187,7 @@ def add_args(parser):
parser
.
_action_groups
[
0
]
.
add_argument
(
"genes"
,
type
=
str
,
nargs
=
"+"
,
help
=
"Name of gene to fetch from STRING database. Several names can be "
"typed (separated by whitespaces)."
)
string_pred_args
.
add_argument
(
"--model_path"
,
type
=
str
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"senseppi.ckpt"
),
string_pred_args
.
add_argument
(
"--model_path"
,
type
=
str
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"
default_model"
,
"
senseppi.ckpt"
),
help
=
"A path to .ckpt file that contains weights to a pretrained model. If "
"None, the senseppi trained version is used."
)
string_pred_args
.
add_argument
(
"-s"
,
"--species"
,
type
=
int
,
default
=
9606
,
...
...
senseppi/commands/test.py
View file @
c46a1436
...
...
@@ -44,7 +44,7 @@ def add_args(parser):
help
=
"FASTA file on which to extract the ESM2 "
"representations and then evaluate."
,
)
test_args
.
add_argument
(
"--model_path"
,
type
=
str
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"senseppi.ckpt"
),
test_args
.
add_argument
(
"--model_path"
,
type
=
str
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"
default_model"
,
"
senseppi.ckpt"
),
help
=
"A path to .ckpt file that contains weights to a pretrained model. If "
"None, the senseppi trained version is used."
)
test_args
.
add_argument
(
"-o"
,
"--output"
,
type
=
str
,
default
=
"test_metrics"
,
...
...
senseppi/senseppi.ckpt
→
senseppi/
default_model/
senseppi.ckpt
View file @
c46a1436
File moved
setup.py
View file @
c46a1436
...
...
@@ -13,7 +13,7 @@ setup(
url
=
""
,
license
=
"MIT"
,
packages
=
find_packages
(),
package_data
=
{
'senseppi'
:
[
'default_model/*'
]},
long_description
=
long_description
,
long_description_content_type
=
"text/markdown"
,
include_package_data
=
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