Learn R Programming

volcano3D (version 1.2.0)

significance_subset: Extract a subset population

Description

Subsets data according to the significance groups.

Usage

significance_subset(polar, significance = NULL, output = "pvalues")

Arguments

polar

A polar object including expression data from groups of interest. Created by polar_coords.

significance

Which significance factors to subset to. If NULL levels(syn_polar@polar$sig)[1] is selected.

output

What object to return. Options are "pvalues", "expression", "polar_df" for subset data frames or "polar" for subset polar class object.

References

Lewis, Myles J., et al. (2019). Molecular portraits of early rheumatoid arthritis identify clinical and treatment response phenotypes. Cell reports, 28:9

Examples

Run this code
# NOT RUN {
data(example_data)
syn_polar <- polar_coords(sampledata = syn_example_meta,
                          contrast = "Pathotype",
                          groups = NULL,
                          pvalues = syn_example_p,
                          expression = syn_example_rld,
                          p_col_suffix = "pvalue",
                          padj_col_suffix = "padj",
                          non_sig_name = "Not Significant",
                          multi_group_prefix = "LRT",
                          significance_cutoff = 0.01,
                          fc_col_suffix='log2FoldChange',
                          fc_cutoff = 0.3)

subset <- significance_subset(syn_polar, "Lymphoid+", "polar_df")
# }

Run the code above in your browser using DataLab