Skip to content

get_bioactivity_details unnest_wider on line 96 fails when mc6Param is NA #52

@cthunes

Description

@cthunes

Can replicate this with m4id = 739820

Error in `tidyr::unnest_wider()` at ccdR/R/bioactivity-APIs.R:96:6:
ℹ In column: `mc6Param`.
ℹ In row: 1.
Caused by error:
! Can't unnest elements with missing names.
ℹ Supply `names_sep` to generate automatic names.

mc6Param is NA when the curve had no associated flags. Not sure if the better solution is to:

  1. only unnest_wider when the mc#Param fields are not NA, or
  2. replace mc6Param with default columns manually, with flag = NA and mc6MthdId = NA

Thoughts on if ccdR should just prevent the error, and then tcpl can instead handle this? @brown-jason

I don't think this could affect the other mc#Param fields, since those should all always contain some parameters, so this is probably just an mc6Param issue.

Metadata

Metadata

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