You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does `omicslog` operate? In essence, for every function you apply to a `SummarizedExperiment` object, it tracks changes in rows and columns and records a message describing those changes in a dedicated logging structure stored in the object’s `metadata`.
122
+
123
+
Let us suppose we want to filter the `airway` dataset to retain only samples treated with dexamethasone (`dex == "trt"`):
At this point, we have a clear idea of how much the dataset has been modified. However, in practice, we often need to retrieve this kind of information repeatedly. To avoid manual bookkeeping, we would like to store it directly in the object itself, using the `metadata` slot.
169
+
170
+
Before doing so, we need some additional context, such as *when* the operation was executed and *which* function was used:
171
+
172
+
```r
173
+
time<- Sys.time()
174
+
func<-"filter"
175
+
```
176
+
177
+
The most straightforward way to persist this information is to create a concise log message:
Column-related operations follow the same logic. For example, let us remove the `albut` column, as we are not interested in samples treated with albuterol:
191
+
192
+
```r
193
+
result2<-result1|>
194
+
select(!albut)
195
+
```
196
+
197
+
Even though we know that exactly one column was removed, it is still valuable to keep track of *how* the dataset was modified, *when* the change occurred, and *which* function was responsible:
As shown above, we extract the same type of information and append a new log entry to the `metadata` slot, just as we did for the row-based operation.
220
+
221
+
Too much work for a single data transformation? We agree. This is exactly where `omicslog` comes in—handling all logging operations automatically, so you can focus on the analysis.
222
+
223
+
# We need your feedback!
124
224
125
-
* What is your experience working with omics-oriented objects?
126
-
* What difficulties have you faced when tracing changes across different experiments?
127
-
* What else can we do to make your research more comfortable and easier to track?
225
+
Besides the messages shown above, what other operation details might you be interested in logging for an omics-oriented project?
128
226
129
227
Don’t hesitate to open an issue in the [omicslog](https://github.com/tidyomics/omicslog"logging capabilities for SummarizedExperiment objects") GitHub repo.
0 commit comments