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

In format_tree(args$tree) : NAs introduced by coercion #86

Open
jellyvanderwoude opened this issue Aug 26, 2021 · 0 comments
Open

In format_tree(args$tree) : NAs introduced by coercion #86

jellyvanderwoude opened this issue Aug 26, 2021 · 0 comments

Comments

@jellyvanderwoude
Copy link

Here's the code I'm running:

hogwash(pheno = AK,
geno = genotype3,
tree = phytree,
tree_type = "phylogram",
file_name = "gene_presence_absence_hogwash",
dir = "~",
perm = 10000,
fdr = 0.15,
bootstrap = 0.95)

and this is the error I get:

Error in if (num == Inf | num == -Inf) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In format_tree(args$tree) : NAs introduced by coercion

It seems like something's wrong with my tree... my tree is unrooted (expecting Hogwash to do it for me), I created my tree using PIRATE and read in my tree using treeio:

phytree <- read.tree("core-genome.treefile")

I've attached a screenshot of my tree file as plotted using ggtree:

Screen Shot 2021-08-26 at 1 36 36 PM

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

1 participant