Rmomal / EMtree

Infers species direct association networks
https://rmomal.github.io/EMtree/
7 stars 2 forks source link

Fix bug using EMtree with a correlation matrix #1

Closed clementviolet closed 4 years ago

clementviolet commented 4 years ago

Hi !

Thanks for your work and this R package 😃 .

There was a small bug when I tried to use correlation matrix in EMtree(). If PLN.Cor was a matrix the R code tried to look for the vector containing the number of observation, as if it was stored in a PLN fit object.

I've added few tests to be sure my fix was working.

Rmomal commented 4 years ago

Hi, Thank you very much for noticing this mistake, and the great code! Hurray for open science.