Skip to content

Reading in linker files #1

@cutleraging

Description

@cutleraging

Hi Andrew,

In the in MQ_to_QQC and DIANN_to_QQC functions, there is no check if the header names are what you expect. This then causes an error if they are different from what they expect at this line

#Link data to inject wells
data <- data %>% left_join(linker, by = c('Raw.file'= 'Run'))

For me, this was caused because the Run column in my csv was being read in like this

linker <- read.csv(link_path)
> head(linker)
           X...Run Well plate
1 dAL_1k_Proto29_1   A1     1
2 dAL_1k_Proto29_2   A2     1
3 dAL_1k_Proto29_3   A3     1
4 dAL_1k_Proto29_4   A4     1
5 dAL_1k_Proto29_5   A5     1
6 dAL_1k_Proto29_6   A6     1

I was able to solve this by replacing the line where the linker file is read in with this

linker <- read.csv(linker, fileEncoding = "UTF-8-BOM", check.names = FALSE)

Best,
Ronnie

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