-
Notifications
You must be signed in to change notification settings - Fork 20
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
added pseudocount to raw codon counts in syn_selection_by_codon
#40
Conversation
@frances: You should make several changes to this:
|
Pseudocount is now added after calculating Fisher P-values, for manual calculation of odds ratios only.
Overlooked second pseudocount addition that led to failed doctest.
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.
@jbloom, @fwelsh: Looks good to me! You might consider setting a default value of the psuedocounts, especially if you think that 0.5 is going to be the best value for the majority of use cases. You can do this by changing https://github.com/jbloomlab/dms_tools2/blob/syn_selection_updates/dms_tools2/syn_selection.py#L16 to def syn_selection_by_codon(counts_pre, counts_post, pseudocount=0.5):
Also, very small note, but I don't think you need the parenthesis around df
in the function return statement. https://github.com/jbloomlab/dms_tools2/blob/syn_selection_updates/dms_tools2/syn_selection.py#L157
Sorry I didn't notice that, but we should be set now! |
No description provided.