This function renames a fluorophore across all relevant components of a
Userm object, including fluors, matrices, data frames, and result lists.
It ensures consistency of naming throughout the object and updates the
Rename_table accordingly.
Arguments
- Userm
A
Usermobject containing fluorophore information, matrices, and results. Must include elementsfluors,A,Scale_df,Intensity_mtx,Res, andRename_table.- raw_name
A character string specifying the existing fluorophore name to be replaced. Must exist in
Userm$fluorsorUserm$Rename_table.- new_name
A character string specifying the new fluorophore name. Must not already exist in
Userm$fluors.
Details
The function performs several checks:
Ensures all arguments are provided.
Validates that
raw_nameexists inUserm$fluors.Ensures
new_namedoes not already exist inUserm$fluors.Updates names in
fluors,A,Scale_df,Intensity_mtx, andRes.Updates the
Rename_tableentry for the fluorophore.
If the renaming is successful, a message is printed to the console.