Loads a gene list. If is_syn is TRUE file_path is interperated as a synapse ID. Otherwise file_path is interperated as a file path.

list_load(file_path, network, is_syn = FALSE, synap_import = NULL)

Arguments

file_path

the igraph network to push to synapse eg. net

network

igraph network object to use to filter the vertices From

is_syn

is the list a synapse ID default=FALSE

synap_import

is the reticulated imported synapse from log_into_synapse()$synapse default value is NULL

Value

genes from the input present within the network

Examples

data(slim_net, package = "igraphNetworkExpansion") all_goterms <- list( c( 'syn25185319', system.file( "extdata/inputlists/", "APP_Metabolism.txt", package = "igraphNetworkExpansion"), "APP Metabolism" ), c( 'syn25185320', system.file( "extdata/inputlists/", "Endolysosomal.txt", package = "igraphNetworkExpansion"), "Endolysosomal" ) ) list_load( all_goterms[[1]][2], network = slim_net )
#> 24 of 24 (100%) genes from the list appear in the primary network
#> [1] "GRIN2B" "TREM2" "IGF1R" "APOE" "CLU" "GRIN2A" "APP" #> [8] "NAMPT" "INSR" "GJA1" "LGMN" "FYN" "GRIN1" "EPHA4" #> [15] "ITGB2" "PICALM" "LRPAP1" "GRIA2" "LRP1" "ABCA7" "BCL2L11" #> [22] "GRIA3" "DLGAP3" "CD74"