KlausVigo / phangorn

Phylogenetic analysis in R
http://klausvigo.github.io/phangorn/
203 stars 38 forks source link

Consistency Index error #173

Open kr3118 opened 2 months ago

kr3118 commented 2 months ago

Hi,

I am using R 4.3.3 on Windows 11. I am trying to collate a table of CI values for different tree/alignment combinations. I inferred trees using a "normal" MSA and a weighted MSA in which patterns are duplicated based on the site reliability. When I try to use the CI(tree, data) function, I get the error: "Error in fit.sankoffNew(tree, data, cost, returnData = site) : INTEGER() can only be applied to a 'integer', not a 'NULL'", but only for the trees inferred using the "normal" MSA. I don't see issues with any other combination. Would you be able to help?

KlausVigo commented 1 month ago

Dear @kr3118, is it possible to send me the data / tree so that I can reproduce the error? Kind regards, Klaus