-
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
func_score_to_gpm
works with scores for amino acid variants
#16
Conversation
Adds the aaSubs input to func_score_to_gpm, which allows you to make genotype phenotype maps with the average phenotype of identical amino acid mutants, rather than a genotype phenotype map with the phenotype of each individual barcoded mutant, where identical amino acid mutants could be in the map multiple times with different phenotypes.
@caelanradford: This commit doesn't seem to do what it says it does. In the new |
The documentation I wrote is not clear enough on this. You would only pass aaSubs as True if you generated a functional scores dataframe with the input |
In that case make the documentation clear. The docs need to stand alone and accurately and succinctly explain what that function does. Work on writing docs that do that. You should explain Also, note that in both docstrings you changed in this pull request, you are missing backticks on some references to the args. You also have a lot of typos in one of the docstrings. |
Also, you should re-name the pull request as it suffers from the same problem as the doc string: not really accurately describing the changes. |
@caelanradford: actually, now that I think about it more, I think all of this is overly complex. The In addition to this, improve the docs for |
Gets rid of `by_aa` option and uses amino acid substitutions to generate genotypes for all func_score dataframe inputs
Nice job on this and persevering through all the edits and comments. Just one tiny fine tuning for the docs: In the doc string, you refer to:
In this line dms_tools2/dms_tools2/codonvarianttable.py Line 2868 in 515c3da
If you instead make it:
sort of like in this line dms_tools2/dms_tools2/codonvarianttable.py Line 337 in 515c3da
You can read more about this here: https://stackoverflow.com/questions/34848253/whats-the-difference-in-behaviour-between-func-and-meth-roles-in-python-sph You can even build the docs to look yourself if you do That's the only remaining change I can see, then this should be ready to merge. |
func_score_to_gpm
works with scores for amino acid variants
Previously, the function would only be able to make a genotype phenotype map where each barcode variant is put into the map with its measured phenotype, regardless of whether some were actually the same amino acid mutant. Now, the function has the option to make a map where identical amino acid mutants are only put into the map once with their average phenotype.