Comments (23)
Thanks for reporting, I will try to fix it ASAP. In the meantime, I suggest you to use the previous release.
https://github.com/saezlab/CARNIVAL/releases/tag/v1.3
from carnival.
Thanks all for commenting and reporting. The bug was fixed. If it is still persistent in your setup, please, share the code snippet with tiny data sample to reproduce. Thanks!
from carnival.
@CosimoCristella Good point, thanks!
from carnival.
Hi @laylagerami, unfortunately not. Honestly, I haven't looked into details at it. I'm waiting for devs to react and in the meantime using v1.3, as they suggested
from carnival.
I am having the same problem. Works fine when using cbc solver, issue is only with cplex!
from carnival.
Hey @ulrmu
Can you share your platform and R version? Also, can you run it with toy example?
Thanks
from carnival.
from carnival.
Hi @ivanovaos ,
Thanks for looking into this.
I can run the toy example without any problem.
In case it's still relevant, this is my R version and platform:
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
from carnival.
I tried v.1.3.0 but get the following error:
Solving LP problem...
sh: 1: /path/to/solver/: Permission denied
I also tried the latest update, but the same error as reported before is thrown.
from carnival.
@ulrmu which solver do you use and what path did you provide for it? can you please post a code snippet?
from carnival.
Hi,
I was experiencing the same issue in v.2.2.0 ( v.1.3.0 works fine) and manged to solve by specifying the full path for cplex solver and working/out directories, eg.:
cplexOpt = defaultCplexCarnivalOptions()
cplexOpt$solverPath = "/opt/ibm/ILOG/CPLEX_Studio1210/cplex/bin/x86-64_linux/cplex"
cplexOpt$outputFolder = '/path/to/outDir/'
cplexOpt$dirName = '/path/to/outDir/'
cplexOpt$workdir = '/path/to/workDir/'
However, I'm still having the issue described in #65
Hope it helps.
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
from carnival.
@ivanovaos
I use the cplex solver with this command:
carnival_result = runCARNIVAL( #inputObj= iniciators,
measObj = tfList$t,
netObj = sif,
#weightObj = progenylist$score,
solverPath = "/path/to/solver/",
solver = "cplex",
timelimit=7200,
mipGAP=0,
poolrelGAP=0,
)
Please let me know if this is canonical or not.
@CosimoCristella
Thank you for your suggestion! Maybe it's obvious, but how should the cplex options be passed?
from carnival.
@ulrmu
Sorry, I forgot to mention that the options were passed to runInverseCarnival:
runInverseCarnival(measurements = meas,
priorKnowledgeNetwork = sif,
weights = weights,
carnivalOptions = cplexOpt
)
Cheers!
from carnival.
@CosimoCristella
Thank you! I get a weird error from the measurements input which I need to investigate further.
Did you manage to use the runCARNIVAL function?
from carnival.
I think you get the input error when you try to pass a data.frame (as it was in v.1.3.0) rather than a named vector for arguments 'measurements' and 'weights'.
I don't think this workaround will work for runCARNIVAL as there's no argument in the function to specify the working directory.
from carnival.
@CosimoCristella , that explains it, thank you!! I could finally run runInverseCarnival, running into the following error:
cplexOpt = defaultCplexCarnivalOptions()
cplexOpt$solverPath = "/path/to/solver/"
cplexOpt$outputFolder = '/path/to/dir/'
cplexOpt$dirName = '/path/to/dir/'
cplexOpt$workdir = '/path/to/dir/'
runInverseCarnival(measurements = meas_vec,
priorKnowledgeNetwork = sif,
#weights = weights,
carnivalOptions = cplexOpt
)
sh: 1: /path/to/solver/: Permission denied
Saving results...
Error in file(file, "rt") : cannot open the connection
You said you managed to get the above function to work using CARNIVAL_2.2.0, right? Did you encounter this problem as well?
from carnival.
Hi Ulrmu,
I just re-tested runInverseCarnival() with the workaround I suggested above and can confirm it works for CARNIVAL v2.2.0 on my machine.
Are providing the full/correct path for the solver? Just follow the example I suggested above since the cplex solver should be located in your opt folder. Be sure to include the solver name 'cplex' and remove the '/' at the end of the path.
from carnival.
@CosimoCristella Thank you, I fixed that and could run runInverseCarnival() \o/
However, using the newest CARNIVAL version, the problems with runCARNIVAL remain.
from carnival.
@ulrmu Glad it helped! I think this new version still requires few adjustments and we should give devs some time to implement them.
In the meantime, if you have targets/inputs, why not going for runVanillaCarnival()?
from carnival.
HI @CosimoCristella, did you manage to solve the issue in #65?
from carnival.
Also having the same issue.
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection.
In file(file, ifelse(append, "a", "w")) :
cannot open file '/cplexCommand_t18_00_47d12_07_2021n26.txt': Read-only file system.
Tried changing the permissions on the files and directories and still come up with the same error.
I tried using CBC solver, but get no results from Carnival when using the transcript tutorial data (All the same code, just tried to use CBC).
from carnival.
Thank you, @ivanovaos, for fixing the bug! It now works in my setup!
from carnival.
Hi everyone, I got the same error in the 2.4.0 version.
R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
from carnival.
Related Issues (20)
- Feature Request: Omnipath network from original paper HOT 2
- Very different results with latest CARNIVAL release HOT 5
- Wrong column name inside the measurementsDf? HOT 1
- cbc error : 'data' must be of a vector type, was 'NULL' despite solution found HOT 1
- Reported 0 for perturbations activity HOT 1
- No DOT figure HOT 1
- Gurobi needs documentation
- How to use CARNIVAL to fit multiple conditions data HOT 2
- Some issues HOT 2
- Failing tests because local files were used HOT 1
- runCARNIVAL HOT 1
- Error in file(file, "rt"): cannot open the connection HOT 2
- progenyMembers.RData HOT 2
- Description about the output HOT 4
- error running Carnival with cbc solver HOT 1
- Carnival usage error HOT 2
- Transcription factors (TFs) absent from final carnival result HOT 12
- [BUG] Your bug or feature request HOT 3
- Using custom network for transcription factor input HOT 11
- General Recommendations for preprocessing RNA-Seq data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carnival.