Interaction data frames might have an `extra_attrs` column if this field has been requested in the query by passing the `fields = 'extra_attrs' argument. This column contains resource specific attributes for the interactions. The names of the attributes consist of the name of the resource and the name of the attribute, separated by an underscore. This function returns the names of the extra attributes available in the provided data frame.
Arguments
- data
An interaction data frame, as provided by any of the
omnipath-interactions
functions.
Examples
i <- omnipath(fields = "extra_attrs")
extra_attrs(i)
#> [1] "TRIP_method" "SIGNOR_mechanism"
#> [3] "PhosphoSite_noref_evidence" "PhosphoPoint_category"
#> [5] "PhosphoSite_evidence" "HPRD-phos_mechanism"
#> [7] "Li2012_mechanism" "Li2012_route"
#> [9] "SPIKE_effect" "SPIKE_mechanism"
#> [11] "SPIKE_LC_effect" "SPIKE_LC_mechanism"
#> [13] "CA1_effect" "CA1_type"
#> [15] "Macrophage_type" "Macrophage_location"
#> [17] "ACSN_effect" "Cellinker_type"
#> [19] "CellChatDB_category" "talklr_putative"
#> [21] "CellPhoneDB_type" "Ramilowski2015_source"
#> [23] "HPMR_partner_role" "ARN_effect"
#> [25] "ARN_is_direct" "ARN_is_directed"
#> [27] "NRF2ome_effect" "NRF2ome_is_direct"
#> [29] "NRF2ome_is_directed"