Repository navigation
Modify the calculation method of Nsite and Ssite in NG86 - #4556
Conversation
|
What do you think @zruan ? |
|
@JuseTiZ Would you have a reference showing that the transition/transversion rate ratio should be used? |
|
Note that the same code appears in the newer |
I consulted Ziheng Yang's 'Computational Molecular Evolution.' Specifically, in the second chapter, titled 'Models of amino acid and codon substitution,' under the section 'Estimation of synonymous and nonsynonymous substitution rates,' there is relevant information on this topic. It's indicated that sites with higher mutation rates should have higher Ssite and Nsite values. This is important to maintain a balance in their contribution to the overall calculations of dN and dS. I will add the same code in |
|
This seems to be a bug in which the @JuseTiZ can you please confirm that after the changes, the |
@zruan Below is a demonstration, where The output of this demonstration is as follows: |
|
It looks like after the modification, the output of the function matches with what are shown in the table. |
|
@zruan Should we accept this PR then? |
|
@mdehoon Yes, we should. Maybe we should update the numbers in unittest as well? |
|
@zruan The unit tests seem fine as is, as all tests passed. |
|
Thank you. |
Original author Zheng Ruan and contributors tracked by version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Benjamin Vaisvil (@bvaisvil) biopython#1613 - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Juse (@JuseTiZ) biopython#4556 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Micky Yun Chan (@michiboo) biopython#1983 - @morrme biopython#1172 (comment) - Neil P. (@npars) biopython#3937 - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sujan Dulal (@Dsujan) biopython#2430 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Zheng Ruan (@zruan) biopython#898 (comment)
Original author Zheng Ruan and contributors tracked by version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Benjamin Vaisvil (@bvaisvil) #1613 - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Juse (@JuseTiZ) #4556 - Michiel de Hoon (@mdehoon) #898 (comment) - Micky Yun Chan (@michiboo) #1983 - @morrme #1172 (comment) - Neil P. (@npars) #3937 - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sujan Dulal (@Dsujan) #2430 - Travis Wrightsman (@twrightsman) #898 (comment) - Zheng Ruan (@zruan) #898 (comment)

I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
If
krepresents the transition/transversion rate ratio, it seems thatkmay have been positioned incorrectly. If my understanding is incorrect, please feel free to correct it and close this pull request. Thank you!