Skip to content

Commit

Permalink
Merge pull request #11 from bzhanglab/dev
Browse files Browse the repository at this point in the history
fix name of function and return value
  • Loading branch information
iblacksand authored Oct 31, 2023
2 parents 1cf6ef5 + 4579b95 commit 8c64f58
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 8c64f58

Please sign in to comment.