Skip to content

View with GROUP_CONCAT returns warnings when using labkey.selectRows #112

@jmtaylor-fhcrc

Description

@jmtaylor-fhcrc

The follow R code returns warnings:

library(Rlabkey)

labkey.data <- labkey.selectRows(
    baseUrl="https://dataspace.cavd.org", 
    folderPath="/CAVD", 
    schemaName="CDS", 
    queryName="nabAntigenWithPanelMeta", 
)

This can be isolated to a single column that uses a GROUP_CONCAT SQL operation.

# no warnings
labkey.data <- labkey.selectRows(
  baseUrl="https://dataspace.cavd.org", 
  folderPath="/CAVD", 
  schemaName="CDS",
  colNameOpt="fieldname",
  queryName="nabAntigenWithPanelMeta",
  colSelect = "assay_identifier,antigen_name,antigen_type,virus,virus_type,virus_insert_name,neutralization_tier,clade,antigen_description,antigen_control,virus_full_name,virus_name_other,virus_species,virus_host_cell,virus_backbone,cds_virus_id"
)

# warnings
labkey.data <- labkey.selectRows(
  baseUrl="https://dataspace.cavd.org", 
  folderPath="/CAVD", 
  schemaName="CDS",
  colNameOpt="fieldname",
  queryName="nabAntigenWithPanelMeta",
  colSelect = "panel_names",
)

Several warnings are returned and contain the following information:

1: In listToMatrix(decode$rows, names(tmprow)) :
  subscript out of bounds (index 0 >= vector size 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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