Closed sdgamboa closed 1 year ago
I am not sure I even understand the problem @sdgamboa, but here is a quick solution.
library(curatedMetagenomicData)
tse <-
curatedMetagenomicData(
pattern = "HallAB_2017.relative_abundance",
dryrun = FALSE,
counts = TRUE,
rownames = "NCBI"
)[[1L]]
rownames(assay(tse, withDimnames = FALSE)) <-
rownames(assay(tse, withDimnames = TRUE))
tidy_tse <-
tidySummarizedExperiment::as_tibble(tse)
If you can provide some additional explanation or point me to the error in the programing, I'd be happy to fix it.
It seems that rownames in the TSE and the assay don't match when using the
rownames = 'NCBI'
option incuratedMetagenomicData
? I think this prevents the use of tidySummarizedExperiment to automatically convert to tibble: https://github.com/stemangiola/tidySummarizedExperiment/issues/70Created on 2023-08-15 with reprex v2.0.2