-
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
hande plot_network/get interactions more gracefully #259 #260
Conversation
Could you please also fix issue #244 within this PR? Not sure if there is by now a newer version than 12. Could you also write the changes and fixes into the |
… into fail_gracefully_259
… into fail_gracefully_259
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't fail gracefully yet (see comments). You can check if it works by turning off your internet.
R/analyse_functional_network.R
Outdated
string_db <- tryCatch( | ||
{ | ||
STRINGdb$new( | ||
version = version, | ||
species = organism_id, # Check on String database to get the right code (E.coli K12: 511145) | ||
score_threshold = score_threshold, # Cutoff score to consider something an interaction | ||
input_directory = "" | ||
) | ||
}, | ||
error = function(e) { | ||
e$message | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also catch the warning message here. You don't need to include the resulting message, but just not have it return the warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we print this part ("A warning occurred during the interaction network analysis: " or not?
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes looks good like this actually! Thanks! :)
… into fail_gracefully_259
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now! 🥇
closes #259
closes #244