Return detected errors in the input data
Throws an error in case errors have been passed to the function. Messages describing the detected errors are printed.
return_errors(errors)
errors
: [string] Character string vector containing error messages.No return value, writes error messages to console
data(layers_example) data(metabolite_protein_interactions) data(drug_gene_interactions) data all_layers <- layers_example all_inter_layer_connections = list( make_connection(from='mrna', to='protein', connect_on='gene_name', weight=1), make_connection(from='protein', to='phosphosite', connect_on='gene_name', weight=1), make_connection(from='protein', to='metabolite', connect_on=metabolite_protein_interactions, weight='combined_score')) all_drug_target_interactions <- make_drug_target( target_molecules="protein", interaction_table=drug_gene_interactions, match_on="gene_name") return_errors(check_input(layers=all_layers, inter_layer_connections=all_inter_layer_connections, drug_target_interactions=all_drug_target_interactions))
Useful links