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
73801ef2
Commit
73801ef2
authored
5 months ago
by
paradoxe-tech
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes #9, #10
parent
f3f51a97
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model/featurize.py
+4
-4
4 additions, 4 deletions
model/featurize.py
with
4 additions
and
4 deletions
model/featurize.py
+
4
−
4
View file @
73801ef2
...
...
@@ -2,7 +2,7 @@ from pocketgen.utils.transforms import FeaturizeProteinAtom, FeaturizeLigandAtom
from
torch_geometric.transforms
import
Compose
import
torch
def
densify
(
data
:
dict
)
->
torch
.
Tensor
:
def
densify
(
features
:
dict
)
->
torch
.
Tensor
:
"""
Transforms a set of human-level features to a dense data tensor.
@param data (dict): a feature-dict returned by featurize()
...
...
@@ -12,7 +12,7 @@ def densify(data:dict) -> torch.Tensor:
return
Compose
([
FeaturizeProteinAtom
(),
FeaturizeLigandAtom
(),
])(
data
)
])(
features
)
def
featurize
(
...
...
@@ -36,8 +36,8 @@ def featurize(
"""
# concatenates the first 3 dicts (prot, lig and residue)
features
=
dict
({
f
"
p_
{
k
}
"
:
v
for
k
,
v
in
protein_dict
.
items
()},
**
{
f
"
l_
{
k
}
"
:
v
for
k
,
v
in
ligand_dict
.
items
()})
features
=
dict
({
f
"
p
rotein
_
{
k
}
"
:
v
for
k
,
v
in
protein_dict
.
items
()},
**
{
f
"
l
igand
_
{
k
}
"
:
v
for
k
,
v
in
ligand_dict
.
items
()})
features
.
update
(
residue_dict
)
# adds keys for simple variables
...
...
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