Skip to content
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

About negative branches on NJ tree #26

Open
xiekunwhy opened this issue Jun 19, 2024 · 1 comment
Open

About negative branches on NJ tree #26

xiekunwhy opened this issue Jun 19, 2024 · 1 comment

Comments

@xiekunwhy
Copy link

Hi,

My question is not really aboat gotree, just want to know do you have any idea to deal with those negative distance branches on NJ tree?

Replace all negative value using 0, or all branches plus the smallest distances ?

Best,
Kun

@fredericlemoine
Copy link
Collaborator

Hi,

If it is required by your downstream analysis, you can replace negative branch lengths with 0:

gotree brlen setmin -l 0

However, it will potentially bias the distances between tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@fredericlemoine @xiekunwhy and others