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

Post processing with KINC.R changes formatting #182

Open
JohnHadish opened this issue Apr 23, 2021 · 1 comment
Open

Post processing with KINC.R changes formatting #182

JohnHadish opened this issue Apr 23, 2021 · 1 comment

Comments

@JohnHadish
Copy link
Collaborator

Here are the top 10 lines of the same network before and after going through the command kinc-filter-bias.R

image

Notice that the Similarity_Score and p_value are truncated from 8 to 4 significant digits. Notice that the r_squared is changed from nan to NA

@bentsherman
Copy link
Member

By default, C++ prints NaN values as "nan", whereas R prints "NA". Not sure if you can change R but in C++ you would have to check every float before printing which would be a pain. You can also just mark both "nan" and "NA" as nan tokens whenever you load the network (e.g. with pandas).

In C++ you can specify the print format for floats. But again, I don't think it's a big deal because both formats are valid and widely recognized in C++, Python, R, etc.

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

2 participants