Error creating pan-models from AGORA2 reconstructions

109 views
Skip to first unread message

Ari Ufondu

unread,
Feb 29, 2024, 6:08:54 PMFeb 29
to COBRA Toolbox
Hello Community,

Is it possible to create pan-models such as pan genus models from AGORA2 models? I have created pan genus models from AGORA previously without any issues, but when I try to do it with AGORA2, I run into the following error message:
pan genus models AGROA2 error.PNG

I already tried deleting the model in the error but it doesn't seem to change anything. I would greatly appreciate any help on this matter!

Best,
Ari Ufondu

Almut Heinken

unread,
Feb 29, 2024, 6:32:30 PMFeb 29
to cobra-...@googlegroups.com
Dear Ari,
it is also possible to create pan-models for AGORA2. Did you change the third input to the file with taxonomic information for AGORA2 (AGORA2_infoFile)?
Best regards,
Almut

--

---
You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cobra-toolbox/678983c4-f197-4cde-8415-8db68b2909c7n%40googlegroups.com.

Almut Heinken

unread,
Feb 29, 2024, 6:33:12 PMFeb 29
to cobra-...@googlegroups.com
Sorry, I meant the fifth input (optional)

Ari Ufondu

unread,
Mar 1, 2024, 9:52:24 AMMar 1
to COBRA Toolbox
Hi Almut,

Thanks for the reply. I am looking at the AGORA2_infoFile.xlsx found in cobratoolbox > papers > 2021_demeter > input

When you say the fifth input, do you mean the fifth column of the file which is the "species" column or do you mean the fifth row which is the bacterium "Acetanaerobacterium_elongatum_CGMCC_1_5012"?

What should I change it to? Thanks in advance for the clarification!

Best,
Ari

Almut Heinken

unread,
Mar 1, 2024, 10:04:27 AMMar 1
to cobra-...@googlegroups.com
Dear Ari,
sorry for the confusion. I meant that the (optional) fifth input in the function needs to be set as follows:

createPanModels(agoraPath, panPath, taxonLevel, numWorkers, 'AGORA2_infoFile.xlsx')

I suppose that input could be made mandatory to make the use of the function more clear.
Best regards,
Almut

Ari Ufondu

unread,
Mar 1, 2024, 12:01:52 PMMar 1
to COBRA Toolbox
Dear Almut,

Thanks for the clarification! I tried your suggestion but I am running into the same problem, although the crash happens with a different microbe this time: 
pan genus models AGROA2 error_2.PNG

Here are my latest commands for reference:
  solverOK=changeCobraSolver('ibm_cplex','LP');
  agoraPath = [pwd filesep 'AGORA2models']; 
  numWorkers = 4; 
  panPath=[pwd filesep 'panAGORA2GenusModels']; 
  taxonLevel='Genus'; 
  createPanModels(agoraPath,panPath,taxonLevel,numWorkers,'AGORA2_infoFile.xlsx');  


Best,
Ari

Almut Heinken

unread,
Mar 2, 2024, 9:01:16 AMMar 2
to cobra-...@googlegroups.com
Dear Ariu,
the function requires that all AGORA2 reconstructions are present in the "agoraPath"folder, so you will get an error if it cannot find them.
Best regards,
Almut

Reply all
Reply to author
Forward
0 new messages