Skip to content

ImportCountData() unexpected behaviour #9

@igbiga

Description

@igbiga

Hi, in the ImportCountData() function, if there's '-' in the sample name, it's being changed into '.' which make it incompatible with the barcode names made using ImportHistologicalAnnotations() and the same sample name.

I'd suggest swiping the order of lines 16 and 17, to prevent it.
Such as:
ImportCountData <- function(SectionName, InputCountFile) {
input <- Read10X_h5(InputCountFile, use.names = FALSE)
input <- as.matrix(input)
input <- as.data.frame(t(input))
input <- rownames_to_column(input, "Barcode")
input$Barcode <- gsub("\-", "\.", input$Barcode)
input$Barcode <- paste0(SectionName, "_", input$Barcode)
return(input)
}

it doesn't intefere with the rest of the code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions