Dear Dr. Schliep,
I hope this message finds you well.
I am currently using the phangorn package to perform a parsimony analysis on a dataset of Clematis sequences. I have encountered an issue while attempting to apply character weights using the optim.parsimony function.
Here is the code snippet I used to set the weights:
Cweight <- c(13.54, 1.81, 1.32, 4.30, 3.80, 1.07, 2.68, 1.16, 1.50, 2.64,
4.47, 1.96, 4.08, 9.12, 6.74, 1.31, 0.83, 1.75, 8.48, 2.36,
1.43, 1.73, 2.67, 1.13, 3.39, 1.09, 3.47, 0.81, 1.39, 2.65,
1.94, 1.09, 2.27)
parsimony_tree_weight <- optim.parsimony(nj_tree, Clematis_seq, weight = Cweight)
The analysis runs without errors, but I noticed that the results do not differ from those obtained without applying the weights. This led me to wonder if I am correctly applying the character weights, or if there is an alternative approach I should consider.
Could you please confirm whether my current use of the weight parameter in optim.parsimony is correct? If not, I would greatly appreciate any guidance or alternative methods you might suggest for incorporating character weights in parsimony analysis using phangorn.
Thank you very much for your time and for developing such a valuable tool for the community.
Best regards,
Xinru
Huazhong Agriculture Uuiversity
Dear Dr. Schliep,
I hope this message finds you well.
I am currently using the
phangornpackage to perform a parsimony analysis on a dataset of Clematis sequences. I have encountered an issue while attempting to apply character weights using theoptim.parsimonyfunction.Here is the code snippet I used to set the weights:
The analysis runs without errors, but I noticed that the results do not differ from those obtained without applying the weights. This led me to wonder if I am correctly applying the character weights, or if there is an alternative approach I should consider.
Could you please confirm whether my current use of the
weightparameter inoptim.parsimonyis correct? If not, I would greatly appreciate any guidance or alternative methods you might suggest for incorporating character weights in parsimony analysis usingphangorn.Thank you very much for your time and for developing such a valuable tool for the community.
Best regards,
Xinru
Huazhong Agriculture Uuiversity