Skip to content

Commit

Permalink
Fix tximport summarizedexperiment (#6638)
Browse files Browse the repository at this point in the history
* SummarizedExperiment: don't sanitise column names

* tximport: explicitly disable name sanitisation
  • Loading branch information
pinin4fjords authored Sep 13, 2024
1 parent ad30f90 commit 625fbbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ library(SummarizedExperiment)
#'
#' @return output Data frame

read_delim_flexible <- function(file, header = TRUE, row.names = NULL, check.names = TRUE, stringsAsFactors = FALSE){
read_delim_flexible <- function(file, header = TRUE, row.names = NULL, check.names = FALSE, stringsAsFactors = FALSE){

ext <- tolower(tail(strsplit(basename(file), split = "\\\\.")[[1]], 1))

Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/tximeta/tximport/templates/tximport.r
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ library(tximport)
#' @return A data frame combining the first two columns of the rowData with the assay data from the specified slot.

build_table <- function(se.obj, slot) {
cbind(rowData(se.obj)[,1:2], assays(se.obj)[[slot]])
data.frame(cbind(rowData(se.obj)[,1:2], assays(se.obj)[[slot]]), check.names = FALSE)
}

#' Write a table to a file from a SummarizedExperiment object with given parameters
Expand Down

0 comments on commit 625fbbc

Please sign in to comment.