renameSpataObject.RdRenames the SPATA2 object.
renameSpataObject(object, sample_name)An object of class SPATA2 or, in case of S4 generics,
objects of classes for which a method has been defined.
Character value. The new sample name.
The updated input object, containing the added, removed or computed results.
Sets slot @sample of all S4 classes within the SPATA2 object
to the new name.