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
bbba5e7d
Commit
bbba5e7d
authored
7 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
505899a5
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mhcflurry/train_allele_specific_models_command.py
+3
-12
3 additions, 12 deletions
mhcflurry/train_allele_specific_models_command.py
with
3 additions
and
12 deletions
mhcflurry/train_allele_specific_models_command.py
+
3
−
12
View file @
bbba5e7d
...
...
@@ -67,11 +67,6 @@ parser.add_argument(
metavar
=
"
N
"
,
default
=
50
,
help
=
"
Train models for alleles with >=N measurements.
"
)
parser
.
add_argument
(
"
--only-quantitative
"
,
action
=
"
store_true
"
,
default
=
False
,
help
=
"
Use only quantitative training data
"
)
parser
.
add_argument
(
"
--ignore-inequalities
"
,
action
=
"
store_true
"
,
...
...
@@ -155,17 +150,13 @@ def run(argv=sys.argv[1:]):
]
print
(
"
Subselected to 8-15mers: %s
"
%
(
str
(
df
.
shape
)))
if
args
.
only_quantitative
:
df
=
df
.
loc
[
df
.
measurement_type
==
"
quantitative
"
]
print
(
"
Subselected to quantitative: %s
"
%
(
str
(
df
.
shape
)))
if
args
.
ignore_inequalities
and
"
measurement_inequality
"
in
df
.
columns
:
print
(
"
Dropping measurement_inequality column
"
)
del
df
[
"
measurement_inequality
"
]
allele_counts
=
df
.
allele
.
value_counts
()
# Allele counts are in terms of quantitative data only.
allele_counts
=
(
df
.
loc
[
df
.
measurement_type
==
"
quantitative
"
].
allele
.
value_counts
())
if
args
.
allele
:
alleles
=
[
normalize_allele_name
(
a
)
for
a
in
args
.
allele
]
...
...
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