History
Includes foundational methods for history tracking of all operations performed on the pAnnData object.
HasHistory
Bases: Protocol
Tracks the operation history applied to the pAnnData object.
Methods:
| Name | Description |
|---|---|
_append_history |
Adds a string to the transformation history log. |
print_history |
Prints the current transformation history. |
Source code in src/scpviz/pAnnData/history.py
HistoryMixin
Mixin for tracking the history of operations performed on a pAnnData object.
This mixin provides simple utilities to log and review transformations or
analysis steps performed on the data object. Each action is stored as a
string in the internal _history list.
Features:
- Track transformations or analysis steps as text entries
- Print chronological history of actions performed
Methods:
| Name | Description |
|---|---|
_append_history |
Add a custom string to the internal history list |
print_history |
Print the full history in a formatted list |
Source code in src/scpviz/pAnnData/history.py
print_history
Print the current transformation history in a numbered format.
Each logged action is printed with its index, showing the chronological sequence of operations applied to the object.