R/functions.R
table_pull.Rd
Pull Synapse Table into Dataframe The purpose. of this function is to pull info from a synapse table into a dataframe.
table_pull(syn_id, feature_name, features, column_names, synap_import)
syn_id | the synapse ID of the ie 'syn25556478' |
---|---|
feature_name | the column of the feature to treat as rows ie.'GeneName' |
features | the values of the feature to pull ie. names(igraph::V(net)) |
column_names | the column values that. should be pulled for each feature-row ie c('ENSG', 'GeneName', 'OmicsScore', ' GeneticsScore', 'Logsdon') |
synap_import | is the reticulated imported synapse from log_into_synapse()$synapse eg. syn |
a dataframe object
if (FALSE) { syn <- log_into_synapse() omics_scores <- table_pull( syn_id ='syn25575156', feature_name = 'GeneName' , features = names(igraph::V(net)), column_names = c('ENSG', 'GeneName', 'OmicsScore', 'GeneticsScore', 'Logsdon'), synap_import = syn$synapse ) }