Skip to content

error when using optforce #62

Open
@yut8920

Description

@yut8920

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions