Skip to content

Commit

Permalink
update function calls for webgestalt_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
iblacksand committed Nov 21, 2024
1 parent ad893a1 commit c47fac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use webgestalt_lib::{
methods::{
gsea::{GSEAConfig, GSEAResult, RankListItem},
multilist::{multilist_gsea, multilist_ora, GSEAJob, ORAJob},
nta::{nta, NTAConfig},
nta::{get_nta, NTAConfig},
ora::{get_ora, ORAConfig, ORAResult},
},
readers::utils::Item,
Expand Down Expand Up @@ -91,7 +91,7 @@ pub fn nta_rust(edge_list: Robj, seeds: Robj) -> List {
tolerance: 1e-6,
..Default::default()
};
let res = nta(config);
let res = get_nta(config);
let nodes: Vec<String> = res.iter().map(|(x, _)| x.to_string()).collect();
let scores: Vec<f64> = res.iter().map(|(_, x)| *x).collect();
list!(nodes = nodes, scores = scores)
Expand Down

0 comments on commit c47fac8

Please sign in to comment.