stemangiola / tidybulk

Brings bulk and pseudobulk transcriptomics to the tidyverse
https://stemangiola.github.io/tidybulk/
164 stars 25 forks source link

the attribute "internals" $ tt_columns abundance_scaled, carries the environment with it inflating the RDS file size #295

Open stemangiola opened 12 months ago

stemangiola commented 12 months ago

When using quosures to define the .abundance_scaled column name in the internals, the environment gets carried along and a 1 Mb SummarizedExperiment becomes a 400Mb RDS file.

it can be solved with this

attr(se, "internals")$tt_columns$.abundance_scaled |> attr(".Environment") = NULL

tidybulk should avoid carry the local environment in the object in the first place.