Skip to content

ENH: attached rate and motif parameters to cogent3 tree object #49

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

Merged
merged 15 commits into from
Sep 27, 2024

Conversation

YapengLang
Copy link
Collaborator

#27

@YapengLang YapengLang requested a review from rmcar17 August 23, 2024 08:46
@rmcar17
Copy link
Collaborator

rmcar17 commented Aug 26, 2024

@YapengLang could you add a test which checks for the parameters when build_tree/fit_tree are called?

@YapengLang
Copy link
Collaborator Author

@YapengLang could you add a test which checks for the parameters when build_tree/fit_tree are called?

Sure, will do.

YapengLang added a commit to YapengLang/piqtree2 that referenced this pull request Aug 26, 2024
YapengLang added a commit to YapengLang/piqtree2 that referenced this pull request Aug 26, 2024
YapengLang added a commit to YapengLang/piqtree2 that referenced this pull request Aug 26, 2024
@rmcar17 rmcar17 requested a review from GavinHuttley August 27, 2024 01:36
@rmcar17 rmcar17 added the enhancement New feature or request label Aug 27, 2024
@rmcar17 rmcar17 added this to the version 0.4 milestone Aug 27, 2024
@rmcar17 rmcar17 linked an issue Aug 27, 2024 that may be closed by this pull request
Copy link
Member

@GavinHuttley GavinHuttley left a comment

Choose a reason for hiding this comment

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

nice one! few changes, clearly need to understand that numerical issue

Copy link
Member

@GavinHuttley GavinHuttley left a comment

Choose a reason for hiding this comment

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

Thanks for the revisions! The test failures due to the float comparisons are all ~1e-6. If you set the tolerance to 1e-5 do they all pass? That level of tolerance for a parameter estimate on limited data seems reasonable.

@YapengLang
Copy link
Collaborator Author

YapengLang commented Sep 26, 2024

Thanks for the revisions! The test failures due to the float comparisons are all ~1e-6. If you set the tolerance to 1e-5 do they all pass? That level of tolerance for a parameter estimate on limited data seems reasonable.

hi @GavinHuttley , setting abs = 1e-5 or 1e-6 does not solve. The largest difference arises from the GTR fit, where one rate estimate is 3.9724, but the expected value is around 3.9915.

Alternatively, I can try setting rel = 1e-2. This would allow the GTR fit to pass with 3.9724 == 3.9915 ± 4.0e-02, and the other fits would also pass (please see commit 700f398).

@GavinHuttley
Copy link
Member

Thanks for clarifying @YapengLang !

Copy link
Member

@GavinHuttley GavinHuttley left a comment

Choose a reason for hiding this comment

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

Looks good!

@rmcar17 rmcar17 enabled auto-merge (rebase) September 27, 2024 05:24
@rmcar17
Copy link
Collaborator

rmcar17 commented Sep 27, 2024

Thanks @YapengLang, it will auto-merge once the tests all pass!

@rmcar17 rmcar17 merged commit b2e1042 into iqtree:main Sep 27, 2024
15 checks passed
rmcar17 pushed a commit that referenced this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants