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

division by zero for zero distances in tree #7

Open
ivanerill opened this issue Nov 23, 2018 · 1 comment
Open

division by zero for zero distances in tree #7

ivanerill opened this issue Nov 23, 2018 · 1 comment
Assignees
Labels

Comments

@ivanerill
Copy link
Member

If TF is present also as target species, the tree may contain zero-length branches, that may cause issues (division-by-zero error) during the phylogenetic weighting process.

@ivanerill
Copy link
Member Author

e.g.

~ INFO     Creating genome: Rhodanobacter_denitrificans_strain_2APBS1 [u'NC_020541.1']
~ INFO     Finished: create genomes
~ INFO     Identifying TF instance for (Rhodanobacter_sp__FW510_R12)
~ INFO     KZC39902.1
~ INFO     Identifying TF instance for (Rhodanobacter_sp__FW510_R10)
~ INFO     WP_082824058.1
~ INFO     Identifying TF instance for (Rhodanobacter_denitrificans_strain_2APBS1)
~ INFO     WP_015447723.1

Tree(rooted=True)
    Clade(branch_length=0, name='Root')
        Clade(branch_length=0.00231481481481, name='Inner1')
            Clade(branch_length=0.1875, name='Rhodanobacter_sp__FW510_R10')
            Clade(branch_length=0.127314814815, name='Inner2')
                Clade(branch_length=0.0, name='Rhodanobacter_denitrificans_strain_2APBS1')
                Clade(branch_length=0.0, name='LexA_Rhodanobacter_denitrificans')
        Clade(branch_length=0.189814814815, name='Rhodanobacter_sp__FW510_R12')

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

No branches or pull requests

2 participants