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
5b35f1b1
Commit
5b35f1b1
authored
Feb 07, 2024
by
Konstantin Volzhenin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.6.8 quick bugfix for tmp files in esm2
parent
31ab3524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
__init__.py
senseppi/__init__.py
+1
-1
esm2_model.py
senseppi/esm2_model.py
+1
-1
No files found.
senseppi/__init__.py
View file @
5b35f1b1
__version__
=
"0.6.
7
"
__version__
=
"0.6.
8
"
__author__
=
"Konstantin Volzhenin"
__author__
=
"Konstantin Volzhenin"
from
.
import
model
,
commands
,
esm2_model
,
dataset
,
utils
,
network_utils
from
.
import
model
,
commands
,
esm2_model
,
dataset
,
utils
,
network_utils
...
...
senseppi/esm2_model.py
View file @
5b35f1b1
...
@@ -122,7 +122,7 @@ def compute_embeddings(params):
...
@@ -122,7 +122,7 @@ def compute_embeddings(params):
params_esm
=
copy
(
params
)
params_esm
=
copy
(
params
)
try
:
try
:
current_time
=
str
(
datetime
.
now
())
.
replace
(
' '
,
'_'
)
current_time
=
str
(
datetime
.
now
())
.
replace
(
' '
,
'_'
)
params_esm
.
fasta_file
=
Path
(
current_time
+
'_'
+
str
(
params
.
fasta_file
)
.
replace
(
'fasta'
,
'tmp.fasta
'
))
params_esm
.
fasta_file
=
Path
(
str
(
params
.
fasta_file
)
.
replace
(
'fasta'
,
current_time
+
'.fasta.tmp
'
))
with
open
(
params_esm
.
fasta_file
,
'w'
)
as
f
:
with
open
(
params_esm
.
fasta_file
,
'w'
)
as
f
:
for
seq_id
in
seq_dict
.
keys
():
for
seq_id
in
seq_dict
.
keys
():
f
.
write
(
'>'
+
seq_id
+
'
\n
'
)
f
.
write
(
'>'
+
seq_id
+
'
\n
'
)
...
...
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