-
Notifications
You must be signed in to change notification settings - Fork 4
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
Some networks are not properly drawn in D3.jsy #6
Comments
Original comment by Marcel Ribeiro-Dantas (Bitbucket: mribeirodantas_, ). I'm checking the edgesList.miic.summary.txt for the job Hervé mentioned. It's the file that the make_json_graph.py function reads and generates the JSON for D3.js draw the graph. I was checking the v-structure height_cm -> gender <- coronary_disease. In the probability tab, we see a negative NI3 (NI3=-3.926), a v-structure, but the arrow from coronary_disease to gender is not properly drawn, though the one from height_cm is. By checking the edgesList.miic.summary.txt, I see the infoOrt variable for height_cm → gender is 2, as expected, but for coronary_disease → gender it’s 1. Therefore the issue is not when preparing the JSON file for the graph generation, but the writing of the edgesList.miic.summary.txt file, if I understood correctly the manpage for miic, that reads:
By checking the miic_run_analysis.R file, the only thing it does is to write to edgesList.miic.summary.txt the content of the field all.edges.summary, created by the miic function in the miic R package, as you can see below:
Therefore, the issue seems to be in the miic R package. |
Original comment by Marcel Ribeiro-Dantas (Bitbucket: mribeirodantas_, ). By @{5a295594f34f355105637e6e} : By Hervé: |
Original report by Marcel Ribeiro-Dantas (Bitbucket: mribeirodantas_, ).
Hervé noticed that some orientations are incorrectly drawn by D3.js. He pointed out, for example:
height_cm 0.500 1 body_surface_area_dubois_m2 1 0.697 bmi_kgperm -990.060 0
height_cm 0.500 0.963 gender 0.963 0.552 coronary_disease -3.926 0
body_surface_area_dubois_m2 1 0.697 bmi_kgperm 0.697 1 left_ventricule_stroke_volume_ml -1.284 0
This is a v-structure, but is not drawn as a v-structure in the graph.
The text was updated successfully, but these errors were encountered: