Skip to content

multi wavelength imaging is not supported #10

Description

@tcrombie

The _w1 and _w2 file naming conventions used by MetaXpress software are currently not supported by easyXpress. I tried to tidy a project with two wavelength and tidyProject failed with the following error. The raw images are moved to the raw_images folder and named correctly, I think it's the plateThumbs function that is failing.

ERROR

> easyXpress::tidyProject(project_dir = "/Volumes/ECA_Image/Tim/20220407_dauerProtocol1")
...
Error in wrap.url(file, load.image.internal) : File not found

The culprit is probably here in plateThumbs.R where the mutate for well is using patter = "[A-Z][0-9][0-9]_thumbnail.png"

 # make file df and add layout
    file_df <- tibble::tibble(name = filtered_file_list) %>%
      dplyr::mutate(plate = stringr::str_extract(name, pattern = "-p[:digit:]+-"),
                    plate = stringr::str_replace_all(plate, pattern = "-", replacement = ""),
                    well = stringr::str_extract(name, pattern = "[A-Z][0-9][0-9]_thumbnail.png"),
                    well = stringr::str_replace(well, pattern = "_thumbnail.png", replacement = "")) %>%
      dplyr::group_by(plate) %>%
      dplyr::mutate(layout = 1:dplyr::n()) %>%
      dplyr::ungroup()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions