You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In create_smoment_model_reaction_wise, reactions are split if they have measured isoenzymes. The GPR rule of the original reaction is distributed accordingly among the new reactions and split GPR rules are stored in the dict "reaction_id_gene_rules_mapping". This dict uses the ids of the split reactions, e.g. "PCFLOPm_GPRSPLIT_1", as keys and a corresponding GPR rule as value.
Subsequently, in the main loop, pseudo metabolites should be added to every reaction. At the beginning of the loop, the reaction ids are split by "_GPRSPLIT_" yielding the id of the original reaction (i.e., "PCFLOPm") and overwriting the reaction name of the split reaction ("PCFLOPm_GPRSPLIT_1"):
Later, the GPR rule of the split reaction is retrieved from the "reaction_id_gene_rules_mapping" dict but using the original reaction id instead of the id of the split reaction resulting in the same and incorrect pseudo metabolites being assigned to the split reactions.
I'll create a pull request later :)
(Sorry for spamming you with issues, I'm working my way through autoPACMEN for another project :D)
The text was updated successfully, but these errors were encountered:
Hello again @Paulocracy :),
the problem from issue #12 is still present.
In create_smoment_model_reaction_wise, reactions are split if they have measured isoenzymes. The GPR rule of the original reaction is distributed accordingly among the new reactions and split GPR rules are stored in the dict "reaction_id_gene_rules_mapping". This dict uses the ids of the split reactions, e.g. "PCFLOPm_GPRSPLIT_1", as keys and a corresponding GPR rule as value.
Subsequently, in the main loop, pseudo metabolites should be added to every reaction. At the beginning of the loop, the reaction ids are split by "_GPRSPLIT_" yielding the id of the original reaction (i.e., "PCFLOPm") and overwriting the reaction name of the split reaction ("PCFLOPm_GPRSPLIT_1"):
autopacmen/autopacmen/submodules/create_smoment_model_reaction_wise.py
Lines 185 to 206 in 56474a5
Later, the GPR rule of the split reaction is retrieved from the "reaction_id_gene_rules_mapping" dict but using the original reaction id instead of the id of the split reaction resulting in the same and incorrect pseudo metabolites being assigned to the split reactions.
I'll create a pull request later :)
(Sorry for spamming you with issues, I'm working my way through autoPACMEN for another project :D)
The text was updated successfully, but these errors were encountered: