Closed linglp closed 1 year ago
Fix is in progress but we were unable to add this item as priority last sprint due to other issues in progress @andrewelamb @MiekoHash
@andrewelamb can you send me the data model you're using?
@GiaJordan This is the one that caused the error at the time: https://sagebionetworks.slack.com/files/U6NBMENEP/F04K2SEL14Z/iatlas_schema.jsonld
The most recent one is here: https://github.com/CRI-iAtlas/iAtlasSchema/blob/develop/iatlas_schema.jsonld
I think this one causes the same error
thank you!
@andrewelamb I was able to complete the validation for the manifest you provided without encountering the error you described while using the dev branch associated with this issue. You can test yourself if you like.
To remedy the actual errors you were having, you'll need to provide the patients_id
and Component
columns, and then fill in the component column
Describe the bug The command that @andrewelamb ran was:
schematic model -c ../schematic/config.yml submit -mp tcga_samples.csv -d syn50864448 -vc Samples
(see the full error log here: https://sagebionetworks.slack.com/files/U6NBMENEP/F04JHCS19K8/untitled.txt) But when I investigated further, this seems to be related to schema error and also some logic in validation.More context for debugging: If I print out the line here in
validate_manifest_values
function,errorColName
returns "wrong schema". Then, the string "Wrong schema" gets fed into function generate_schema_error as attribute_name, and then the string got passed down to get_message_level function and is_node_required function. node_label = self.get_node_label(node_display_name) under is_node_required function returns empty because of the string "wrong schema".I printed out the error after the following code:
and here's the output of the error:
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Priority (select one)
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (if applicable, please complete the following information):
Additional context Add any other context about the problem here.