New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use new Isovar API but keep old logic for determining variant effects #186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally LGTM but a couple follow-up questions
test/test_shell_script.py
Outdated
@@ -30,7 +30,8 @@ | |||
"--mhc-predictor", "random", | |||
"--mhc-alleles", "H2-Kb,H2-Db", | |||
"--padding-around-mutation", "5", | |||
"--include-mismatches-after-variant" | |||
# TODO: figure out what happened to this argument in Isovar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found the new name, it's --count-mismatches-after-variant
"falls below this threshold. (default: %(default)s)")) | ||
|
||
vaccine_peptide_group.add_argument( | ||
"--num-epitopes-per-vaccine-peptide", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why rename this arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "per peptide" is too vague given that each epitope is itself a peptide and the longer sequence from which the vaccine peptides are drawn are also peptides.
vaxrank/core_logic.py
Outdated
@@ -211,26 +160,29 @@ def vaccine_peptides_for_variant( | |||
At this point, we know the variant has RNA support, as per the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is no longer true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
return [] | ||
|
||
variant = isovar_result.variant | ||
long_protein_fragment = MutantProteinFragment.from_isovar_result(isovar_result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why rename this to "long"? is the meaning different from before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to distinguish the 35mer source sequence from the 25mer vaccine peptides below
This PR is an attempt to make the smallest possible change while still bringing Vaxrank over to the new Isovar API. To do this I'm leaving some redundant code in Vaxrank for e.g. determine variant effects, which can be removed in a later PR.
Also:
run_vaxrank_from_parsed_args
, which simplifies testing--version
into ArgumentParser instanceImportantly this PR allows use of newer versions of pysam (>0.9), as requested in #179 and by several other people offline
After the next PR I'll start actually re-running PGV patients and comparing reports.