pub fn add_nodes(
encoded_sequence: &EncodedSequence,
nodes: &mut Vec<Node>,
closed: bool,
training: &Training,
) -> Result<usize, OrphosError>Expand description
Add nodes for start and stop codons in both directions
This function identifies potential start and stop codons in the sequence and creates corresponding nodes for gene prediction analysis.
§Arguments
encoded_sequence- The complete encoded sequence datanodes- Vector to store the created nodesclosed- Whether to treat sequence as circular/closedtraining- Training data for scoring parameters
§Returns
Number of nodes created, or error if processing fails