Skip to contents

Separate evidences by direction and effect sign

Usage

unnest_evidences(data, longer = FALSE)

Arguments

data

An interaction data frame with "evidences" column.

longer

Logical: If TRUE, the "evidences" column is split into rows.

Value

The data frame with new columns or new rows by direction and sign.

Examples

omnipath <- import_omnipath_interactions(fields = 'evidences')
omnipath <- unnest_evidences(omnipath)
colnames(omnipath)
#>  [1] "source"                "target"                "source_genesymbol"    
#>  [4] "target_genesymbol"     "is_directed"           "is_stimulation"       
#>  [7] "is_inhibition"         "consensus_direction"   "consensus_stimulation"
#> [10] "consensus_inhibition"  "positive"              "negative"             
#> [13] "directed"              "undirected"            "sources"              
#> [16] "references"            "curation_effort"       "n_references"         
#> [19] "n_resources"