Separate evidences by direction and effect sign
Arguments
- data
An interaction data frame with "evidences" column.
- longer
Logical: If TRUE, the "evidences" column is split into rows.
- .keep
Logical: keep the "evidences" column. When unnesting to longer data frame, the "evidences" column will contain the unnested evidences, while the original column will be retained under the "all_evidences" name (if `.keep = TRUE`).
Examples
if (FALSE) {
omnipath <- import_omnipath_interactions(fields = 'evidences')
omnipath <- unnest_evidences(omnipath)
colnames(omnipath)
}