Center-for-Proteomics-and-Metabolomics / GlycoDash

GlycoDash is an R Shiny dashboard for processing protein glycosylation data obtained from LaCyTools or SkyLine.
Other
2 stars 0 forks source link

Plate design not read in when column contains only numbers #47

Closed stainawarijar closed 7 months ago

stainawarijar commented 10 months ago

When a column in the plate design contains only numbers, the dashboard crashes. Example:

Warning: Error in [<-: Assigned data `"Empty cell in plate design"` must be compatible with existing data.
i Error occurred for column `4`.
Caused by error in `vec_assign()`:
! Can't convert <character> to <double>.

When using read_excel() in fct_add_sample_ids.R, that column will be read as numeric while the others are read as character.

Adding some code that converts each column to character will probably fix this.

stainawarijar commented 10 months ago

Fixed by adding col_types = "text" to read_excel()