Closed davidruvolo51 closed 2 years ago
For Null id
error when importing data into the subjects table. Add the following filter when the subjectsToRegister
object is binded to the main subjects
dataset.
-subjects = dt.rbind(...)[...][...]
+subjects = dt.rbind(...)[...][...][f.subjectID != None, :]
Errors with xref attributes were likely due to the Null id
error. All identifiers exist in the raw/processed data, but the import failed as the subjects data failed to import properly.
I noticed that there are a couple of issues in the nightly mapping job. These occur during the import step, but there are likely minor changes in the nightly export that have effected the processing script.
Issues
Null ID
errorUnknown xref for attribute 'belongsToSubject' of entity 'umdm_samples'.
Unknown xref for attribute 'belongsToSubject' of entity 'umdm_clinical'.
Unknown xref for attribute 'belongsToSamplePreparation' of entity 'umdm_sequencing'.
Improvments
While I'm at it, I might as well fix a few things that have been bothering me.
f.<id> != None
throughout the scriptcosastools
class and rename methods to camelCase.