Combine differential analysis results from the specified tissues and omes(s)/assay(s). If no tissues or omes are specified, all differential analysis results are returned.
Usage
combine_da_results(
tissues = MotrpacRatTraining6moData::TISSUE_ABBREV,
assays = MotrpacRatTraining6moData::ASSAY_ABBREV,
metareg = TRUE,
include_epigen = FALSE,
scratchdir = "."
)Arguments
- tissues
optional character vector of tissue abbreviations, one of MotrpacRatTraining6moData::TISSUE_ABBREV.
- assays
optional character vector of assay abbreviations, one of MotrpacRatTraining6moData::ASSAY_ABBREV
- metareg
bool, whether to use the meta-regression results for METAB. Use the upstream differential analysis results if
FALSE.TRUEby default.- include_epigen
bool, whether to include the full ATAC or METHYL differential analysis results from Google Cloud Storage. Only relevant if
assaysincludes "ATAC" or "METHYL".FALSEby default.- scratchdir
character, local directory in which to download data from the web. Current working directory by default. Only relevant if
assaysincludes "ATAC" or "METHYL".
Value
data frame. Depending on the specified assays, some of these columns may not be included:
featurecharacter, unique feature identifier in the format 'MotrpacRatTraining6moData::ASSAY_ABBREV;MotrpacRatTraining6moData::TISSUE_ABBREV;feature_ID' only for training-regulated features at 5% IHW FDR. For redundant differential features, 'feature_ID' is prepended with the specific platform to make unique identifiers. See MotrpacRatTraining6moData::REPEATED_FEATURES for details.
assaycharacter, assay abbreviation, one of MotrpacRatTraining6moData::ASSAY_ABBREV
assay_codecharacter, assay code used in data release. See MotrpacBicQC::assay_codes.
tissuecharacter, tissue abbreviation, one of MotrpacRatTraining6moData::TISSUE_ABBREV
tissue_codecharacter, tissue code used in data release. See MotrpacBicQC::bic_animal_tissue_code.
feature_IDcharacter, MoTrPAC feature identifier
sexcharacter, one of 'male' or 'female'
comparison_groupcharacter, time point of trained animals compared to the sex-matched sedentary control animals, one of '1w', '2w', '4w', '8w'
p_valuedouble, unadjusted p-value for the difference between 'comparison_group' and the group of sex-matched sedentary control animals
adj_p_valuedouble, adjusted p-value from 'p_value' column. P-values are BY-adjusted across all datasets within a given assay/ome.
logFCdouble, log fold-change where the numerator is 'comparison_group', e.g., '1w', and the denominator is the group of sex-matched sedentary control animals
logFC_sedouble, standard error of the log fold-change
tscoredouble, t statistic
covariatescharacter, comma-separated list of adjustment variables or NA
numNAsinteger, number of missing values in the current 'comparison_group' and sex-matched sedentary control animals
comparison_average_intensitydouble, average intensity among the replicates in 'comparison_group'
reference_average_intensitydouble, average intensity among the replicates in the group of sex-matched sedentary control animals
selection_fdrdouble, adjusted training p-value used to select training-regulated analytes. P-values are IHW-adjusted across all datasets within a given assay with tissue as a covariate.
datasetcharacter, immune panel, metabolomics platform, or ATAC-seq dataset name
sitecharacter, Chemical Analysis Site (CAS) name. METAB only
is_targetedlogical, is this a targeted platform? METAB only
metabolite_refmetcharacter, RefMet name of metabolite. METAB only
cvdouble, feature coefficient of variation in the dataset. METAB only
metabolitecharacter, name of metabolite as appears in the CAS's data. METAB only
control_cvdouble, feature coefficient of variation in the dataset. METAB only
mzdouble, mass over charge. METAB only
rtdouble, retention time. METAB only
neutral_massdouble, neutral mass. METAB only
meta_reg_het_pdouble, for metabolites with multiple measurements, the meta-regression heterogeneity p-value, where a smaller p-value indicates more disagreement between platforms. One value per feature (not per training group). METAB only
meta_reg_pvaluedouble, for metabolites with multiple measurements, the meta-regression p-value. One value per feature (not per training group). METAB only
shrunk_logFCdouble, log fold-change with shrinkage applied
shrunk_logFC_sedouble, standard error of the shrunken log fold-change
zscoredouble, z statistic
removed_samplescharacter, comma-separated list of vial labels excluded from differential analysis or NA
comparison_average_intensity_sedouble, standard error of 'comparison_average_intensity'
reference_average_intensity_sedouble, standard error of 'comparison_average_intensity'
Chrinteger, chromosome. METHYL only
Locuscharacter, base pair range of feature. METHYL only
EntrezIDcharacter, Entrez ID of closest gene. METHYL only
Symbolcharacter, gene symbol of closest gene. METHYL only
Examples
if (FALSE) { # \dontrun{
# Return all non-epigenetic differential analysis results,
# including meta-regression results for metabolomics
data = combine_da_results()
# Return all global proteomics differential analysis results
data = combine_da_results(assays="PROT")
# Return METHYL and ATAC differential analysis results for gastrocnemius
data = combine_da_results(tissues="SKM-GN",
assays=c("ATAC","METHYL"),
include_epigen=TRUE)
} # }