prepareFastGapFill Matrix index out of range for deletion

4 views
Skip to first unread message

Julie Rojas

unread,
Sep 24, 2025, 10:27:18 AM (6 days ago) Sep 24
to COBRA Toolbox
Hi,

I'm trying to fill gaps in my draft model (generated in Raven 2.0 and converted to cobra format), but I get this error:

Matrix index is out of range for deletion.
Error in prepareFastGapFill (line 154)
    MatricesSUX.MatrixPart(NullRxns==1)=[];

Here are the dimensions of my model
size(model.S) = 1906 1842
length(model.rxns) 1842
length(model.mets) 1906

Does anyone know why this might be happening?

Thanks a lot

(full code and model joined)

fill_gap_cobra.m
SY-00001.mat

Julie Rojas

unread,
Sep 24, 2025, 10:54:13 AM (6 days ago) Sep 24
to COBRA Toolbox
Simplifying the model in Raven before converting to Cobra got the model a bit further, but now I get a new error further down the line
Matrix index is out of range for deletion.
Error in prepareFastGapFill (line 175)
MatricesSUX.MatrixPart(ismember(MatricesSUX.rxns,inconsistRxnsSUXprime)) = [];

SY-00032_simplified.mat
Reply all
Reply to author
Forward
0 new messages