Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
612fe5c8
Commit
612fe5c8
authored
7 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
Switch back to mean instead of robust_mean default
parent
a940a110
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mhcflurry/class1_affinity_predictor.py
+3
-1
3 additions, 1 deletion
mhcflurry/class1_affinity_predictor.py
with
3 additions
and
1 deletion
mhcflurry/class1_affinity_predictor.py
+
3
−
1
View file @
612fe5c8
...
@@ -707,7 +707,7 @@ class Class1AffinityPredictor(object):
...
@@ -707,7 +707,7 @@ class Class1AffinityPredictor(object):
throw
=
True
,
throw
=
True
,
include_individual_model_predictions
=
False
,
include_individual_model_predictions
=
False
,
include_percentile_ranks
=
True
,
include_percentile_ranks
=
True
,
centrality_measure
=
"
robust_
mean
"
):
centrality_measure
=
"
mean
"
):
"""
"""
Predict nM binding affinities. Gives more detailed output than `predict`
Predict nM binding affinities. Gives more detailed output than `predict`
method, including 5-95% prediction intervals.
method, including 5-95% prediction intervals.
...
@@ -748,6 +748,8 @@ class Class1AffinityPredictor(object):
...
@@ -748,6 +748,8 @@ class Class1AffinityPredictor(object):
raise
TypeError
(
"
peptides must be a list or array, not a string
"
)
raise
TypeError
(
"
peptides must be a list or array, not a string
"
)
if
isinstance
(
alleles
,
string_types
):
if
isinstance
(
alleles
,
string_types
):
raise
TypeError
(
"
alleles must be a list or array, not a string
"
)
raise
TypeError
(
"
alleles must be a list or array, not a string
"
)
if
allele
is
None
and
alleles
is
None
:
raise
ValueError
(
"
Must specify
'
allele
'
or
'
alleles
'
.
"
)
if
allele
is
not
None
:
if
allele
is
not
None
:
if
alleles
is
not
None
:
if
alleles
is
not
None
:
raise
ValueError
(
"
Specify exactly one of allele or alleles
"
)
raise
ValueError
(
"
Specify exactly one of allele or alleles
"
)
...
...
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