This function returns node and edge tables that can be used to generate a network using the network visualization tool. It isolates significant subnetworks within a constructed metabolite-level network.
A SummarizedExperiment object with results computed by deSp_twoGroup
.
Character. The species to which the genes will be matched.
Allowed species are "human" and "mouse". Default is 'human'
.
Numeric. The number of lipids to be scored positively determines
the size of the resulting module. The higher the number, the larger the module.
Default is 50
.
Character. The p-value to be used for the statistically
significant of lipid species. Must be one of "pval" or "padj". Default is 'pval'
.
Numeric. Significant level of lipid species. Default is 0.05
.
Numeric. Significance of the fold-change of lipid species. Default is 1
.
Return a list of 4 tables.
table_edge: a table of network edges.
table_node; a table of network nodes.
table_reaction: a table of reactions.
table_stat: a table of statistical results.
data("de_data_twoGroup")
processed_se <- data_process(
se=de_data_twoGroup, exclude_missing=TRUE, exclude_missing_pct=70,
replace_na_method='min', replace_na_method_ref=0.5,
normalization='Percentage')
deSp_se <- deSp_twoGroup(
processed_se, ref_group='ctrl', test='t-test',
significant='pval', p_cutoff=0.05, FC_cutoff=1, transform='log10')
network_table <- nw_gatom(
deSp_se, organism='mouse', n_lipid=50, sp_significant='pval',
sp_p_cutoff=0.05, sp_FC_cutoff=1)
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
#> Found DE table for metabolites with Species IDs
#> Warning: One or both parameters are on the limit of the defined parameter space
#> Metabolite p-value threshold: 1.000000
#> Metabolite BU alpha: 0.043884
#> FDR for metabolites: 0.043894