Sage-Bionetworks / cleanAD

Tools for cleaning and organizing study data for the AD Knowledge Portal.
Other
0 stars 1 forks source link

Fix error when encountering more than one biospecimen file per study #28

Closed avanlinden closed 2 years ago

avanlinden commented 2 years ago

The specimen table update script stopped executing, and I was able to track the issue to a problem with one study where one of the assay metadata files had been incorrectly annotated as a biospecimen file. During the step where specimenIDs are extracted from the metadata files, the function was erroring when it tried to index a list element that didn't exist (was looking for two biospecimen files when there was only one).