Skip to main content

Create an example DEAnalyse object from simulated data

Description

Builds a complete DEAnalyse R6 object using simulated peptide data. Useful for vignette defaults, examples, and testing.

Usage

example_deanalyse(Nprot = 100)

Arguments

Nprot number of simulated proteins (default 100)

Value

a DEAnalyse R6 object with contrasts computed and annotated

Examples

library("prolfquapp")

dea <- example_deanalyse(Nprot = 10)
dea$contrast_results[[dea$default_model]]$get_contrasts()
# A tibble: 20 × 16
   modelName estimate_type protein_Id  contrast     diff avgAbd
   <chr>     <chr>         <chr>       <chr>       <dbl>  <dbl>
 1 lm_impute observed      0EfVhX~0087 AVsC     -0.0601    4.38
 2 lm_impute observed      7cbcrd~5725 AVsC      0.761     4.61
 3 lm_impute observed      9VUkAq~4703 AVsC     -0.642     4.51
 4 lm_impute observed      BEJI92~5282 AVsC      0.213     4.30
 5 lm_impute observed      CGzoYe~2147 AVsC     -0.293     4.82
 6 lm_impute observed      DoWup2~5896 AVsC      0.287     4.51
 7 lm_impute observed      Fl4JiV~8625 AVsC      0.0509    4.39
 8 lm_impute observed      HvIpHG~9079 AVsC     -0.394     4.45
 9 lm_impute observed      JcKVfU~9653 AVsC     -0.0212    5.07
10 lm_impute observed      SGIVBl~5782 AVsC      0.0154    4.77
11 lm_impute observed      0EfVhX~0087 BVsC      0.278     4.54
12 lm_impute observed      7cbcrd~5725 BVsC      0.0530    4.26
13 lm_impute observed      9VUkAq~4703 BVsC     -0.852     4.41
14 lm_impute observed      BEJI92~5282 BVsC      0.165     4.28
15 lm_impute observed      CGzoYe~2147 BVsC     -0.157     4.89
16 lm_impute observed      DoWup2~5896 BVsC     -0.299     4.21
17 lm_impute observed      Fl4JiV~8625 BVsC      0.0825    4.40
18 lm_impute observed      HvIpHG~9079 BVsC      0.00208   4.65
19 lm_impute observed      JcKVfU~9653 BVsC      0.0236    5.09
20 lm_impute observed      SGIVBl~5782 BVsC     -0.178     4.68
# ℹ 10 more variables: std.error.unmoderated <dbl>, df.unmoderated <int>,
#   std.error <dbl>, statistic <dbl>, df <dbl>, p.value <dbl>, conf.low <dbl>,
#   conf.high <dbl>, sigma <dbl>, FDR <dbl>