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

CBC version #37

Open
an-altosian opened this issue Jul 18, 2024 · 4 comments
Open

CBC version #37

an-altosian opened this issue Jul 18, 2024 · 4 comments

Comments

@an-altosian
Copy link

Hello,

Could you please specify the CBC version COSMOS uses? I tried to download the latest version, AMPL/cbc Optimizer [2.10.10] (Linux x86_64), driver(20240529), MP(20240529), but I got Error: invalid option '-import' Error in file(file, "rt") : cannot open the connection

Thanks.

@an-altosian
Copy link
Author

an-altosian commented Jul 19, 2024

Ok it seems like we the executables provided by AMPL don't work. I have to download the binary from source and use the bin/cbc directly. Also, LD_LIBRARY_PATH has to be specified.

However, cbc failed to run and reported the following error
Error in `dplyr::left_join()`: ! Can't join `x$Node2` with `y$nodes` due to incompatible types. ℹ `x$Node2` is a <double>. ℹ `y$nodes` is a <character>.

Not sure what I can do with it. The head lines of the result file is

$ head result_t00_48_35d19_07_2024n48.csv 
name,solution
aD1,1
aD2,1
nU1,0
nU2,0
nU3,0
nU4,0
nU5,0
nU6,0
nU7,0

@adugourd
Copy link
Member

Hi,
I would actually advise to use the last version of cosmos that does not require such solvers anymore, should be much simpler to use.

See https://github.com/saezlab/COSMOS_basic for a simple tutorial on how to use the solver free version of cosmos :)

Cheers,

Aurelien

@an-altosian
Copy link
Author

First of all thanks for relying all my questions across different threads/repos ;P.

I am still trying to match the results I got from COSMOS_basic to the tutorials listed on the website. It will be great if those tutorials can be updated as well. my immediate question is, should I expect to replace moon with previous backbone functions like preprocess_COSMOS_metabolism_to_signaling+run_COSMOS_metabolism_to_signaling? Do I still need the auxiliary functions like format_COSMOS_res?

@adugourd
Copy link
Member

Hi, yes moon replaces those. Best is you just follow the new tutorial :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants