saezlab / corneto

Unified knowledge-driven network inference from omics data
https://saezlab.github.io/corneto/
GNU General Public License v3.0
17 stars 3 forks source link

AttributeError: module 'corneto.methods.carnival' has no attribute 'select_mip_solver' #12

Closed gianfilippo closed 5 days ago

gianfilippo commented 6 days ago

Hi,

I am implementing the Liana+ tutorial with my own data.

I am getting an error at the "Find Causal Network" step: df_res, problem = li.mt.find_causalnet(prior_graph, input_scores, output_scores, node_weights, node_cutoff=0.1, max_penalty=1, min_penalty=0.01, edge_penalty=0.1,verbose=True, max_runs=50, stable_runs=10, solver='gurobi')

This results in the following output: Total positive/negative scores of the inputs and outputs:

Can you please help ?

Thanks

pablormier commented 5 days ago

LIANA+ depends on CORNETO 0.9.1-alpha.5. Please make sure that you have installed this version in your environment:

pip install corneto==0.9.1-alpha.5 --force-reinstall

@dbdimitrov we might need to indicate in LIANA the strict version of CORNETO 😃

dbdimitrov commented 5 days ago

@pablormier it is set to it but it's optional so I can't enforce unless installed with the extras param 😐