Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Alphafold3
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
RC Data Science
community-containers
Alphafold3
Commits
7e3067b8
Commit
7e3067b8
authored
6 months ago
by
Augustin Zidek
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused MsaToolResult.num_hits
PiperOrigin-RevId: 697929605
parent
899b16d8
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Cloned AlphaFold 3 repo into this one
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/alphafold3/data/tools/jackhmmer.py
+1
-5
1 addition, 5 deletions
src/alphafold3/data/tools/jackhmmer.py
src/alphafold3/data/tools/msa_tool.py
+0
-1
0 additions, 1 deletion
src/alphafold3/data/tools/msa_tool.py
src/alphafold3/data/tools/nhmmer.py
+1
-6
1 addition, 6 deletions
src/alphafold3/data/tools/nhmmer.py
with
2 additions
and
12 deletions
src/alphafold3/data/tools/jackhmmer.py
+
1
−
5
View file @
7e3067b8
...
@@ -137,12 +137,8 @@ class Jackhmmer(msa_tool.MsaTool):
...
@@ -137,12 +137,8 @@ class Jackhmmer(msa_tool.MsaTool):
logging
.
info
(
'
Limiting MSA depth to %d
'
,
self
.
max_sequences
)
logging
.
info
(
'
Limiting MSA depth to %d
'
,
self
.
max_sequences
)
break
break
a3m
.
append
(
f
'
>
{
name
}
\n
{
seq
}
'
)
a3m
.
append
(
f
'
>
{
name
}
\n
{
seq
}
'
)
num_hits
=
len
(
a3m
)
a3m
=
'
\n
'
.
join
(
a3m
)
a3m
=
'
\n
'
.
join
(
a3m
)
return
msa_tool
.
MsaToolResult
(
return
msa_tool
.
MsaToolResult
(
target_sequence
=
target_sequence
,
target_sequence
=
target_sequence
,
a3m
=
a3m
,
e_value
=
self
.
e_value
a3m
=
a3m
,
e_value
=
self
.
e_value
,
num_hits
=
num_hits
,
)
)
This diff is collapsed.
Click to expand it.
src/alphafold3/data/tools/msa_tool.py
+
0
−
1
View file @
7e3067b8
...
@@ -21,7 +21,6 @@ class MsaToolResult:
...
@@ -21,7 +21,6 @@ class MsaToolResult:
target_sequence
:
str
target_sequence
:
str
e_value
:
float
e_value
:
float
a3m
:
str
a3m
:
str
num_hits
:
int
class
MsaTool
(
Protocol
):
class
MsaTool
(
Protocol
):
...
...
This diff is collapsed.
Click to expand it.
src/alphafold3/data/tools/nhmmer.py
+
1
−
6
View file @
7e3067b8
...
@@ -160,17 +160,12 @@ class Nhmmer(msa_tool.MsaTool):
...
@@ -160,17 +160,12 @@ class Nhmmer(msa_tool.MsaTool):
logging
.
info
(
'
Limiting MSA depth to %d
'
,
self
.
_max_sequences
)
logging
.
info
(
'
Limiting MSA depth to %d
'
,
self
.
_max_sequences
)
break
break
a3m
.
append
(
f
'
>
{
name
}
\n
{
seq
}
'
)
a3m
.
append
(
f
'
>
{
name
}
\n
{
seq
}
'
)
num_hits
=
len
(
a3m
)
a3m
=
'
\n
'
.
join
(
a3m
)
a3m
=
'
\n
'
.
join
(
a3m
)
else
:
else
:
# Nhmmer returns an empty file if there are no hits.
# Nhmmer returns an empty file if there are no hits.
# In this case return only the query sequence.
# In this case return only the query sequence.
num_hits
=
1
a3m
=
f
'
>query
\n
{
target_sequence
}
'
a3m
=
f
'
>query
\n
{
target_sequence
}
'
return
msa_tool
.
MsaToolResult
(
return
msa_tool
.
MsaToolResult
(
target_sequence
=
target_sequence
,
target_sequence
=
target_sequence
,
e_value
=
self
.
_e_value
,
a3m
=
a3m
e_value
=
self
.
_e_value
,
a3m
=
a3m
,
num_hits
=
num_hits
,
)
)
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