Recreate interaction data frame based on certain datasets and resourcesSource:
Recreate interaction data frame based on certain datasets and resources
An interaction data frame from the OmniPath web service with evidences column.
Character: a vector of dataset labels. Only evidences from these datasets will be used.
Character: a vector of resource labels. Only evidences from these resources will be used.
The OmniPath interactions database fully integrates all attributes from all resources for each interaction. This comes with the advantage that interaction data frames are ready for use in most of the applications; however, it makes it impossible to know which of the resources and references support the direction or effect sign of the interaction. This information can be recovered from the "evidences" column. The "evidences" column preserves all the details about interaction provenances. In cases when you want to use a faithful copy of a certain resource or dataset, this function will help you do so. Still, in most of the applications the best is to use the interaction data as it is returned by the web service.
Note: This function is automatically applied if the
`strict_evidences` argument is passed to any function querying interactions
ci <- collectri(evidences = TRUE) ci <- only_from(ci, datasets = 'collectri') #> Error in do.call(stop, list(m), envir = env): `only_from` can be called only on data frames with `evidences` column.