Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Evry-Paris-Saclay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Software Tools
Evry-Paris-Saclay
Commits
ad61b0d5
Commit
ad61b0d5
authored
5 months ago
by
Victor ROBERT LAMBRECHT
Browse files
Options
Downloads
Patches
Plain Diff
fixed minor issues
parent
fc425ffa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.py
+2
-2
2 additions, 2 deletions
main.py
model/Model.py
+4
-4
4 additions, 4 deletions
model/Model.py
with
6 additions
and
6 deletions
main.py
+
2
−
2
View file @
ad61b0d5
...
...
@@ -8,7 +8,7 @@ if __name__ == "__main__":
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"
-d
"
,
"
--device
"
,
type
=
str
,
default
=
"
cuda:0
"
,
help
=
"
Set the device (cpu or cuda:0)
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
type
=
str
,
default
=
"
./results
/mutants
"
,
help
=
"
Set the path for the output directory
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
type
=
str
,
default
=
"
./results
"
,
help
=
"
Set the path for the output directory
"
)
parser
.
add_argument
(
"
-v
"
,
"
--verbose
"
,
type
=
int
,
choices
=
[
0
,
1
,
2
],
default
=
1
,
help
=
"
Set the verbosity between 0 and 2
"
)
parser
.
add_argument
(
"
--receptor
"
,
type
=
str
,
required
=
True
,
help
=
"
Set the receptor filepath
"
)
parser
.
add_argument
(
"
--ligand
"
,
type
=
str
,
required
=
True
,
help
=
"
Set the ligand filepath
"
)
...
...
@@ -30,7 +30,7 @@ if __name__ == "__main__":
flint
.
input
(
args
.
receptor
,
args
.
ligand
)
# begin the inference / generate mutants
flint
.
generate
()
#
flint.generate()
# output the results and write the summary file
flint
.
results
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
model/Model.py
+
4
−
4
View file @
ad61b0d5
...
...
@@ -150,7 +150,7 @@ class Model:
# well-predicted AA on total mask redisue
# root mean squared deviation (RMSD)
aa_ratio
,
rmsd
,
attend_logits
=
self
.
model
.
generate
(
batch
,
output_folder
=
os
.
path
.
join
(
self
.
outputdir
,
f
"
batch_
{
b
}
"
)
batch
,
target_path
=
os
.
path
.
join
(
self
.
outputdir
,
f
"
batch_
{
b
}
"
)
)
shutil
.
copyfile
(
self
.
sources
[
0
],
os
.
path
.
join
(
self
.
outputdir
,
f
"
batch_
{
b
}
"
,
f
"
{
b
}
_orig_whole.pdb
"
))
...
...
@@ -166,7 +166,7 @@ class Model:
write results in a summary file, along with all generated PDBs.
@return (Model): the instance of Model, for chainability purposes.
"""
# initialize the resulting summary TSV
summary
=
"
ID
\t
delta_G
\t
Kd
\t
mutations (AA)
\n
"
...
...
@@ -175,7 +175,7 @@ class Model:
for
b
in
range
(
self
.
_nbatch
()):
for
i
in
range
(
self
.
size
):
receptor_path
=
os
.
path
.
join
(
self
.
outputdir
,
f
"
batch_
{
b
}
"
,
f
"
{
i
}
.pdb
"
)
receptor_path
=
os
.
path
.
join
(
self
.
outputdir
,
f
"
batch_
{
b
}
"
,
f
"
{
i
}
_whole
.pdb
"
)
ligand_path
=
os
.
path
.
join
(
self
.
outputdir
,
f
"
batch_
{
b
}
"
,
f
"
{
i
}
.sdf
"
)
# compute the docking window around ligand
...
...
@@ -224,4 +224,4 @@ class Model:
"""
os
.
makedirs
(
self
.
outputdir
,
exist_ok
=
True
)
return
len
(
os
.
listdir
(
self
.
outputdir
))
\ No newline at end of file
return
len
([
f
for
f
in
os
.
listdir
(
self
.
outputdir
)
if
os
.
path
.
isdir
(
os
.
path
.
join
(
self
.
outputdir
,
f
))])
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment