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

hande plot_network/get interactions more gracefully #259 #260

Merged
merged 13 commits into from
Jul 12, 2024

Conversation

elena-krismer
Copy link
Collaborator

@elena-krismer elena-krismer commented Jul 10, 2024

closes #259
closes #244

@jpquast
Copy link
Owner

jpquast commented Jul 10, 2024

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 NEWS.md file.

Copy link
Owner

@jpquast jpquast left a 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 Show resolved Hide resolved
R/analyse_functional_network.R Outdated Show resolved Hide resolved
R/analyse_functional_network.R Outdated Show resolved Hide resolved
Comment on lines 159 to 170
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
}
Copy link
Owner

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.

Copy link
Collaborator Author

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?
:)

Copy link
Owner

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! :)

@jpquast jpquast self-requested a review July 12, 2024 11:12
Copy link
Owner

@jpquast jpquast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! 🥇

@jpquast jpquast merged commit 1826a6d into developer Jul 12, 2024
6 checks passed
@jpquast jpquast deleted the fail_gracefully_259 branch October 30, 2024 09:36
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

Successfully merging this pull request may close these issues.

2 participants