Skip to content

Commit 8164df2

Browse files
committed
initial commit
0 parents  commit 8164df2

File tree

175 files changed

+19691
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+19691
-0
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
13+
jobs:
14+
build-and-test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: git setup
20+
# Set up git and export env vars to be used in later steps.
21+
# Note the unconventional mechanism for exporting envs by appending to
22+
# $GITHUB_ENV.
23+
id: git-setup
24+
run: |
25+
git config --global user.email "action@github.com"
26+
git config --global user.name "GitHub Action"
27+
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
28+
echo "WORKDIR=$(pwd)" >> $GITHUB_ENV
29+
30+
- name: Set up Miniforge and create environment
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
miniforge-variant: Miniforge3
34+
miniforge-version: latest
35+
auto-update-conda: true
36+
channels: conda-forge,bioconda,defaults
37+
channel-priority: strict
38+
environment-file: environment/env.yaml
39+
activate-environment: env
40+
41+
- name: Generate test data with R
42+
shell: bash -l {0}
43+
run: |
44+
cd $WORKDIR
45+
Rscript data/test_data.R
46+
47+
- name: Run R tests
48+
shell: bash -l {0}
49+
run: |
50+
cd $WORKDIR
51+
Rscript -e "devtools::document('AnalyzeOlink'); devtools::test('AnalyzeOlink')"
52+
53+
- name: Run Snakemake
54+
shell: bash -l {0}
55+
run: |
56+
cd $WORKDIR/snakemake
57+
snakemake -j 2

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Conda environemnt
2+
environment/env
3+
# Hidden snakemake directories
4+
snakemake/.snakemake
5+
# Data
6+
data/ELISA/
7+
data/PEA/
8+
# Output HTML reports
9+
*.html
10+
# Output directories
11+
output/
12+
# Rmarkdown files
13+
*_cache/
14+
*_files/
15+
# Intermediate files
16+
*.Rds
17+
# R project files
18+
.Rhistory
19+
.RData
20+
.Ruserdata
21+
.Rproj.user/
22+
# RStudio files
23+
*.Rproj
24+
# Package check directory
25+
AnalyzeOlink.Rcheck/
26+
# Devtools build artifacts
27+
*.tar.gz
28+
# Knitr intermediate files
29+
*.utf8.md
30+
*.knit.md

AnalyzeOlink/DESCRIPTION

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Package: AnalyzeOlink
2+
Title: Apply Various Statistical Frameworks to Analyze Olink PEA Data
3+
Version: 0.1.0
4+
Authors@R:
5+
c(
6+
person("Matthew", "Menold", email = "Matthew.Menold@gmail.com", role = c("aut", "cre")),
7+
person("Ryan", "Dale", role = c("aut", "ctb"))
8+
)
9+
Description: AnalyzeOlink provides a configurable framework for analyzing
10+
Olink Proximity Extension Assay (PEA) data, including differential abundance
11+
testing and downstream validation. Supported statistical methods include Type
12+
III ANCOVA and linear mixed-effects models (via the 'afex' package), t-tests
13+
and Wilcoxon tests (paired and unpaired), as well as Kruskal–Wallis and
14+
Friedman tests. The package includes nine R Markdown analysis reports that
15+
cover key workflow components such as assumption checks for ANOVA and LMER
16+
models, leave-one-out sensitivity analyses for model terms and sample-level
17+
robustness, ELISA validation, and non-parametric covariate effect and NPX
18+
correlations testing. An annotations module integrates Human Protein Atlas
19+
(HPA) metadata, including tissue- and cell-type–specific expression profiles
20+
and Tau specificity scores, enabling annotation of downstream visualizations
21+
such as volcano plots and estimate-vs-estimate comparisons.
22+
License: use_mit_license()
23+
Encoding: UTF-8
24+
Roxygen: list(markdown = TRUE)
25+
RoxygenNote: 7.3.3
26+
Imports:
27+
dplyr,
28+
purrr,
29+
org.Hs.eg.db
30+
Suggests:
31+
testthat (>= 3.0.0)
32+
Config/testthat/edition: 3

AnalyzeOlink/NAMESPACE

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# Generated by roxygen2: do not edit by hand
2+
3+
export(add_PatientID)
4+
export(add_centered_baseline)
5+
export(add_extra_hpa_data)
6+
export(add_pes)
7+
export(add_pes_rob)
8+
export(add_raw_npx)
9+
export(afex_test)
10+
export(annotations_estimate_plot)
11+
export(annotations_heatmap)
12+
export(annotations_make_volcano)
13+
export(annotations_volcano)
14+
export(append_brain_annotations_tbl)
15+
export(append_cols)
16+
export(append_geneid)
17+
export(assess_sample_fit)
18+
export(boxplot)
19+
export(bridgeability)
20+
export(brms_contrast)
21+
export(build_brms_contrasts)
22+
export(build_outlier_removed_se)
23+
export(center_numerics)
24+
export(check_se_object)
25+
export(choose_frameworks)
26+
export(compute_delta_sd)
27+
export(compute_spearman)
28+
export(cov_adjust)
29+
export(dotplot)
30+
export(dotplot_corr)
31+
export(dotplot_corr_list)
32+
export(enrich)
33+
export(enrich_correlations)
34+
export(enrich_gsea_corr)
35+
export(enrich_ora_corr)
36+
export(estimate_nu_from_kurtosis)
37+
export(estimate_plot)
38+
export(export_annotations)
39+
export(export_data)
40+
export(export_enrichment_corr)
41+
export(export_enrichment_results)
42+
export(export_hpa_ihc_data)
43+
export(export_lost_proteins)
44+
export(export_removed_rows)
45+
export(export_spearman)
46+
export(export_stats_results)
47+
export(filter_elisa_outliers)
48+
export(find_treatment_1_overlap)
49+
export(format_annotations_results)
50+
export(format_correlations_results)
51+
export(format_cov_results)
52+
export(format_enrich_results)
53+
export(format_results)
54+
export(from_list_with_names)
55+
export(get_assay_labels)
56+
export(get_num_sig)
57+
export(get_num_sig_corr)
58+
export(get_num_sig_lost)
59+
export(get_params)
60+
export(get_sig)
61+
export(get_test_name)
62+
export(import_data)
63+
export(interaction_emm)
64+
export(interaction_plot)
65+
export(keep_primary_effects)
66+
export(kruskal_test)
67+
export(label_plot)
68+
export(linear_mixed_model)
69+
export(make_dirs)
70+
export(make_dotplot_gsea_corr)
71+
export(make_dotplot_ora_corr)
72+
export(make_priors)
73+
export(make_therapeutic_reversal_results)
74+
export(make_volcano)
75+
export(mdcat)
76+
export(more_levels)
77+
export(norm_hist)
78+
export(npx_hist)
79+
export(olink_boxplot_2)
80+
export(one_car)
81+
export(one_mixed)
82+
export(one_robustbase)
83+
export(one_robustlmm)
84+
export(ordinal_regression)
85+
export(parallel_assess_sample_fit_with_cooks)
86+
export(parallel_assess_sample_fit_with_residuals)
87+
export(parallel_enrich)
88+
export(parallel_export_annotations)
89+
export(parallel_test_runner)
90+
export(pathway_heatmap)
91+
export(pathway_visualization)
92+
export(pca)
93+
export(plot_covariate_dist)
94+
export(plot_elisa_outliers)
95+
export(plot_qq)
96+
export(plot_qq_npx)
97+
export(plot_qq_protein)
98+
export(plot_spearman_violins)
99+
export(positive_pair_summary)
100+
export(prep_data)
101+
export(prepare_covariate_coldata)
102+
export(prepare_data_for_se_list)
103+
export(print_covariate_analysis)
104+
export(print_data)
105+
export(print_enrichment_corr)
106+
export(print_enrichment_results)
107+
export(print_enrichment_results_corr)
108+
export(print_lost_proteins)
109+
export(print_spearman_tables)
110+
export(print_stats_results)
111+
export(print_summary_table)
112+
export(print_top10_abs)
113+
export(print_top_corr_plots)
114+
export(protein_heatmap)
115+
export(qc)
116+
export(record_standard_assumption_violations)
117+
export(report_num_sig_corr)
118+
export(report_num_significant)
119+
export(robust_test)
120+
export(run_covariate_test)
121+
export(run_tests)
122+
export(save_covariates)
123+
export(sensitivity)
124+
export(sort_all_results)
125+
export(sort_results)
126+
export(subchunkify)
127+
export(subset_se)
128+
export(summarize_shared_significant)
129+
export(sync_se_to_metadata)
130+
export(t_test)
131+
export(test_for_covariates)
132+
export(tests)
133+
export(top_sig)
134+
export(tukey_outliers_list)
135+
export(two_levels)
136+
export(umap)
137+
export(upset)
138+
export(validate_parameters)
139+
export(volcano)
140+
export(wald_anova_rlmer)
141+
export(wilcox_test)
142+
export(write_normality)
143+
export(write_outlier_frequency_table)
144+
importFrom(stats,pchisq)
145+
importFrom(tibble,tibble)

0 commit comments

Comments
 (0)