Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix name of function and return value #11

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion webgestalt_lib/src/methods/multiomics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn multiomic_gsea(jobs: Vec<GSEAJob>, method: MultiOmicsMethod) -> Vec<Vec<F
}
}

pub fn multiomics_ora(jobs: Vec<ORAJob>, method: MultiOmicsMethod) {
pub fn multiomic_ora(jobs: Vec<ORAJob>, method: MultiOmicsMethod) -> Vec<Vec<ORAResult>> {
match method {
MultiOmicsMethod::Meta(meta_method) => {
let mut phash: AHashMap<String, Vec<f64>> = AHashMap::default();
Expand Down Expand Up @@ -165,6 +165,8 @@ pub fn multiomics_ora(jobs: Vec<ORAJob>, method: MultiOmicsMethod) {
}
}
}
results.insert(0, final_result);
results
}
_ => {
panic!("Multi-Omics ORA can only be run with meta-analysis");
Expand Down