-
Notifications
You must be signed in to change notification settings - Fork 46
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
error when using optforce #62
Comments
@yut8920 Can you provide more information for us to debug the issue?
|
@fromseto I use optforce according to the tutorial in cobratoolbox.
I put my runing code and model file in supplyment. |
I ran your code just now and the no error occurred on my computer. I have attached the output folder. Can you use the file to compare with the files you generated to check the error? |
I ran my code again,but the same error happend. |
Dear all,
I want to find some interventions applied to a strain by using optforce.The model I used is iJO1366 of E.coli,and the objective is trptophan.It is successful.But when I change the objective to lysine,it shows some errors when I run '[mustLSet, pos_mustL] = findMustL(model, minFluxesW, maxFluxesW, 'constrOpt', constrOpt, 'runID', runID, 'outputFolder', 'OutputsFindMustL', 'outputFileName', 'MustL' , 'printExcel', 1, 'printText', 1, 'printReport', 1, 'keepInputs', 1, 'printLevel', 3)'.
The error is:
Operands to the || and && operators must be convertible to logical scalar values.
Error in changeObjective (line 39)
if (isempty(rxnID) || rxnID == 0)
Error in findMustL (line 297)
model2 = changeObjective(model, model.rxns(pos_actives));
I wonder what cause it?
Thanks!
The text was updated successfully, but these errors were encountered: