check_fix_reaction: Check and fix a reaction

View source: R/parser.R

check_fix_reactionR Documentation

Check and fix a reaction

Description

This function is used for the check and fix (if possible) of a reaction. It is checked if there is an empty side, if both sides only contains 0's, when the relation operator between sides (->) is missing. It also fix the reactions that has a 0 with other species in the same side, removing the 0 and warning the user.

Usage

check_fix_reaction(reaction)

Arguments

reaction

A string representing the reaction.

Value

The fixed reaction if some fix was needed, or the reaction received as input if everything is ok.


DanielKneipp/DNAr documentation built on Jan. 7, 2023, 12:42 p.m.