Skip to content
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

TopiaryPredictor #81

Merged
merged 3 commits into from Dec 21, 2017
Merged

TopiaryPredictor #81

merged 3 commits into from Dec 21, 2017

Conversation

iskandr
Copy link
Contributor

@iskandr iskandr commented Dec 20, 2017

We currently have two top-level functions called predict_epitopes_from_variants and predict_epitopes_from_effects with a very large number of arguments. Creating another top-level function (e.g. to predict from protein changes without genomic variants) would require duplicating a lot of thing long argument list. To make it easier to add features in the future I'm making a TopiaryPredictor object which holds properties shared between different top-level methods.


This change is Reviewable

…having to pass very large number of arguments
@coveralls
Copy link

coveralls commented Dec 20, 2017

Coverage Status

Coverage increased (+0.3%) to 87.556% when pulling cb77980 on TopiaryPredictor-object into a90625c on master.

Copy link
Contributor

@julia326 julia326 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly LGTM, couple minor things

expressed above this threshold.

transcript_expression_threshold : float, optional
If transcript_expression_dict is given, only keep effects on
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to rephrase this docstring so that you don't need to search for what transcript_expression_dict is?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly rephrased


padding_around_mutation : int
How many residues surrounding a mutation to consider including in a
candidate epitope. Default is the minimum size necessary for epitope
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this default set? In the constructor you just keep the passed-in value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified the default by moving check_padding_around_mutation call to __init__.

----------
effects : Varcode.EffectCollection

padding_around_mutation : int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is no longer a param here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted

@coveralls
Copy link

coveralls commented Dec 21, 2017

Coverage Status

Coverage increased (+0.3%) to 87.528% when pulling b6654a4 on TopiaryPredictor-object into a90625c on master.

@iskandr iskandr merged commit f00a582 into master Dec 21, 2017
@iskandr iskandr deleted the TopiaryPredictor-object branch February 8, 2018 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants